StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEmcOldFinder.h
1 
9 #ifndef STAR_StEmcOldFinder
10 #define STAR_StEmcOldFinder
11 
12 #include "StEmcVirtualFinder.h"
13 #include "TList.h"
14 #include "TArray.h"
15 #include "StEmcPreClusterCollection.h"
16 #include "StEmcUtil/others/emcInternalDef.h"
17 #include "StEmcRawMaker/defines.h"
18 
19 class StEvent;
20 class StEmcDetector;
21 class StEmcModule;
22 
24 {
25 private:
26 
27 protected:
28  Float_t mEnergySeed[MAXDETBARREL];
29  Float_t mEnergyAdd[MAXDETBARREL];
30  Float_t mEnergyThresholdAll[MAXDETBARREL];
31  Int_t mSizeMax[MAXDETBARREL];
32 
33  TArrayF mEnergy;
34  TArrayI mEW;
35  TArrayI mSW;
36  TArrayI mUsed;
37  TArrayI mHitsId;
38  Int_t mNHit;
39  Int_t mNH;
40  Int_t mFirst;
41  Int_t mLast;
42  Int_t mKeyEta;
43  Int_t mKeyPhi;
44  Int_t mEtaFirst;
45  Int_t mEtaLast;
46  Int_t mPhiFirst;
47  Int_t mPhiLast;
48  Int_t mSecond;
49  Int_t mEtaSeed;
50  Int_t mKeyDir;
51  Int_t mOverlapFlag;
52  Float_t mEnergyLast;
53  Float_t mEnergyFirst;
54 
56  Bool_t findClustersInModule(Int_t, StEmcModule*);
57  Bool_t testOnNeighbor(Int_t, Int_t);
58 
59 public:
61  virtual ~StEmcOldFinder();
62 
63  virtual Bool_t findClusters(StEvent*);
64 
65  void setEnergySeed(Int_t det, Float_t a)
66  {
67  mEnergySeed[det-1] = a;
68  }
69  void setEnergyAdd(Int_t det, Float_t a)
70  {
71  mEnergyAdd[det-1] = a;
72  }
73  void setEnergyThresholdAll(Int_t det, Float_t a)
74  {
75  mEnergyThresholdAll[det-1] = a;
76  }
77  void setSizeMax(Int_t det, Int_t a)
78  {
79  mSizeMax[det-1] = a;
80  }
81 
82  Float_t energySeed(Int_t det)
83  {
84  return mEnergySeed[det-1];
85  }
86  Float_t energyAdd(Int_t det)
87  {
88  return mEnergyAdd[det-1];
89  }
90  Float_t energyThresholdAll(Int_t det)
91  {
92  return mEnergyThresholdAll[det-1];
93  }
94  Int_t sizeMax(Int_t det)
95  {
96  return mSizeMax[det-1];
97  }
98 
99 
100 
101  ClassDef(StEmcOldFinder,1)
102 };
103 
104 #endif
Bool_t findClustersInModule(Int_t, StEmcModule *)
finds clusters in a BEMC module
Int_t sizeMax(Int_t det)
returns the size max for a given detector
Float_t energyAdd(Int_t det)
returns the energy add value for a given detector
void setEnergyThresholdAll(Int_t det, Float_t a)
sets the energy threshold. Energy threshold is the minimum energy a cluster should have to be saved ...
void setSizeMax(Int_t det, Int_t a)
sets the size max. Size max is the maximum number of hits a cluster can have
void setEnergySeed(Int_t det, Float_t a)
sets the energy seed. Energy seed is the minimum energy a hit should have to start looking for a clus...
Bool_t testOnNeighbor(Int_t, Int_t)
test for hits in neighbor strips
Float_t energyThresholdAll(Int_t det)
returns the energy threshold for a given detector
void setEnergyAdd(Int_t det, Float_t a)
sets the energy add. Energy add is the minimum energy a hit should have to be include in a cluster ...
Float_t energySeed(Int_t det)
returns the energy seed value for a given detector
virtual Bool_t findClusters(StEvent *)
finds clusters in a StEvent object
Bool_t findClustersInDetector(StEmcDetector *)
finds clusters in a given detector