2 #include "StEmcVirtualFinder.h"
4 #include "StEventTypes.h"
6 #include "StEmcUtil/others/emcDetectorName.h"
14 for(Int_t i = 0; i<MAXDETBARREL; i++)
20 title =
"Number of clusters for detector ";
22 mHist1D[0][i] =
new TH1F(name.Data(),title.Data(),500,0,500);
26 title =
"Number of hits/cluster for detector ";
28 mHist1D[1][i] =
new TH1F(name.Data(),title.Data(),20,0,20);
32 title =
"Cluster energy for detector ";
34 mHist1D[2][i] =
new TH1F(name.Data(),title.Data(),500,0,50);
38 title =
"Cluster RMS/eta for detector ";
40 mHist1D[3][i] =
new TH1F(name.Data(),title.Data(),20,0,0.1);
44 title =
"Cluster RMS/phi for detector ";
46 mHist1D[4][i] =
new TH1F(name.Data(),title.Data(),20,0,0.1);
50 title =
"Cluster (eta,phi) for detector ";
52 mHist2D[0][i] =
new TH2F(name.Data(),title.Data(),40,-1,1,120,-3.1415,3.1415);
56 StEmcVirtualFinder::~StEmcVirtualFinder()
58 for(Int_t i = 0; i<MAXDETBARREL; i++)
72 StSPtrVecEmcPoint& pvec = emc->barrelPoints();
76 for(Int_t i=0; i<MAXDETBARREL; i++)
78 StDetectorId
id =
static_cast<StDetectorId
>(i+kBarrelEmcTowerId);
81 if(detector->cluster())
83 StSPtrVecEmcCluster& cluster=detector->cluster()->clusters();
92 for(Int_t i = 0;i<MAXDETBARREL; i++)
102 for(Int_t i = 0;i<MAXDETBARREL;i++)
105 StDetectorId
id =
static_cast<StDetectorId
>(i+kBarrelEmcTowerId);
116 detector->setCluster(coll);
118 coll->setDetector(
id);
119 coll->setClusterFinderId(1);
120 coll->setClusterFinderParamVersion(1);
122 for(Int_t j = 0;j<n;j++)
134 detector->setCluster(NULL);
144 for(Int_t i = 0;i<MAXDETBARREL;i++)
146 StDetectorId
id =
static_cast<StDetectorId
>(i+kBarrelEmcTowerId);
153 StSPtrVecEmcCluster& clusters = coll->clusters();
154 Int_t n = clusters.size();
155 mHist1D[0][i]->Fill(n);
156 for(Int_t j = 0;j<n;j++)
161 mHist1D[1][i]->Fill(c->nHits());
162 mHist1D[2][i]->Fill(c->energy());
163 mHist1D[3][i]->Fill(c->sigmaEta());
164 mHist1D[4][i]->Fill(c->sigmaPhi());
165 mHist2D[0][i]->Fill(c->eta(),c->phi());
virtual Bool_t clear()
clear the pre cluster collections
Int_t getNClusters()
gets the number of clusters in the collection
virtual Bool_t fillStEvent(StEvent *)
fills the StEvent object with the StEmcPreCluster objects in the collections
virtual Bool_t fillHistograms(StEvent *)
fills the QA histograms
virtual Bool_t findClusters(StEvent *)
finds clusters in a StEvent object
StEmcCluster * makeStCluster()
creates an StEmcCluster from the information in this pre cluster
StEmcPreCluster * getCluster(Int_t)
gets a cluster in the collection by its index