StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofSimMaker.h
1 /***************************************************************************
2  *
3  * $Id: StTofSimMaker.h,v 1.5 2014/08/06 11:43:49 jeromel Exp $
4  *
5  * Author: Frank Geurts
6  ***************************************************************************
7  *
8  * Description: StTofSimMaker virtual base class for TOFp Simulations
9  *
10  ***************************************************************************
11  *
12  * $Log: StTofSimMaker.h,v $
13  * Revision 1.5 2014/08/06 11:43:49 jeromel
14  * Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
15  *
16  * Revision 1.4 2003/09/10 19:47:38 perev
17  * ansi corrs
18  *
19  * Revision 1.3 2003/07/25 04:34:45 geurts
20  * - upper adc and tdc limits
21  * - geometry initialization moved to InitRun()
22  *
23  * Revision 1.2 2002/12/12 01:43:46 geurts
24  * Introduced InitRun() and FinishRun() members.
25  * TofData in TofCollection is filled with adc and tdc data.
26  * Extra checks for StEvent object to prevent null pointers.
27  * Primitive ADC response function, disabled slatResponseExp().
28  *
29  * Revision 1.1 2001/09/28 19:11:11 llope
30  * first version
31  *
32  **************************************************************************/
33 #ifndef STTOFSIMMAKER_HH
34 #define STTOFSIMMAKER_HH
35 #include "StMaker.h"
36 
37 class StEvent;
38 class TH1F;
39 class StTofCalibration;
40 class StTofSimParam;
41 class StTofGeometry;
42 class StTofMCSlat;
43 struct g2t_ctf_hit_st;
44 
45 class StTofSimMaker : public StMaker{
46  private:
47  StTofGeometry* mGeomDb;
48  StTofCalibration* mCalibDb;
49  StTofSimParam* mSimDb;
50 
51  StEvent *mEvent;
52  TH1F* mdE;
53  TH1F* mdS;
54  TH1F* mNumberOfPhotoelectrons;
55  TH1F* mT;
56  TH1F* mTime;
57  TH1F* mTime1;
58  TH1F* mPMlength;
59  TH1F* mAdc;
60  TH1F* mTdc;
61 
62 
63  protected:
64  StTofMCSlat detectorResponse(g2t_ctf_hit_st*);
65  void fillRaw(void);
66  void electronicNoise(void);
67  void fillEvent();
68  float slatResponseExp(float&);
69 
70  public:
71  StTofSimMaker(const char *name="TofSim");
72  virtual ~StTofSimMaker();
73  virtual Int_t Init();
74  Int_t InitRun(int);
75  Int_t FinishRun(int);
76  virtual Int_t Make();
77  virtual Int_t Finish();
78 
79  virtual const char *GetCVS() const
80  {static const char cvs[]="Tag $Name: $ $Id: StTofSimMaker.h,v 1.5 2014/08/06 11:43:49 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
81 
82  ClassDef(StTofSimMaker,0)
83 };
84 #endif
void fillRaw(void)
digitize to ADC and TDC entries (empty)
virtual Int_t Finish()
write histograms to file
void fillEvent()
fill event (empty)
virtual Int_t Make()
read in GSTAR table and create TOF SlatCollection
Int_t FinishRun(int)
FinishRun method, clean up TOFp dBase entries.
Time-of-Flight Calibration Utilities.
virtual ~StTofSimMaker()
default empty destructor
StTofMCSlat detectorResponse(g2t_ctf_hit_st *)
calculate detector response for a single hit
Time-of-Flight Geometry Utilities.
virtual Int_t Init()
Initialize dBase interfaces and book histograms.
Time-of-Flight Simulator Maker.
Definition: StTofSimMaker.h:45
Int_t InitRun(int)
InitRun method, (re)initialize TOFp data from STAR dBase.
StTofSimMaker(const char *name="TofSim")
default constructor
void electronicNoise(void)
simulate electronic noise (empty)
float slatResponseExp(float &)
exponential slat response model
Time-of-Flight Simulation Utilities.
Definition: StTofSimParam.h:24