1 #ifndef MAPS_DIGINITIALIZE_H
2 #define MAPS_DIGINITIALIZE_H
19 #include "TObjArray.h"
22 #include "TClonesArray.h"
38 DIGInitialize(
const char *name,
const char *title, TString aCP, TString aCFN, TString action);
40 void SetConfigPath(TString aCP) ;
41 void SetConfigFileName(TString aCFN) ;
42 void SetConfigPathAndFileName() ;
43 void SetConfigPathAndFileName(TString aCP,TString aCFN) ;
44 TString GetConfigPath() ;
45 TString GetConfigFileName() ;
46 TString GetConfigPathAndFileName() ;
48 void nextItem(Char_t delimiter);
50 void read_item(Int_t &arg);
51 void read_item(Float_t &arg);
52 void read_item(Double_t &arg);
53 void read_item(Bool_t &arg);
59 enum {actionnum = 200};
60 Char_t Doit[actionnum];
61 Char_t Model[actionnum];
71 Float_t ParticleDensity;
73 Float_t ThetaIncidentDeg[beamnum];
74 Float_t PhiIncidentDeg[beamnum];
81 enum {planenum = 100};
88 Float_t PitchX[planenum];
89 Float_t PitchY[planenum];
91 Float_t EpitaxialThickness[planenum];
93 Float_t NoiseElectrons[planenum];
97 Float_t Temperature[planenum];
98 Float_t IonizationEnergy;
100 Float_t MaximumSegmentSize;
101 Float_t MaximumChargePerSegment;
102 Float_t DiffusionMaximumRangeInX;
103 Float_t DiffusionMaximumRangeInY;
104 Float_t ReflexionCoefficient;
105 Float_t BasicModel_SigmaTenMicrons;
113 Float_t RangeLimit_InPitchUnit;
114 Float_t Lorentz2DModel_Cp0;
115 Float_t Lorentz2DModel_Cp1;
116 Float_t Gauss2DModel_sigma1_Cp0;
117 Float_t Gauss2DModel_sigma1_Cp1;
118 Float_t Gauss2DModel_sigma2_Cp0;
119 Float_t Gauss2DModel_sigma2_Cp1;
120 Float_t Gauss2DModel_weight;
122 Float_t LorGaussModel_Norm1_Cp0;
123 Float_t LorGaussModel_Norm1_Cp1;
124 Float_t LorGaussModel_Norm1_Cp2;
125 Float_t LorGaussModel_sigma_Cp0;
126 Float_t LorGaussModel_sigma_Cp1;
127 Float_t LorGaussModel_C_Cp0;
128 Float_t LorGaussModel_C_Cp1;
129 Float_t LorGaussModel_Norm_Cp0;
130 Float_t LorGaussModel_Norm_Cp1;
132 Float_t lorlorgausModel_Norm1_Cp0 ;
133 Float_t lorlorgausModel_Norm1_Cp1 ;
134 Float_t lorlorgausModel_x01_Cp0 ;
135 Float_t lorlorgausModel_x01_Cp1 ;
136 Float_t lorlorgausModel_sigmax1_Cp0 ;
137 Float_t lorlorgausModel_sigmax1_Cp1 ;
138 Float_t lorlorgausModel_y01_Cp0 ;
139 Float_t lorlorgausModel_y01_Cp1 ;
140 Float_t lorlorgausModel_sigmay1_Cp0 ;
141 Float_t lorlorgausModel_sigmay1_Cp1 ;
142 Float_t lorlorgausModel_Gamma_Cp0 ;
143 Float_t lorlorgausModel_Gamma_Cp1 ;
144 Float_t lorlorgausModel_x0_Cp0 ;
145 Float_t lorlorgausModel_x0_Cp1 ;
146 Float_t lorlorgausModel_y0_Cp0 ;
147 Float_t lorlorgausModel_y0_Cp1 ;
148 Float_t lorlorgausModel_norm_Cp0 ;
149 Float_t lorlorgausModel_norm_Cp1 ;
150 Float_t lorlorgausModel_normgaus2_Cp0 ;
151 Float_t lorlorgausModel_normgaus2_Cp1 ;
152 Float_t lorlorgausModel_sigma2_Cp0 ;
153 Float_t lorlorgausModel_sigma2_Cp1 ;
155 Float_t l1dimgauslor_Norm_g_1st;
156 Float_t l1dimgauslor_x0_g_1st;
157 Float_t l1dimgauslor_sigma_g_1st;
158 Float_t l1dimgauslor_Gamma_lor_1st;
159 Float_t l1dimgauslor_x0_lor_1st;
160 Float_t l1dimgauslor_norm_lor_1st;
161 Float_t l1dimgauslor_Norm_g_2nd;
162 Float_t l1dimgauslor_x0_g_2nd;
163 Float_t l1dimgauslor_sigma_g_2nd;
164 Float_t l1dimgauslor_Gamma_lor_2nd;
165 Float_t l1dimgauslor_x0_lor_2nd;
166 Float_t l1dimgauslor_norm_lor_2nd;
188 enum {adcnum = 4096};
193 Float_t Electron_Conversion;
194 Float_t ADC_thresholds[adcnum];
228 TString fConfigFileName;
229 TString fConfigPathAndFileName;
230 ifstream fConfigFileStream;
ADCParameter_t & GetADCPar(Int_t aPN)
don''t put in streamer