BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
RecEmcCluster.cxx File Reference
#include <iostream>
#include "EmcRecEventModel/RecEmcCluster.h"
#include "EmcRecGeoSvc/EmcRecGeoSvc.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 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