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