BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcRecCluster2Shower Class Reference

#include <EmcRecCluster2Shower.h>

+ Inheritance diagram for EmcRecCluster2Shower:

Public Member Functions

 EmcRecCluster2Shower ()
 
 ~EmcRecCluster2Shower ()
 
void Convert (RecEmcClusterMap &aClusterMap, RecEmcShowerMap &aShowerMap)
 
- Public Member Functions inherited from EmcRecCluster2ShowerAbs
 EmcRecCluster2ShowerAbs ()
 
virtual ~EmcRecCluster2ShowerAbs ()
 
virtual void Convert (RecEmcClusterMap &aClusterMap, RecEmcShowerMap &aShowerMap)=0
 

Detailed Description

Definition at line 16 of file EmcRecCluster2Shower.h.

Constructor & Destructor Documentation

◆ EmcRecCluster2Shower()

EmcRecCluster2Shower::EmcRecCluster2Shower ( )

Definition at line 14 of file EmcRecCluster2Shower.cxx.

15{
16 //cout<<"====== EmcRec: Offline Mode ======"<<endl;
17 // fSeedFinder=new EmcRecSeedLocalMax;
18 fSeedFinder=new EmcRecSeedEThreshold;
19 fSplitter=new EmcRecSplitWeighted;
20}

◆ ~EmcRecCluster2Shower()

EmcRecCluster2Shower::~EmcRecCluster2Shower ( )

Definition at line 22 of file EmcRecCluster2Shower.cxx.

23{
24 delete fSeedFinder;
25 delete fSplitter;
26}

Member Function Documentation

◆ Convert()

void EmcRecCluster2Shower::Convert ( RecEmcClusterMap aClusterMap,
RecEmcShowerMap aShowerMap 
)
virtual

Implements EmcRecCluster2ShowerAbs.

Definition at line 28 of file EmcRecCluster2Shower.cxx.

30{
31 RecEmcClusterMap::iterator ciClusterMap;
32
33 RecEmcIDVector aMaxVec;
34 for(ciClusterMap=aClusterMap.begin();
35 ciClusterMap!=aClusterMap.end();
36 ++ciClusterMap)
37 {
38 //++++++++++++++++++++++++++
39 //get its local maximum list
40 fSeedFinder->Seed(ciClusterMap->second,aMaxVec);
41 //++++++++++++++++++++++++++++++++++++++++++++++
42 //put seeds to cluster
43 if(!aMaxVec.empty()) {
45 for(ciMax=aMaxVec.begin();
46 ciMax!=aMaxVec.end();
47 ++ciMax) {
48 ciClusterMap->second.InsertSeed(ciClusterMap->second.Find(*ciMax)->second);
49 }
50 }
51 //++++++++++++++++++++++++++++++++++++++++++++++
52 //split it into showers and push into shower map
53 fSplitter->Split(ciClusterMap->second,aMaxVec,aShowerMap);
54 }
55}
RecEmcIDVector::const_iterator ci_RecEmcIDVector
vector< RecEmcID > RecEmcIDVector
virtual void Seed(const RecEmcCluster &aCluster, RecEmcIDVector &aMaxVec)=0
virtual void Split(RecEmcCluster &aCluster, const RecEmcIDVector &aMaxVec, RecEmcShowerMap &aShowerMap)=0

The documentation for this class was generated from the following files: