StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFtpcCalibMaker.h
1 // $Id: StFtpcCalibMaker.h,v 1.7 2014/08/06 11:43:16 jeromel Exp $
2 //
3 // $Log: StFtpcCalibMaker.h,v $
4 // Revision 1.7 2014/08/06 11:43:16 jeromel
5 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
6 //
7 // Revision 1.6 2009/10/14 15:59:55 jcs
8 // changes to be able to vary the gas temperature in addition to varying t0 and
9 // gas composition
10 //
11 // Revision 1.5 2008/05/15 22:39:47 jcs
12 // re-activate helix fit
13 //
14 // Revision 1.4 2006/04/04 14:34:39 jcs
15 // replace assert with a warning message and return kStWarn
16 //
17 // Revision 1.3 2006/03/13 20:40:44 jcs
18 // correct doxygen comment
19 //
20 // Revision 1.2 2006/03/13 20:17:56 jcs
21 // add forgotten doxygen comment terminator
22 //
23 // Revision 1.1 2006/03/13 19:59:56 jcs
24 // commit initial version of the FTPC calibration maker
25 //
26 
27 #ifndef STAR_StFtpcCalibMaker
28 #define STAR_StFtpcCalibMaker
29 
46 #ifndef StMaker_H
47 #include "StMaker.h"
48 #endif
49 
50 #include "StarMagField.h"
51 
52 class StFtpcLaserCalib;
53 class StFtpcLaserTrafo;
54 class StFtpcDbReader;
55 class StFtpcParamReader;
56 
57 class TH1F;
58 class TH2F;
59 
60 class TNtuple;
61 class TFile;
62 
63 class DetectorReader;
64 class St_ftpcClusterPars;
65 class St_ftpcDimensions;
66 
67 class St_ftpcPadrowZ;
68 class St_ftpcEField;
69 class St_ftpcVDrift;
70 class St_ftpcDeflection;
71 class St_ftpcdVDriftdP;
72 class St_ftpcdDeflectiondP;
73 class St_ftpcElectronics;
74 class St_ftpcDriftField;
75 class St_ftpcGas;
76 
77 class StFtpcCalibMaker : public StMaker
78 {
79  private:
80 
81  //Bool_t drawinit;
82 
83  St_ftpcClusterPars *m_clusterpars;
84  St_ftpcDimensions *m_dimensions;
85  St_ftpcPadrowZ *m_padrow_z;
86  St_ftpcEField *m_efield;
87  St_ftpcVDrift *m_vdrift;
88  St_ftpcDeflection *m_deflection;
89  St_ftpcdVDriftdP *m_dvdriftdp;
90  St_ftpcdDeflectiondP *m_ddeflectiondp;
91  St_ftpcElectronics *m_electronics;
92  St_ftpcDriftField *m_driftfield;
93  St_ftpcGas *m_gas;
94 
95  //void MakeHistograms();// Histograms for FTPC cluster finder
96 
97  StFtpcDbReader *dbReader;
98  StFtpcParamReader *paramReader;
99 
100  StFtpcLaserTrafo *trafo;
101  StFtpcLaserTrafo *trafo2;
102  TFile *anaf;
103 
104  protected:
105 
106  Int_t run;
107  Int_t date;
108  Int_t time;
109 
110  Float_t micropertime;
111  Float_t normalizedNowPressure;
112  Float_t standardPressure;
113  Float_t baseTemperature;
114  Float_t gasTemperatureWest;
115  Float_t gasTemperatureEast;
116  Float_t deltapW;
117  Float_t deltapE;
118  Float_t deltap;
119  Float_t tZero;
120 
121  public:
122 
123  TH1F *hradeall,*hradwall, *hrade, *hradw;
124  TH1F *htimee, *htimew;
125 
126  StFtpcCalibMaker(const char *name="ftpc_calib");
127 
128  //void DoLaserCalib(TString filename);
129  void GetRunInfo(TString filename);
130  void DoLaserCalib(TString filename,int ftpc, int lsec, int straight, int gfit, int minz, int maxz, int minrad, int maxrad, char* t0, char* gas,float gastemp,float mbfield);
131  void DoT0Calib(TString filename,char* t0, char* gas, float mbfield);
132  virtual Int_t DbInit(float mbfield);
133  void HistInit(int nradbins,TString fname, char* t0, char* gas);
134  void MakeT0Ps(int nradbins,TString psname, char* t0, char* gas);
135  virtual ~StFtpcCalibMaker();
136 
137 
138  // inline get functions
139 
140  Int_t RunNum() {return run;}
141  Int_t Date() {return date;}
142  Int_t Time() {return time;}
143 
144  virtual const char *GetCVS() const
145  {static const char cvs[]="Tag $Name: $ $Id: StFtpcCalibMaker.h,v 1.7 2014/08/06 11:43:16 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
146 
147 
148  ClassDef(StFtpcCalibMaker,1) //StAF chain virtual base class for Makers
149 
150 };
151 #endif
virtual Int_t DbInit(float mbfield)
The FTPC calibration maker.
void HistInit(int nradbins, TString fname, char *t0, char *gas)
void DoLaserCalib(TString filename, int ftpc, int lsec, int straight, int gfit, int minz, int maxz, int minrad, int maxrad, char *t0, char *gas, float gastemp, float mbfield)
void DoT0Calib(TString filename, char *t0, char *gas, float mbfield)
void MakeT0Ps(int nradbins, TString psname, char *t0, char *gas)