81 |
|
Double_t e2nd() const { return e2nd_; } |
82 |
|
Int_t nXtals() const { return nXtals_; } |
83 |
|
Int_t uid() const { return uid_; } |
84 |
< |
|
85 |
< |
|
84 |
> |
TString typeName() const { |
85 |
> |
if ( det_==110 ) return "Island Barrel BC"; |
86 |
> |
else if ( det_==120 ) return "Island Endcap BC"; |
87 |
> |
else if ( det_==210 ) return "Hybrid Barrel BC"; |
88 |
> |
else if ( det_==320 ) return "Multi5x5 Endcap BC"; |
89 |
> |
else return "Unknown type SC"; |
90 |
> |
} |
91 |
> |
|
92 |
|
void setCalX(Double_t x) { position_.SetX(x); } |
93 |
|
void setCalY(Double_t y) { position_.SetY(y); } |
94 |
|
void setCalZ(Double_t z) { position_.SetZ(z); } |
102 |
|
void setUid(Int_t uid) { uid_ = uid; } |
103 |
|
|
104 |
|
|
105 |
< |
friend std::ostream& operator<< (std::ostream& stream, const TRootCluster& clus) { |
105 |
> |
friend std::ostream& operator<< (std::ostream& stream, const TRootCluster& clus) |
106 |
> |
{ |
107 |
|
stream << "TRootCluster - Type=" << clus.det() << " (E,Et,eta,phi)=(" << clus.Mag() <<"," << clus.Pt() <<"," << clus.Eta() <<"," << clus.Phi() << ")" |
108 |
|
<< " Calo position (x,y,z)=(" << clus.calX() << "," << clus.calY() << "," << clus.calZ() << ")" |
109 |
|
<< " e3x3=" << clus.e3x3() << " e5x5=" << clus.e5x5() << " eMax=" << clus.eMax()<< " e2nd=" << clus.e2nd() << " nXtals=" << clus.nXtals(); |
110 |
|
return stream; |
111 |
|
}; |
112 |
|
|
113 |
+ |
void Print() |
114 |
+ |
{ |
115 |
+ |
std::cout << "TRootCluster - Type=" << this->det() << " (E,Et,eta,phi)=(" << this->Mag() <<"," << this->Pt() <<"," << this->Eta() <<"," << this->Phi() << ")" |
116 |
+ |
<< " Calo position (x,y,z)=(" << this->calX() << "," << this->calY() << "," << this->calZ() << ")" |
117 |
+ |
<< " e3x3=" << this->e3x3() << " e5x5=" << this->e5x5() << " eMax=" << this->eMax()<< " e2nd=" << this->e2nd() << " nXtals=" << this->nXtals(); |
118 |
+ |
}; |
119 |
|
|
120 |
+ |
|
121 |
|
protected: |
122 |
|
|
123 |
|
TVector3 position_; |