BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RecEmcCluster.cxx File Reference
#include <iostream>
#include "EmcRecEventModel/RecEmcCluster.h"
#include "EmcRecGeoSvc/IEmcRecGeoSvc.h"
#include "GaudiKernel/Bootstrap.h"
#include "GaudiKernel/ISvcLocator.h"

Go to the source code of this file.

Functions

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

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