#include <RecEmcShower.h>
Inheritance diagram for RecEmcShower:
Public Member Functions | |
double | a20Moment () const |
double | a20Moment () const |
double | a42Moment () const |
double | a42Moment () const |
RecEmcFractionMap::const_iterator | Begin () const |
RecEmcFractionMap::const_iterator | Begin () const |
int | cellId () const |
int | cellId () const |
void | CellId3x3 (RecEmcIDVector &id3x3) |
void | CellId3x3 (RecEmcIDVector &id3x3) |
void | CellId5x5 (RecEmcIDVector &id5x5) |
void | CellId5x5 (RecEmcIDVector &id5x5) |
void | Clear () |
void | Clear () |
virtual const CLID & | clID () const |
virtual const CLID & | clID () const |
void | Cluster (RecEmcCluster *pCluster) |
void | Cluster (RecEmcCluster *pCluster) |
void | ClusterId (const RecEmcID id) |
void | ClusterId (const RecEmcID id) |
double | dE () const |
double | dE () const |
double | dphi () const |
double | dphi () const |
double | dtheta () const |
double | dtheta () const |
void | Dump () const |
void | Dump () const |
double | dx () const |
double | dx () const |
double | dy () const |
double | dy () const |
double | dz () const |
double | dz () const |
double | e3x3 () const |
double | e3x3 () const |
double | e5x5 () const |
double | e5x5 () const |
RecEmcEnergy | EAll (RecEmcEnergy e) |
RecEmcEnergy | EAll (RecEmcEnergy e) |
RecEmcEnergy | ELepton (RecEmcEnergy e) |
RecEmcEnergy | ELepton (RecEmcEnergy e) |
RecEmcFractionMap::const_iterator | End () const |
RecEmcFractionMap::const_iterator | End () const |
double | energy () const |
double | energy () const |
void | Erase (const RecEmcFraction &aFraction) |
void | Erase (const RecEmcFraction &aFraction) |
HepSymMatrix | errorMatrix () const |
HepSymMatrix | errorMatrix () const |
double | eSeed () const |
double | eSeed () const |
RecEmcEnergy | ETof2x1 (RecEmcEnergy e) |
RecEmcEnergy | ETof2x1 (RecEmcEnergy e) |
RecEmcEnergy | ETof2x3 (RecEmcEnergy e) |
RecEmcEnergy | ETof2x3 (RecEmcEnergy e) |
RecEmcFractionMap::const_iterator | Find (const RecEmcID &CellId) const |
RecEmcFractionMap::const_iterator | Find (const RecEmcID &CellId) const |
RecEmcIDVector | getCellId3x3 () const |
RecEmcIDVector | getCellId3x3 () const |
RecEmcIDVector | getCellId5x5 () const |
RecEmcIDVector | getCellId5x5 () const |
RecEmcCluster * | getCluster () const |
RecEmcCluster * | getCluster () const |
RecEmcID | getClusterId () const |
RecEmcID | getClusterId () const |
RecEmcEnergy | getEAll () const |
RecEmcEnergy | getEAll () const |
RecEmcEnergy | getELepton () const |
RecEmcEnergy | getELepton () const |
RecEmcEnergy | getETof2x1 () const |
RecEmcEnergy | getETof2x1 () const |
RecEmcEnergy | getETof2x3 () const |
RecEmcEnergy | getETof2x3 () const |
RecEmcFractionMap | getFractionMap () const |
RecEmcFractionMap | getFractionMap () const |
RecEmcFractionMap | getFractionMap3x3 () const |
RecEmcFractionMap | getFractionMap3x3 () const |
RecEmcFractionMap | getFractionMap5x5 () const |
RecEmcFractionMap | getFractionMap5x5 () const |
RecEmcID | getShowerId () const |
RecEmcID | getShowerId () const |
unsigned int | getSize () const |
unsigned int | getSize () const |
void | Insert (const RecEmcFraction &aFraction) |
void | Insert (const RecEmcFraction &aFraction) |
double | latMoment () const |
double | latMoment () const |
int | module () const |
int | module () const |
RecEmcID | NearestSeed (const RecEmcID &ns) |
RecEmcID | NearestSeed () const |
RecEmcID | NearestSeed (const RecEmcID &ns) |
RecEmcID | NearestSeed () const |
int | numHits () const |
int | numHits () const |
bool | operator< (const RecEmcShower &aShower) const |
bool | operator< (const RecEmcShower &aShower) const |
RecEmcShower & | operator= (const DstEmcShower &aShower) |
RecEmcShower & | operator= (const DstEmcShower &aShower) |
bool | operator> (const RecEmcShower &aShower) const |
bool | operator> (const RecEmcShower &aShower) const |
double | phi () const |
double | phi () const |
int | PhiGap (int PhiGap) |
int | PhiGap () const |
int | PhiGap (int PhiGap) |
int | PhiGap () const |
HepPoint3D | position () const |
HepPoint3D | position () const |
RecEmcShower (const DstEmcShower &aShower) | |
RecEmcShower () | |
RecEmcShower (const DstEmcShower &aShower) | |
RecEmcShower () | |
double | secondMoment () const |
double | secondMoment () const |
void | setA20Moment (double a20Moment) |
void | setA20Moment (double a20Moment) |
void | setA42Moment (double a42Moment) |
void | setA42Moment (double a42Moment) |
void | setCellId (int id) |
void | setCellId (int id) |
void | setDE (double de) |
void | setDE (double de) |
void | setDphi (double dpi) |
void | setDphi (double dpi) |
void | setDtheta (double dt) |
void | setDtheta (double dt) |
void | setE3x3 (double e3x3) |
void | setE3x3 (double e3x3) |
void | setE5x5 (double e5x5) |
void | setE5x5 (double e5x5) |
void | setEnergy (double e) |
void | setEnergy (double e) |
void | setErrorMatrix (const HepSymMatrix &error) |
void | setErrorMatrix (const HepSymMatrix &error) |
void | setESeed (double eSeed) |
void | setESeed (double eSeed) |
void | setLatMoment (double latMoment) |
void | setLatMoment (double latMoment) |
void | setModule (int mod) |
void | setModule (int mod) |
void | setNumHits (int hit) |
void | setNumHits (int hit) |
void | setPosition (const HepPoint3D &pos) |
void | setPosition (const HepPoint3D &pos) |
void | setSecondMoment (double secondMoment) |
void | setSecondMoment (double secondMoment) |
void | setStatus (int st) |
void | setStatus (int st) |
void | setTime (double time) |
void | setTime (double time) |
void | setTrackId (int trackId) |
void | setTrackId (int trackId) |
RecEmcID | ShowerId (RecEmcID id) |
RecEmcID | ShowerId (RecEmcID id) |
int | status () const |
int | status () const |
double | theta () const |
double | theta () const |
int | ThetaGap (int ThetaGap) |
int | ThetaGap () const |
int | ThetaGap (int ThetaGap) |
int | ThetaGap () const |
double | time () const |
double | time () const |
void | TofShower (bool tof) |
bool | TofShower () const |
void | TofShower (bool tof) |
bool | TofShower () const |
int | trackId () const |
int | trackId () const |
double | x () const |
double | x () const |
double | y () const |
double | y () const |
double | z () const |
double | z () const |
~RecEmcShower () | |
~RecEmcShower () | |
Static Public Member Functions | |
const CLID & | classID () |
const CLID & | classID () |
Protected Attributes | |
RecEmcIDVector | fCellId3x3 |
RecEmcIDVector | fCellId5x5 |
RecEmcCluster * | fCluster |
RecEmcCluster * | fCluster |
RecEmcID | fClusterId |
RecEmcEnergy | fEAll |
RecEmcEnergy | fELepton |
RecEmcEnergy | fETof2x1 |
RecEmcEnergy | fETof2x3 |
RecEmcFractionMap | fFractionMap |
RecEmcID | fNearestSeed |
int | fPhiGap |
RecEmcID | fShowerId |
int | fThetaGap |
bool | fTofShower |
|
00013 { 00014 Clear(); 00015 }
|
|
00018 {
00019 //Clear();
00020 }
|
|
00024 :DstEmcShower(aShower) 00025 { 00026 Clear(); 00027 fShowerId=RecEmcID(aShower.cellId()); 00028 }
|
|
|
|
|
|
|
|
00053 {return m_a20Moment;}
|
|
00053 {return m_a20Moment;}
|
|
00054 {return m_a42Moment;}
|
|
00054 {return m_a42Moment;}
|
|
|
|
00132 { 00133 return fFractionMap.begin(); 00134 }
|
|
00032 { return m_cellId; }
|
|
00032 { return m_cellId; }
|
|
|
|
00120 { 00121 fCellId3x3.clear(); 00122 fCellId3x3=id3x3; 00123 }
|
|
|
|
00126 { 00127 fCellId5x5.clear(); 00128 fCellId5x5=id5x5; 00129 }
|
|
Reimplemented from DstEmcShower. 00026 { return CLID_RecEmcShower; }
|
|
Reimplemented from DstEmcShower. 00026 { return CLID_RecEmcShower; }
|
|
|
|
00080 { 00081 fShowerId.clear(); 00082 fClusterId.clear(); 00083 fCellId3x3.clear(); 00084 fCellId5x5.clear(); 00085 fFractionMap.clear(); 00086 // 00087 fCluster=NULL; 00088 fTofShower=false; 00089 fEAll=0; 00090 fELepton=0; 00091 fETof2x1=0; 00092 fETof2x3=0; 00093 // 00094 //HepPoint3D o(0,0,0); 00095 //fPosition=o; 00096 // 00097 fNearestSeed.clear(); 00098 fThetaGap=0; 00099 fPhiGap=0; 00100 }
|
|
Reimplemented from DstEmcShower. 00025 { return RecEmcShower::classID();}
|
|
Reimplemented from DstEmcShower. 00025 { return RecEmcShower::classID();}
|
|
|
|
00115 { 00116 fCluster=pCluster; 00117 }
|
|
|
|
00110 { 00111 fClusterId=id; 00112 }
|
|
00046 { return m_dE; }
|
|
00046 { return m_dE; }
|
|
00044 { return m_dPhi; }
|
|
00044 { return m_dPhi; }
|
|
00043 { return m_dTheta; }
|
|
00043 { return m_dTheta; }
|
|
|
|
00191 { 00192 RecEmcFractionMap::const_iterator pFractionMap; 00193 00194 cout<<"EMC Shower: "; 00195 00196 cout<<"Shower Id= "; 00197 cout<<fShowerId<<endl; 00198 00199 for(pFractionMap=fFractionMap.begin(); 00200 pFractionMap!=fFractionMap.end(); 00201 pFractionMap++) 00202 { 00203 pFractionMap->second.Dump(); 00204 } 00205 }
|
|
|
|
00004 { 00005 double xx=99.; 00006 if(m_errorMatrix[0][0]>0) xx=sqrt(m_errorMatrix[0][0]); 00007 else if(m_errorMatrix[0][0]==0) xx=0.; 00008 return xx; 00009 }
|
|
|
|
00012 { 00013 double yy=99.; 00014 if(m_errorMatrix[1][1]>0) yy=sqrt(m_errorMatrix[1][1]); 00015 else if(m_errorMatrix[1][1]==0) yy=0.; 00016 return yy; 00017 }
|
|
|
|
00020 { 00021 double zz=99.; 00022 if(m_errorMatrix[2][2]>0) zz=sqrt(m_errorMatrix[2][2]); 00023 else if(m_errorMatrix[2][2]==0) zz=0.; 00024 return zz; 00025 }
|
|
00048 { return m_e3x3; }
|
|
00048 { return m_e3x3; }
|
|
00049 { return m_e5x5; }
|
|
00049 { return m_e5x5; }
|
|
|
|
00279 { 00280 return fEAll=e; 00281 }
|
|
|
|
00283 { 00284 return fELepton=e; 00285 }
|
|
|
|
00137 { 00138 return fFractionMap.end(); 00139 }
|
|
00045 { return m_energy; }
|
|
00045 { return m_energy; }
|
|
|
|
00155 { 00156 RecEmcFractionMap::const_iterator pFractionMap; 00157 pFractionMap=fFractionMap.find(aFraction.getCellId()); 00158 00159 //blank FractionMap 00160 if(fFractionMap.empty()) 00161 { 00162 return; 00163 } 00164 00165 //not find 00166 if(pFractionMap==End()) 00167 { 00168 return; 00169 } 00170 00171 //find it 00172 if(pFractionMap!=End()) 00173 { 00174 fFractionMap.erase(pFractionMap->first); 00175 //empty 00176 if(fFractionMap.empty()) 00177 { 00178 Clear(); 00179 return; 00180 } 00181 //not empty 00182 else 00183 { 00184 return; 00185 } 00186 } 00187 }
|
|
00055 { return m_errorMatrix; }
|
|
00055 { return m_errorMatrix; }
|
|
00047 { return m_eSeed; }
|
|
00047 { return m_eSeed; }
|
|
|
|
00287 { 00288 return fETof2x1=e; 00289 }
|
|
|
|
00291 { 00292 return fETof2x3=e; 00293 }
|
|
|
|
00142 { 00143 // If failed the return vale is End(). 00144 return fFractionMap.find(CellId); 00145 }
|
|
00065 { return fCellId3x3; }
|
|
00065 { return fCellId3x3; }
|
|
00068 { return fCellId5x5; }
|
|
00068 { return fCellId5x5; }
|
|
00062 { return fCluster; }
|
|
00062 { return fCluster; }
|
|
00059 { return fClusterId; }
|
|
00059 { return fClusterId; }
|
|
00092 { return fEAll; }
|
|
00092 { return fEAll; }
|
|
00095 { return fELepton; }
|
|
00095 { return fELepton; }
|
|
00098 { return fETof2x1; }
|
|
00098 { return fETof2x1; }
|
|
00101 { return fETof2x3; }
|
|
00101 { return fETof2x3; }
|
|
|
|
00215 { 00216 RecEmcFractionMap tmpFractionMap; 00217 RecEmcFractionMap::const_iterator pFractionMap; 00218 00219 for(pFractionMap=fFractionMap.begin(); 00220 pFractionMap!=fFractionMap.end(); 00221 pFractionMap++){ 00222 RecEmcFraction aFraction=pFractionMap->second; 00223 tmpFractionMap[aFraction.getCellId()]=aFraction; 00224 } 00225 00226 return tmpFractionMap; 00227 }
|
|
|
|
00230 { 00231 RecEmcFractionMap tmpFractionMap; 00232 if(fFractionMap.empty()) return tmpFractionMap; 00233 00234 RecEmcFractionMap::const_iterator pFractionMap; 00235 ci_RecEmcIDVector pNearCell; 00236 00237 for(pFractionMap=fFractionMap.begin(); 00238 pFractionMap!=fFractionMap.end(); 00239 pFractionMap++){ 00240 for(pNearCell=fCellId3x3.begin(); 00241 pNearCell!=fCellId3x3.end(); 00242 pNearCell++){ 00243 if(pFractionMap->second.getCellId()==*pNearCell){ 00244 RecEmcFraction aFraction=pFractionMap->second; 00245 tmpFractionMap[aFraction.getCellId()]=aFraction; 00246 } 00247 } 00248 } 00249 00250 return tmpFractionMap; 00251 }
|
|
|
|
00254 { 00255 RecEmcFractionMap tmpFractionMap; 00256 if(fFractionMap.empty()) return tmpFractionMap; 00257 00258 RecEmcFractionMap::const_iterator pFractionMap; 00259 ci_RecEmcIDVector pNearCell; 00260 00261 for(pFractionMap=fFractionMap.begin(); 00262 pFractionMap!=fFractionMap.end(); 00263 pFractionMap++){ 00264 for(pNearCell=fCellId5x5.begin(); 00265 pNearCell!=fCellId5x5.end(); 00266 pNearCell++){ 00267 if(pFractionMap->second.getCellId()==*pNearCell){ 00268 RecEmcFraction aFraction=pFractionMap->second; 00269 tmpFractionMap[aFraction.getCellId()]=aFraction; 00270 } 00271 } 00272 } 00273 00274 return tmpFractionMap; 00275 }
|
|
00055 { return fShowerId; }
|
|
00055 { return fShowerId; }
|
|
|
|
00210 { 00211 return fFractionMap.size(); 00212 }
|
|
|
|
00149 { 00150 fFractionMap[aFraction.getCellId()]=aFraction; 00151 return; 00152 }
|
|
00052 {return m_latMoment;}
|
|
00052 {return m_latMoment;}
|
|
00033 { return m_module; }
|
|
00033 { return m_module; }
|
|
|
|
|
|
00302 { 00303 return fNearestSeed=ns; 00304 }
|
|
00297 {
00298 return fNearestSeed;
00299 }
|
|
00030 { return m_numHits; }
|
|
00030 { return m_numHits; }
|
|
|
|
|
|
|
|
00031 { 00032 Clear(); 00033 DstEmcShower::operator=(aShower); 00034 fShowerId=RecEmcID(aShower.cellId()); 00035 return *this; 00036 }
|
|
|
|
|
|
00039 { return m_position.phi(); }
|
|
00039 { return m_position.phi(); }
|
|
|
|
|
|
00322 { 00323 return fPhiGap=PhiGap; 00324 }
|
|
00317 {
00318 return fPhiGap;
00319 }
|
|
00034 { return m_position; }
|
|
00034 { return m_position; }
|
|
00051 {return m_secondMoment;}
|
|
00051 {return m_secondMoment;}
|
|
00073 { m_a20Moment = a20Moment; }
|
|
00073 { m_a20Moment = a20Moment; }
|
|
00074 { m_a42Moment = a42Moment; }
|
|
00074 { m_a42Moment = a42Moment; }
|
|
00060 { m_cellId = id; }
|
|
00060 { m_cellId = id; }
|
|
00064 { m_dE = de; }
|
|
00064 { m_dE = de; }
|
|
00066 { m_dPhi = dpi ; }
|
|
00066 { m_dPhi = dpi ; }
|
|
00065 { m_dTheta = dt; }
|
|
00065 { m_dTheta = dt; }
|
|
00068 { m_e3x3 = e3x3 ; }
|
|
00068 { m_e3x3 = e3x3 ; }
|
|
00069 { m_e5x5 = e5x5 ; }
|
|
00069 { m_e5x5 = e5x5 ; }
|
|
00063 { m_energy = e ; }
|
|
00063 { m_energy = e ; }
|
|
00075 { m_errorMatrix = error; }
|
|
00075 { m_errorMatrix = error; }
|
|
00067 { m_eSeed = eSeed ; }
|
|
00067 { m_eSeed = eSeed ; }
|
|
00072 { m_latMoment = latMoment; }
|
|
00072 { m_latMoment = latMoment; }
|
|
00061 { m_module = mod; }
|
|
00061 { m_module = mod; }
|
|
00058 { m_numHits = hit; }
|
|
00058 { m_numHits = hit; }
|
|
00062 { m_position=pos; }
|
|
00062 { m_position=pos; }
|
|
00071 { m_secondMoment = secondMoment; }
|
|
00071 { m_secondMoment = secondMoment; }
|
|
00059 { m_status = st; }
|
|
00059 { m_status = st; }
|
|
00070 { m_time = time ; }
|
|
00070 { m_time = time ; }
|
|
00057 {m_trackId = trackId;}
|
|
00057 {m_trackId = trackId;}
|
|
|
|
00104 { 00105 return fShowerId=id; 00106 }
|
|
00031 { return m_status; }
|
|
00031 { return m_status; }
|
|
00038 { return m_position.theta(); }
|
|
00038 { return m_position.theta(); }
|
|
|
|
|
|
00312 { 00313 return fThetaGap=ThetaGap; 00314 }
|
|
00307 {
00308 return fThetaGap;
00309 }
|
|
00050 { return m_time; }
|
|
00050 { return m_time; }
|
|
00052 {fTofShower=tof;}
|
|
00051 {return fTofShower;}
|
|
00052 {fTofShower=tof;}
|
|
00051 {return fTofShower;}
|
|
00029 {return m_trackId ;}
|
|
00029 {return m_trackId ;}
|
|
00035 { return m_position.x(); }
|
|
00035 { return m_position.x(); }
|
|
00036 { return m_position.y(); }
|
|
00036 { return m_position.y(); }
|
|
00037 { return m_position.z(); }
|
|
00037 { return m_position.z(); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|