9#include "EmcRecEventModel/RecEmcShower.h"
33 DstEmcShower::operator=(aShower);
156 RecEmcFractionMap::const_iterator pFractionMap;
166 if(pFractionMap==
End())
172 if(pFractionMap!=
End())
192 RecEmcFractionMap::const_iterator pFractionMap;
194 cout<<
"EMC Shower: ";
203 pFractionMap->second.Dump();
217 RecEmcFractionMap::const_iterator pFractionMap;
223 tmpFractionMap[aFraction.
getCellId()]=aFraction;
226 return tmpFractionMap;
234 RecEmcFractionMap::const_iterator pFractionMap;
243 if(pFractionMap->second.getCellId()==*pNearCell){
245 tmpFractionMap[aFraction.
getCellId()]=aFraction;
250 return tmpFractionMap;
258 RecEmcFractionMap::const_iterator pFractionMap;
267 if(pFractionMap->second.getCellId()==*pNearCell){
269 tmpFractionMap[aFraction.
getCellId()]=aFraction;
274 return tmpFractionMap;
328 RecEmcFractionMap::const_iterator pFractionMap;
329 RecEmcFractionMap::const_iterator ciFractionMap3x3;
330 RecEmcFractionMap::const_iterator ciFractionMap5x5;
332 os<<
"------------------RecEmcShower:"<<endl;
333 os<<
"Track id: "<<aShower.
trackId()<<
", number of hits: "<<aShower.
getSize()
336 <<
", time: "<<aShower.
time()<<endl;
337 os<<
"Energy: "<<aShower.
energy()<<
", de: "<<aShower.
dE()
338 <<
", eseed: "<<aShower.
eSeed()
339 <<
", e3x3: "<<aShower.
e3x3()<<
", e5x5: "<<aShower.
e5x5()
341 os<<
"Position: "<<aShower.
position()
342 <<
", theta: "<<aShower.
theta()<<
", phi: "<<aShower.
phi()
343 <<
"\ndx: "<<aShower.
dx()<<
", dy: "<<aShower.
dy()<<
", dz: "<<aShower.
dz()
344 <<
", dtheta: "<<aShower.
dtheta()<<
", dphi: "<<aShower.
dphi()<<endl;
348 <<
", a42 moment: "<<aShower.
a42Moment()<<endl;
349 os<<
"Error matrix: \n"<<aShower.
errorMatrix()<<endl;
352 os<<
"Fraction Map: "<<endl;
353 for(pFractionMap=aShower.
Begin();
354 pFractionMap!=aShower.
End();
356 os<< (pFractionMap->second);
361 if(fracMap.size()>0) {
362 os<<
"Fraction Map 3x3: "<<endl;
363 for(ciFractionMap3x3=fracMap.begin();
364 ciFractionMap3x3!=fracMap.end();
366 os<< (ciFractionMap3x3->second);
371 if(fracMap.size()>0) {
372 os<<
"Fraction Map 5x5: "<<endl;
373 for(ciFractionMap5x5=fracMap.begin();
374 ciFractionMap5x5!=fracMap.end();
376 os<< (ciFractionMap5x5->second);
RecEmcIDVector::const_iterator ci_RecEmcIDVector
vector< RecEmcID > RecEmcIDVector
map< RecEmcID, RecEmcFraction, less< RecEmcID > > RecEmcFractionMap
ostream & operator<<(ostream &os, const RecEmcShower &aShower)
HepPoint3D position() const
double secondMoment() const
HepSymMatrix errorMatrix() const
void clear()
Reset to invalid state.
RecEmcID getCellId() const
RecEmcFractionMap::const_iterator End() const
void CellId3x3(RecEmcIDVector &id3x3)
RecEmcFractionMap getFractionMap5x5() const
RecEmcEnergy ETof2x3(RecEmcEnergy e)
RecEmcEnergy EAll(RecEmcEnergy e)
RecEmcFractionMap getFractionMap() const
RecEmcID getClusterId() const
RecEmcEnergy ETof2x1(RecEmcEnergy e)
RecEmcEnergy ELepton(RecEmcEnergy e)
RecEmcID getShowerId() const
RecEmcEnergy getELepton() const
RecEmcFractionMap::const_iterator Begin() const
void ClusterId(const RecEmcID id)
RecEmcFractionMap::const_iterator Find(const RecEmcID &CellId) const
RecEmcID ShowerId(RecEmcID id)
unsigned int getSize() const
void Cluster(RecEmcCluster *pCluster)
void Erase(const RecEmcFraction &aFraction)
RecEmcID NearestSeed() const
void Insert(const RecEmcFraction &aFraction)
RecEmcFractionMap fFractionMap
RecEmcEnergy getEAll() const
RecEmcShower & operator=(const DstEmcShower &aShower)
RecEmcFractionMap getFractionMap3x3() const
void CellId5x5(RecEmcIDVector &id5x5)
RecEmcIDVector fCellId5x5
RecEmcIDVector fCellId3x3