StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
digtransport.h
1 #ifndef MAPS_DIGTRANSPORT_H
2 #define MAPS_DIGTRANSPORT_H
3 
4 #include <TNamed.h>
5 #include <TList.h>
6 #include <TGraph.h>
7 #include "Riostream.h"
8 #include "vector"
9 
10 // ROOT classes
11 #include "TString.h"
12 #include "TObject.h"
13 #include "TVector.h"
14 #include "TFile.h"
15 #include "TSystem.h"
16 #include "TRandom.h"
17 #include "TH1.h"
18 #include "TH2.h"
19 #include "TObjArray.h"
20 #include "TTree.h"
21 #include "TBranch.h"
22 #include "TClonesArray.h"
23 using namespace std;
24 
25 class DIGInitialize;
26 class DIGPlane;
27 class DIGADC;
28 class DIGBeam;
29 class DIGTransport;
30 class DIGParticle;
31 class DIGAction;
32 class DIGEvent;
33 class DIGMAPS;
34 //==============================================================================
35 class DIGTransport : public TObject {
36  public:
37  DIGTransport();
38  DIGTransport(Float_t myvar);
39  DIGTransport(DIGTransport& adigtransport);
40  virtual ~DIGTransport();
41  void Clear(const Option_t * /*option*/ = "");
42  void PrintInfo();
43 
44  Float_t GetMyvar(){return fMyvar;}
45 
46  void SetMyvar(Float_t Myvar);
47 
48  void SetChargeModel(Int_t ChargeModel);
49  void SetLorentz2DModel_Cp0(Float_t Lorentz2DModel_Cp0);
50  void SetLorentz2DModel_Cp1(Float_t Lorentz2DModel_Cp1);
51  void SetRangeLimit_InPitchUnit(Float_t RangeLimit_InPitchUnit);
52 
53  void SetGauss2DModel_sigma1_Cp0(Float_t Gauss2DModel_sigma1_Cp0);
54  void SetGauss2DModel_sigma1_Cp1(Float_t Gauss2DModel_sigma1_Cp1);
55  void SetGauss2DModel_sigma2_Cp0(Float_t Gauss2DModel_sigma2_Cp0);
56  void SetGauss2DModel_sigma2_Cp1(Float_t Gauss2DModel_sigma2_Cp1);
57  void SetGauss2DModel_weight(Float_t Gauss2DModel_weight);
58 
59  Int_t GetChargeModel(){return fChargeModel;}
60 
61  Float_t GetLorentz2DModel_Cp0(){return fLorentz2DModel_Cp0;}
62  Float_t GetLorentz2DModel_Cp1(){return fLorentz2DModel_Cp1;}
63  Float_t GetRangeLimit_InPitchUnit(){return fRangeLimit_InPitchUnit;}
64 
65  Float_t GetGauss2DModel_sigma1_Cp0(){return fGauss2DModel_sigma1_Cp0;}
66  Float_t GetGauss2DModel_sigma1_Cp1(){return fGauss2DModel_sigma1_Cp1;}
67  Float_t GetGauss2DModel_sigma2_Cp0(){return fGauss2DModel_sigma2_Cp0;}
68  Float_t GetGauss2DModel_sigma2_Cp1(){return fGauss2DModel_sigma2_Cp1;}
69  Float_t GetGauss2DModel_weight(){return fGauss2DModel_weight;}
70 
71  Float_t GetLorGaussModel_Norm1_Cp0(){return fLorGaussModel_Norm1_Cp0;}
72  Float_t GetLorGaussModel_Norm1_Cp1(){return fLorGaussModel_Norm1_Cp1;}
73  Float_t GetLorGaussModel_Norm1_Cp2(){return fLorGaussModel_Norm1_Cp2;}
74  Float_t GetLorGaussModel_sigma_Cp0(){return fLorGaussModel_sigma_Cp0;}
75  Float_t GetLorGaussModel_sigma_Cp1(){return fLorGaussModel_sigma_Cp1;}
76  Float_t GetLorGaussModel_C_Cp0(){return fLorGaussModel_C_Cp0;}
77  Float_t GetLorGaussModel_C_Cp1(){return fLorGaussModel_C_Cp1;}
78  Float_t GetLorGaussModel_Norm_Cp0(){return fLorGaussModel_Norm_Cp0;}
79  Float_t GetLorGaussModel_Norm_Cp1(){return fLorGaussModel_Norm_Cp1;}
80 
81  void SetLorGaussModel_Norm1_Cp0(Float_t LorGaussModel_Norm1_Cp0);
82  void SetLorGaussModel_Norm1_Cp1(Float_t LorGaussModel_Norm1_Cp1);
83  void SetLorGaussModel_Norm1_Cp2(Float_t LorGaussModel_Norm1_Cp2);
84  void SetLorGaussModel_sigma_Cp0(Float_t LorGaussModel_sigma_Cp0);
85  void SetLorGaussModel_sigma_Cp1(Float_t LorGaussModel_sigma_Cp1);
86  void SetLorGaussModel_C_Cp0(Float_t LorGaussModel_C_Cp0);
87  void SetLorGaussModel_C_Cp1(Float_t LorGaussModel_C_Cp1);
88  void SetLorGaussModel_Norm_Cp0(Float_t LorGaussModel_Norm_Cp0);
89  void SetLorGaussModel_Norm_Cp1(Float_t LorGaussModel_Norm_Cp1);
90 
91 
92  void SetlorlorgausModel_Norm1_Cp0(Float_t lorlorgausModel_Norm1_Cp0){florlorgausModel_Norm1_Cp0=lorlorgausModel_Norm1_Cp0;}
93  void SetlorlorgausModel_Norm1_Cp1(Float_t lorlorgausModel_Norm1_Cp1){florlorgausModel_Norm1_Cp1=lorlorgausModel_Norm1_Cp1;}
94  void SetlorlorgausModel_x01_Cp0(Float_t lorlorgausModel_x01_Cp0){florlorgausModel_x01_Cp0=lorlorgausModel_x01_Cp0;}
95  void SetlorlorgausModel_x01_Cp1(Float_t lorlorgausModel_x01_Cp1){florlorgausModel_x01_Cp1=lorlorgausModel_x01_Cp1;}
96  void SetlorlorgausModel_sigmax1_Cp0(Float_t lorlorgausModel_sigmax1_Cp0){florlorgausModel_sigmax1_Cp0=lorlorgausModel_sigmax1_Cp0;}
97  void SetlorlorgausModel_sigmax1_Cp1(Float_t lorlorgausModel_sigmax1_Cp1){florlorgausModel_sigmax1_Cp1=lorlorgausModel_sigmax1_Cp1;}
98  void SetlorlorgausModel_y01_Cp0(Float_t lorlorgausModel_y01_Cp0){florlorgausModel_y01_Cp0=lorlorgausModel_y01_Cp0;}
99  void SetlorlorgausModel_y01_Cp1(Float_t lorlorgausModel_y01_Cp1){florlorgausModel_y01_Cp1=lorlorgausModel_y01_Cp1;}
100  void SetlorlorgausModel_sigmay1_Cp0(Float_t lorlorgausModel_sigmay1_Cp0){florlorgausModel_sigmay1_Cp0=lorlorgausModel_sigmay1_Cp0;}
101  void SetlorlorgausModel_sigmay1_Cp1(Float_t lorlorgausModel_sigmay1_Cp1){florlorgausModel_sigmay1_Cp1=lorlorgausModel_sigmay1_Cp1;}
102  void SetlorlorgausModel_Gamma_Cp0(Float_t lorlorgausModel_Gamma_Cp0){florlorgausModel_Gamma_Cp0=lorlorgausModel_Gamma_Cp0;}
103  void SetlorlorgausModel_Gamma_Cp1(Float_t lorlorgausModel_Gamma_Cp1){florlorgausModel_Gamma_Cp1=lorlorgausModel_Gamma_Cp1;}
104  void SetlorlorgausModel_x0_Cp0(Float_t lorlorgausModel_x0_Cp0){florlorgausModel_x0_Cp0=lorlorgausModel_x0_Cp0;}
105  void SetlorlorgausModel_x0_Cp1(Float_t lorlorgausModel_x0_Cp1){florlorgausModel_x0_Cp1=lorlorgausModel_x0_Cp1;}
106  void SetlorlorgausModel_y0_Cp0(Float_t lorlorgausModel_y0_Cp0){florlorgausModel_y0_Cp0=lorlorgausModel_y0_Cp0;}
107  void SetlorlorgausModel_y0_Cp1(Float_t lorlorgausModel_y0_Cp1){florlorgausModel_y0_Cp1=lorlorgausModel_y0_Cp1;}
108  void SetlorlorgausModel_norm_Cp0(Float_t lorlorgausModel_norm_Cp0){florlorgausModel_norm_Cp0=lorlorgausModel_norm_Cp0;}
109  void SetlorlorgausModel_norm_Cp1(Float_t lorlorgausModel_norm_Cp1){florlorgausModel_norm_Cp1=lorlorgausModel_norm_Cp1;}
110  void SetlorlorgausModel_normgaus2_Cp0(Float_t lorlorgausModel_normgaus2_Cp0){florlorgausModel_normgaus2_Cp0=lorlorgausModel_normgaus2_Cp0;}
111  void SetlorlorgausModel_normgaus2_Cp1(Float_t lorlorgausModel_normgaus2_Cp1){florlorgausModel_normgaus2_Cp1=lorlorgausModel_normgaus2_Cp1;}
112  void SetlorlorgausModel_sigma2_Cp0(Float_t lorlorgausModel_sigma2_Cp0){florlorgausModel_sigma2_Cp0=lorlorgausModel_sigma2_Cp0;}
113  void SetlorlorgausModel_sigma2_Cp1(Float_t lorlorgausModel_sigma2_Cp1){florlorgausModel_sigma2_Cp1=lorlorgausModel_sigma2_Cp1;}
114 
115  Float_t GetlorlorgausModel_Norm1_Cp0(){return florlorgausModel_Norm1_Cp0;}
116  Float_t GetlorlorgausModel_Norm1_Cp1(){return florlorgausModel_Norm1_Cp1;}
117  Float_t GetlorlorgausModel_x01_Cp0(){return florlorgausModel_x01_Cp0;}
118  Float_t GetlorlorgausModel_x01_Cp1(){return florlorgausModel_x01_Cp1;}
119  Float_t GetlorlorgausModel_sigmax1_Cp0(){return florlorgausModel_sigmax1_Cp0;}
120  Float_t GetlorlorgausModel_sigmax1_Cp1(){return florlorgausModel_sigmax1_Cp1;}
121  Float_t GetlorlorgausModel_y01_Cp0(){return florlorgausModel_y01_Cp0;}
122  Float_t GetlorlorgausModel_y01_Cp1(){return florlorgausModel_y01_Cp1;}
123  Float_t GetlorlorgausModel_sigmay1_Cp0(){return florlorgausModel_sigmay1_Cp0;}
124  Float_t GetlorlorgausModel_sigmay1_Cp1(){return florlorgausModel_sigmay1_Cp1;}
125  Float_t GetlorlorgausModel_Gamma_Cp0(){return florlorgausModel_Gamma_Cp0;}
126  Float_t GetlorlorgausModel_Gamma_Cp1(){return florlorgausModel_Gamma_Cp1;}
127  Float_t GetlorlorgausModel_x0_Cp0(){return florlorgausModel_x0_Cp0;}
128  Float_t GetlorlorgausModel_x0_Cp1(){return florlorgausModel_x0_Cp1;}
129  Float_t GetlorlorgausModel_y0_Cp0(){return florlorgausModel_y0_Cp0;}
130  Float_t GetlorlorgausModel_y0_Cp1(){return florlorgausModel_y0_Cp1;}
131  Float_t GetlorlorgausModel_norm_Cp0(){return florlorgausModel_norm_Cp0;}
132  Float_t GetlorlorgausModel_norm_Cp1(){return florlorgausModel_norm_Cp1;}
133  Float_t GetlorlorgausModel_normgaus2_Cp0(){return florlorgausModel_normgaus2_Cp0;}
134  Float_t GetlorlorgausModel_normgaus2_Cp1(){return florlorgausModel_normgaus2_Cp1;}
135  Float_t GetlorlorgausModel_sigma2_Cp0(){return florlorgausModel_sigma2_Cp0;}
136  Float_t GetlorlorgausModel_sigma2_Cp1(){return florlorgausModel_sigma2_Cp1;}
137 
138 
139  Float_t Getf1dimgauslor_Norm_g_1st(){return f1dimgauslor_Norm_g_1st ;}
140  Float_t Getf1dimgauslor_x0_g_1st(){return f1dimgauslor_x0_g_1st ;}
141  Float_t Getf1dimgauslor_sigma_g_1st(){return f1dimgauslor_sigma_g_1st ;}
142  Float_t Getf1dimgauslor_Gamma_lor_1st(){return f1dimgauslor_Gamma_lor_1st ;}
143  Float_t Getf1dimgauslor_x0_lor_1st(){return f1dimgauslor_x0_lor_1st ; }
144  Float_t Getf1dimgauslor_norm_lor_1st(){return f1dimgauslor_norm_lor_1st;}
145  Float_t Getf1dimgauslor_Norm_g_2nd(){return f1dimgauslor_Norm_g_2nd ; }
146  Float_t Getf1dimgauslor_x0_g_2nd(){return f1dimgauslor_x0_g_2nd ; }
147  Float_t Getf1dimgauslor_sigma_g_2nd(){return f1dimgauslor_sigma_g_2nd ;}
148  Float_t Getf1dimgauslor_Gamma_lor_2nd(){return f1dimgauslor_Gamma_lor_2nd;}
149  Float_t Getf1dimgauslor_x0_lor_2nd(){return f1dimgauslor_x0_lor_2nd ; }
150  Float_t Getf1dimgauslor_norm_lor_2nd(){return f1dimgauslor_norm_lor_2nd ;}
151 
152  void Setf1dimgauslor_Norm_g_1st(Float_t l1dimgauslor_Norm_g_1st){ f1dimgauslor_Norm_g_1st =l1dimgauslor_Norm_g_1st; }
153  void Setf1dimgauslor_x0_g_1st(Float_t l1dimgauslor_x0_g_1st ){ f1dimgauslor_x0_g_1st =l1dimgauslor_x0_g_1st; }
154  void Setf1dimgauslor_sigma_g_1st(Float_t l1dimgauslor_sigma_g_1st){ f1dimgauslor_sigma_g_1st=l1dimgauslor_sigma_g_1st; }
155  void Setf1dimgauslor_Gamma_lor_1st(Float_t l1dimgauslor_Gamma_lor_1st){ f1dimgauslor_Gamma_lor_1st=l1dimgauslor_Gamma_lor_1st; }
156  void Setf1dimgauslor_x0_lor_1st(Float_t l1dimgauslor_x0_lor_1st){ f1dimgauslor_x0_lor_1st=l1dimgauslor_x0_lor_1st ; }
157  void Setf1dimgauslor_norm_lor_1st(Float_t l1dimgauslor_norm_lor_1st){ f1dimgauslor_norm_lor_1st=l1dimgauslor_norm_lor_1st;}
158  void Setf1dimgauslor_Norm_g_2nd(Float_t l1dimgauslor_Norm_g_2nd ){ f1dimgauslor_Norm_g_2nd=l1dimgauslor_Norm_g_2nd; }
159  void Setf1dimgauslor_x0_g_2nd(Float_t l1dimgauslor_x0_g_2nd){ f1dimgauslor_x0_g_2nd =l1dimgauslor_x0_g_2nd ;}
160  void Setf1dimgauslor_sigma_g_2nd(Float_t l1dimgauslor_sigma_g_2nd){ f1dimgauslor_sigma_g_2nd =l1dimgauslor_sigma_g_2nd;}
161  void Setf1dimgauslor_Gamma_lor_2nd(Float_t l1dimgauslor_Gamma_lor_2nd){ f1dimgauslor_Gamma_lor_2nd=l1dimgauslor_Gamma_lor_2nd;}
162  void Setf1dimgauslor_x0_lor_2nd(Float_t l1dimgauslor_x0_lor_2nd){ f1dimgauslor_x0_lor_2nd=l1dimgauslor_x0_lor_2nd; }
163  void Setf1dimgauslor_norm_lor_2nd(Float_t l1dimgauslor_norm_lor_2nd){ f1dimgauslor_norm_lor_2nd =l1dimgauslor_norm_lor_2nd; }
164 
165 
166 
167 
168 
169  protected:
170  Int_t fChargeModel;
171 
172  Float_t fLorentz2DModel_Cp0;
173  Float_t fLorentz2DModel_Cp1;
174  Float_t fRangeLimit_InPitchUnit;
175 
176  Float_t fGauss2DModel_sigma1_Cp0;
177  Float_t fGauss2DModel_sigma1_Cp1;
178  Float_t fGauss2DModel_sigma2_Cp0;
179  Float_t fGauss2DModel_sigma2_Cp1;
180  Float_t fGauss2DModel_weight;
181 
182  Float_t fLorGaussModel_Norm1_Cp0;
183  Float_t fLorGaussModel_Norm1_Cp1;
184  Float_t fLorGaussModel_Norm1_Cp2;
185  Float_t fLorGaussModel_sigma_Cp0;
186  Float_t fLorGaussModel_sigma_Cp1;
187  Float_t fLorGaussModel_C_Cp0;
188  Float_t fLorGaussModel_C_Cp1;
189  Float_t fLorGaussModel_Norm_Cp0;
190  Float_t fLorGaussModel_Norm_Cp1;
191 
192  Float_t florlorgausModel_Norm1_Cp0 ;
193  Float_t florlorgausModel_Norm1_Cp1 ;
194  Float_t florlorgausModel_x01_Cp0 ;
195  Float_t florlorgausModel_x01_Cp1 ;
196  Float_t florlorgausModel_sigmax1_Cp0 ;
197  Float_t florlorgausModel_sigmax1_Cp1 ;
198  Float_t florlorgausModel_y01_Cp0 ;
199  Float_t florlorgausModel_y01_Cp1 ;
200  Float_t florlorgausModel_sigmay1_Cp0 ;
201  Float_t florlorgausModel_sigmay1_Cp1 ;
202  Float_t florlorgausModel_Gamma_Cp0 ;
203  Float_t florlorgausModel_Gamma_Cp1 ;
204  Float_t florlorgausModel_x0_Cp0 ;
205  Float_t florlorgausModel_x0_Cp1 ;
206  Float_t florlorgausModel_y0_Cp0 ;
207  Float_t florlorgausModel_y0_Cp1 ;
208  Float_t florlorgausModel_norm_Cp0 ;
209  Float_t florlorgausModel_norm_Cp1 ;
210  Float_t florlorgausModel_normgaus2_Cp0 ;
211  Float_t florlorgausModel_normgaus2_Cp1 ;
212  Float_t florlorgausModel_sigma2_Cp0 ;
213  Float_t florlorgausModel_sigma2_Cp1 ;
214 
215  //"Norm_g","x0_g","sigma_g","Gamma_lor","x0_lor","norm_lor"
216  Float_t f1dimgauslor_Norm_g_1st;
217  Float_t f1dimgauslor_x0_g_1st;
218  Float_t f1dimgauslor_sigma_g_1st;
219  Float_t f1dimgauslor_Gamma_lor_1st;
220  Float_t f1dimgauslor_x0_lor_1st;
221  Float_t f1dimgauslor_norm_lor_1st;
222  Float_t f1dimgauslor_Norm_g_2nd;
223  Float_t f1dimgauslor_x0_g_2nd;
224  Float_t f1dimgauslor_sigma_g_2nd;
225  Float_t f1dimgauslor_Gamma_lor_2nd;
226  Float_t f1dimgauslor_x0_lor_2nd;
227  Float_t f1dimgauslor_norm_lor_2nd;
228 
229 
230  Float_t fMyvar;
231 
232  ClassDef(DIGTransport,1);
233 };
234 
235 
236 
237 //==============================================================================
238 
239 #endif
Definition: digadc.h:36