BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Emc/EmcRecEventModel/EmcRecEventModel-01-01-18/EmcRecEventModel/RecEmcCluster.h File Reference
#include "GaudiKernel/ContainedObject.h"
#include "GaudiKernel/ObjectVector.h"
#include "EventModel/EventModel.h"
#include "EmcRecEventModel/RecEmcHit.h"
#include "EmcRecEventModel/RecEmcDataType.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 305 of file RecEmcCluster.cxx.

306{
307 RecEmcHitMap::const_iterator pHitMap;
308
309 cout<<"EMC Cluster: ";
310
311 cout<<"Cluster Id= ";
312 cout<<aCluster.getClusterId()<<endl;
313
314 for(pHitMap=aCluster.Begin();
315 pHitMap!=aCluster.End();
316 pHitMap++)
317 {
318 os<< (pHitMap->second);
319 }
320
321 if(aCluster.getSeedSize()>0) {
322 cout<<"Contains "<<aCluster.getSeedSize()<<" Seeds:"<<endl;
323 RecEmcHitMap::const_iterator pSeedMap;
324 for(pSeedMap=aCluster.BeginSeed();
325 pSeedMap!=aCluster.EndSeed();
326 pSeedMap++)
327 {
328 os<< (pSeedMap->second);
329 }
330 }
331
332 if(aCluster.getShowerSize()>0) {
333 vector<RecEmcID> aShowerIdVec=aCluster.getShowerIdVec();
334 vector<RecEmcID>::iterator iShowerId;
335 os<<"Contains "<<aCluster.getShowerSize()<<" Showers:"<<endl;
336 for(iShowerId=aShowerIdVec.begin();
337 iShowerId!=aShowerIdVec.end();
338 iShowerId++) {
339 os << *iShowerId <<endl;
340 }
341 }
342
343 return os;
344}
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 323 of file EventModel.cxx.