StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEemcGammaFilterMaker.h
1 // $Id: StEemcGammaFilterMaker.h,v 1.4 2014/08/06 11:43:14 jeromel Exp $
2 
3 #ifndef STAR_StEemcGammaFilterMaker
4 #define STAR_StEemcGammaFilterMaker
5 
17 #include "StMaker.h"
18 
19 using namespace std;
20 
21 // Forward class declarations
22 class StEmcCollection;
23 class StEmcGeom;
24 class StEmcPosition;
25 class EEmcGeomSimple;
27 class StMcCalorimeterHit;
28 class TVector3;
29 
30 // Calorimeter geometry globals
31 
32 const unsigned int nEemcEtaBins = 12;
33 const unsigned int nEemcPhiBins = 60;
34 const unsigned int nEemcTowers = nEemcEtaBins * nEemcPhiBins;
35 
37 {
38 
39  public:
40 
42  virtual ~StEemcGammaFilterMaker();
43 
44  virtual Int_t Init();
45  virtual Int_t Make();
46  virtual Int_t Finish();
47  virtual void Clear(const Option_t* = "");
48 
49  virtual const char *GetCVS() const
50  {
51  static const char cvs[]="Tag $Name: $ $Id: StEemcGammaFilterMaker.h,v 1.4 2014/08/06 11:43:14 jeromel Exp $ built " __DATE__ " " __TIME__ ;
52  return cvs;
53  }
54 
55  void setThresholds(double seed, double cluster);
56  void setMaxVertex(double maxVertex);
57  void setEEMCSamplingFraction(double f=0.048);//change to 4.8% hard coded
58 
59  Int_t makeEEMC(StEmcCollection *emcCollection, double zVertex);
60 
61  bool getUseDbParams() const {return mUseDbParams;}
62  void setUseDbParams(bool use = true) {mUseDbParams = use;}
63 
64  private:
65  TVector3 *mMomentum;
66  double mMaxVertex;
67  double mSeedEnergyThreshold;
68  double mClusterEtThreshold;
69  double mEemcSamplingFraction;
70  double mEemcTowerHits[nEemcTowers];
71 
72  EEmcGeomSimple *mEemcGeom;
73 
74  // Filter counters
75  unsigned int mTotal;
76  unsigned int mAccepted;
77  unsigned int mVertexRejected;
78  unsigned int mFilterRejected;
79  bool mFilterMode;
80  bool mUseDbParams; // whether or not read parameters from the database
81 
82  ClassDef(StEemcGammaFilterMaker, 0);
83 
84 };
85 
86 #endif
87 
88 // $Log: StEemcGammaFilterMaker.h,v $
89 // Revision 1.4 2014/08/06 11:43:14 jeromel
90 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
91 //
92 // Revision 1.3 2010/08/09 21:51:22 seluzhen
93 // updated comment field
94 //
95 // Revision 1.2 2010/08/09 21:38:21 seluzhen
96 // Gets sampling fraction from Fast simulator, db settings moved to Init
97 //
BFC level Endcap EMC gamma filter.
EEMC simple geometry.