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

Go to the source code of this file.

Classes

class  RecEmcCluster

Typedefs

typedef map< RecEmcID, RecEmcCluster, less< RecEmcID > > RecEmcClusterMap
typedef ObjectVector< RecEmcClusterRecEmcClusterCol

Functions

ostream & operator<< (ostream &os, const RecEmcCluster &aCluster)

Variables

const CLID & CLID_RecEmcCluster

Typedef Documentation

◆ RecEmcClusterCol

◆ RecEmcClusterMap

Function Documentation

◆ operator<<()

ostream & operator<< ( ostream & os,
const RecEmcCluster & aCluster )

Definition at line 242 of file RecEmcCluster.cxx.

242 {
243 RecEmcHitMap::const_iterator pHitMap;
244
245 cout << "EMC Cluster: ";
246
247 cout << "Cluster Id= ";
248 cout << aCluster.getClusterId() << endl;
249
250 for ( pHitMap = aCluster.Begin(); pHitMap != aCluster.End(); pHitMap++ )
251 { os << ( pHitMap->second ); }
252
253 if ( aCluster.getSeedSize() > 0 )
254 {
255 cout << "Contains " << aCluster.getSeedSize() << " Seeds:" << endl;
256 RecEmcHitMap::const_iterator pSeedMap;
257 for ( pSeedMap = aCluster.BeginSeed(); pSeedMap != aCluster.EndSeed(); pSeedMap++ )
258 { os << ( pSeedMap->second ); }
259 }
260
261 if ( aCluster.getShowerSize() > 0 )
262 {
263 vector<RecEmcID> aShowerIdVec = aCluster.getShowerIdVec();
264 vector<RecEmcID>::iterator iShowerId;
265 os << "Contains " << aCluster.getShowerSize() << " Showers:" << endl;
266 for ( iShowerId = aShowerIdVec.begin(); iShowerId != aShowerIdVec.end(); iShowerId++ )
267 { os << *iShowerId << endl; }
268 }
269
270 return os;
271}
RecEmcHitMap::const_iterator EndSeed() const
RecEmcHitMap::const_iterator BeginSeed() const
int getSeedSize() const
RecEmcHitMap::const_iterator Begin() const
RecEmcHitMap::const_iterator End() const
int getShowerSize() const

Variable Documentation

◆ CLID_RecEmcCluster

const CLID& CLID_RecEmcCluster
extern

Definition at line 322 of file EventModel.cxx.