BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RecEmcShower.h File Reference
#include "DstEvent/DstEmcShower.h"
#include "EmcRecEventModel/RecEmcCluster.h"
#include "EmcRecEventModel/RecEmcDataType.h"
#include "EmcRecEventModel/RecEmcFraction.h"
#include "EventModel/EventModel.h"
#include "GaudiKernel/ContainedObject.h"
#include "GaudiKernel/ObjectVector.h"

Go to the source code of this file.

Classes

class  RecEmcShower

Typedefs

typedef map< RecEmcID, RecEmcShower, less< RecEmcID > > RecEmcShowerMap
typedef vector< RecEmcShowerRecEmcShowerVec
typedef ObjectVector< RecEmcShowerRecEmcShowerCol

Functions

ostream & operator<< (ostream &os, const RecEmcShower &aShower)

Variables

const CLID & CLID_RecEmcShower

Typedef Documentation

◆ RecEmcShowerCol

◆ RecEmcShowerMap

◆ RecEmcShowerVec

Function Documentation

◆ operator<<()

ostream & operator<< ( ostream & os,
const RecEmcShower & aShower )

Definition at line 248 of file RecEmcShower.cxx.

248 {
249 RecEmcFractionMap::const_iterator pFractionMap;
250 RecEmcFractionMap::const_iterator ciFractionMap3x3;
251 RecEmcFractionMap::const_iterator ciFractionMap5x5;
252
253 os << "------------------RecEmcShower:" << endl;
254 os << "Track id: " << aShower.trackId() << ", number of hits: " << aShower.getSize()
255 << ", status: " << aShower.status() << ", shower id: " << aShower.getShowerId()
256 << ", cluster id: " << aShower.getClusterId() << ", module: " << aShower.module()
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;
266 os << "Second moment: " << aShower.secondMoment() << ", lat moment: " << aShower.latMoment()
267 << ", a20 moment: " << aShower.a20Moment() << ", a42 moment: " << aShower.a42Moment()
268 << endl;
269 os << "Error matrix: \n" << aShower.errorMatrix() << endl;
270
271 if ( aShower.getSize() > 0 )
272 {
273 os << "Fraction Map: " << endl;
274 for ( pFractionMap = aShower.Begin(); pFractionMap != aShower.End(); pFractionMap++ )
275 { os << ( pFractionMap->second ); }
276 }
277
278 RecEmcFractionMap fracMap = aShower.getFractionMap3x3();
279 if ( fracMap.size() > 0 )
280 {
281 os << "Fraction Map 3x3: " << endl;
282 for ( ciFractionMap3x3 = fracMap.begin(); ciFractionMap3x3 != fracMap.end();
283 ciFractionMap3x3++ )
284 { os << ( ciFractionMap3x3->second ); }
285 }
286
287 fracMap = aShower.getFractionMap5x5();
288 if ( fracMap.size() > 0 )
289 {
290 os << "Fraction Map 5x5: " << endl;
291 for ( ciFractionMap5x5 = fracMap.begin(); ciFractionMap5x5 != fracMap.end();
292 ciFractionMap5x5++ )
293 { os << ( ciFractionMap5x5->second ); }
294 }
295
296 os << endl;
297
298 return os;
299}
map< RecEmcID, RecEmcFraction, less< RecEmcID > > RecEmcFractionMap
double dy() const
double dz() const
double dx() const
RecEmcFractionMap::const_iterator End() const
RecEmcFractionMap getFractionMap5x5() const
RecEmcFractionMap::const_iterator Begin() const
unsigned int getSize() const
RecEmcFractionMap getFractionMap3x3() const

Variable Documentation

◆ CLID_RecEmcShower

const CLID& CLID_RecEmcShower
extern

Definition at line 316 of file EventModel.cxx.

Referenced by RecEmcShower::classID().