StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFcsFastSimulatorMaker.h
1 // $Id: StFcsFastSimulatorMaker.h,v 1.2 2021/03/30 13:40:09 akio Exp $
2 //
3 // $Log: StFcsFastSimulatorMaker.h,v $
4 // Revision 1.2 2021/03/30 13:40:09 akio
5 // FCS code after peer review and moved from $CVSROOT/offline/upgrades/akio
6 //
7 // Revision 1.8 2021/02/25 21:54:41 akio
8 // Int_t -> int
9 //
10 // Revision 1.7 2021/02/25 19:25:48 akio
11 // Code modified for STAR code review
12 //
13 // Revision 1.6 2021/02/23 16:25:51 akio
14 // Modification to attend comments from STAR code review (Jason)
15 //
16 // Revision 1.5 2020/05/29 18:51:02 akio
17 // adding EPD g2t reading as PRES
18 //
19 // Revision 1.4 2019/10/23 17:15:42 akio
20 // *** empty log message ***
21 //
22 // Revision 1.3 2019/07/22 18:56:41 akio
23 // Added LeakyHcal option 2 and 3 for 2d light collection efficiency parametrization
24 //
25 // Revision 1.2 2019/05/16 16:11:56 akio
26 // Adding leaky hcal option
27 //
28 // Revision 1.1 2018/11/14 16:50:16 akio
29 // FCS codes in offline/upgrade/akio
30 //
31 //
32 // Declaration of StFcsFastSimulatorMaker, the FCS fast simulator
33 
34 #ifndef ST_FCS_SIMULATOR_MAKER_H
35 #define ST_FCS_SIMULATOR_MAKER_H
36 
37 class StEvent;
38 class StFcsHit;
39 class StFcsDb;
40 
41 #include "StChain/StMaker.h"
42 #include "StEvent/StEnumerations.h"
43 
50 
52 
53 public:
54 
55  StFcsFastSimulatorMaker(const char* name = "fcsSim");
56  virtual ~StFcsFastSimulatorMaker() {}
57  int Init();
58  void Clear(Option_t *option="");
59  int Make();
60  void setDebug(int v=1) {SetDebug(v);}
61 
67  void setLeakyHcal(int v=1) {SetAttr("FcsLeakyHcal",v);}
68 
73  void setHcalZDepEff(int v=1) {SetAttr("FcsHcalZDepEff",v);}
74 
75 private:
76  StFcsDb* mFcsDb;
77  void fillStEvent(StEvent* event);
78  StFcsHit* mEcalMap[kFcsNorthSouth][kFcsEcalMaxId];
79  StFcsHit* mHcalMap[kFcsNorthSouth][kFcsHcalMaxId];
80  StFcsHit* mPresMap[kFcsNorthSouth][kFcsPresMaxId];
81 
82  virtual const Char_t *GetCVS() const {static const Char_t cvs[]="Tag " __DATE__ " " __TIME__ ; return cvs;}
83  ClassDef(StFcsFastSimulatorMaker, 1)
84 };
85 
86 #endif // ST_FCS_SIMULATOR_MAKER_H
void setLeakyHcal(int v=1)
backward compatibility
void Clear(Option_t *option="")
User defined functions.