9#include "EmcRecEventModel/RecEmcShower.h"
26 DstEmcShower::operator=( aShower );
128 RecEmcFractionMap::const_iterator pFractionMap;
135 if ( pFractionMap ==
End() ) {
return; }
138 if ( pFractionMap !=
End() )
154 RecEmcFractionMap::const_iterator pFractionMap;
156 cout <<
"EMC Shower: ";
158 cout <<
"Shower Id= ";
163 { pFractionMap->second.Dump(); }
171 RecEmcFractionMap::const_iterator pFractionMap;
177 tmpFractionMap[aFraction.
getCellId()] = aFraction;
180 return tmpFractionMap;
187 RecEmcFractionMap::const_iterator pFractionMap;
195 if ( pFractionMap->second.getCellId() == *pNearCell )
198 tmpFractionMap[aFraction.
getCellId()] = aFraction;
203 return tmpFractionMap;
210 RecEmcFractionMap::const_iterator pFractionMap;
218 if ( pFractionMap->second.getCellId() == *pNearCell )
221 tmpFractionMap[aFraction.
getCellId()] = aFraction;
226 return tmpFractionMap;
249 RecEmcFractionMap::const_iterator pFractionMap;
250 RecEmcFractionMap::const_iterator ciFractionMap3x3;
251 RecEmcFractionMap::const_iterator ciFractionMap5x5;
253 os <<
"------------------RecEmcShower:" << endl;
254 os <<
"Track id: " << aShower.
trackId() <<
", number of hits: " << aShower.
getSize()
257 <<
", time: " << aShower.
time() << endl;
258 os <<
"Energy: " << aShower.
energy() <<
", de: " << aShower.
dE()
259 <<
", eseed: " << aShower.
eSeed() <<
", e3x3: " << aShower.
e3x3()
260 <<
", e5x5: " << aShower.
e5x5() <<
", eall: " << aShower.
getEAll()
261 <<
", elepton: " << aShower.
getELepton() << endl;
262 os <<
"Position: " << aShower.
position() <<
", theta: " << aShower.
theta()
263 <<
", phi: " << aShower.
phi() <<
"\ndx: " << aShower.
dx() <<
", dy: " << aShower.
dy()
264 <<
", dz: " << aShower.
dz() <<
", dtheta: " << aShower.
dtheta()
265 <<
", dphi: " << aShower.
dphi() << endl;
269 os <<
"Error matrix: \n" << aShower.
errorMatrix() << endl;
273 os <<
"Fraction Map: " << endl;
274 for ( pFractionMap = aShower.
Begin(); pFractionMap != aShower.
End(); pFractionMap++ )
275 { os << ( pFractionMap->second ); }
279 if ( fracMap.size() > 0 )
281 os <<
"Fraction Map 3x3: " << endl;
282 for ( ciFractionMap3x3 = fracMap.begin(); ciFractionMap3x3 != fracMap.end();
284 { os << ( ciFractionMap3x3->second ); }
288 if ( fracMap.size() > 0 )
290 os <<
"Fraction Map 5x5: " << endl;
291 for ( ciFractionMap5x5 = fracMap.begin(); ciFractionMap5x5 != fracMap.end();
293 { 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
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