81 :Algorithm(name, pSvcLocator),
82 m_vr0cut(1.0),
83 m_vz0cut(5.0),
84 m_lowEnergyShowerCut(0.1),
85 m_highEnergyShowerCut(0.5),
86 m_matchThetaCut(0.2),
87 m_matchPhiCut(0.2),
88 m_highMomentumCut(0.5),
89 m_EoPMaxCut(1.3),
90 m_EoPMinCut(0.6),
91 m_minAngShEnergyCut(0.2),
92 m_minAngCut(0.3),
93 m_acolliCut(0.03),
94 m_eNormCut(0.5),
95 m_pNormCut(0.5),
96 m_oneProngMomentumCut(1.2),
97
98 m_digiRangeCut(6),
99 m_ShEneThreshCut(0.02),
100 m_ShEneLeptonCut(1.),
101 m_minNrXtalsShowerCut(10),
102 m_maxNrXtalsShowerCut(70),
103 m_phiDiffMinCut(0.05),
104 m_phiDiffMaxCut(0.2),
105 m_nrShThreshCut(20),
106 m_thetaDiffCut(0.04),
107 m_LATCut(0.8),
108
109 m_showersAccepted(0),
110
111 m_writeMVToFile(true),
112 m_fileExt(""),
113 m_inputFileDir("../InputData/"),
114 m_fileDir("/ihepbatch/besdata/public/liucx/Calib/"),
115 m_selMethod("Ixtal"),
116 m_nXtals(6240),
117 m_sigmaCut(1.),
118 m_beamEnergy(1.843),
119 m_MsgFlag(0)
120
121{
122
123
124
125
126 declareProperty ("Vr0cut", m_vr0cut);
127 declareProperty ("Vz0cut", m_vz0cut);
128
129 declareProperty ("lowEnergyShowerCut", m_lowEnergyShowerCut);
130 declareProperty ("highEnergyShowerCut", m_highEnergyShowerCut);
131 declareProperty ("matchThetaCut", m_matchThetaCut);
132 declareProperty ("matchPhiCut", m_matchPhiCut);
133
134 declareProperty ("highMomentumCut", m_highMomentumCut);
135 declareProperty ("EoPMaxCut", m_EoPMaxCut);
136 declareProperty ("EoPMinCut", m_EoPMinCut);
137 declareProperty ("minAngShEnergyCut", m_minAngShEnergyCut);
138 declareProperty ("minAngCut", m_minAngCut);
139 declareProperty ("acolliCut", m_acolliCut);
140 declareProperty ("eNormCut", m_eNormCut);
141 declareProperty ("pNormCut", m_pNormCut);
142 declareProperty ("oneProngMomentumCut", m_oneProngMomentumCut);
143
144
145
146 declareProperty("digiRangeCut", m_digiRangeCut);
147
148 declareProperty("ShEneThreshCut", m_ShEneThreshCut);
149 declareProperty("ShEneLeptonCut", m_ShEneLeptonCut);
150
151 declareProperty("minNrXtalsShowerCut", m_minNrXtalsShowerCut);
152 declareProperty("maxNrXtalsShowerCut", m_maxNrXtalsShowerCut);
153 declareProperty("phiDiffMinCut", m_phiDiffMinCut);
154 declareProperty("phiDiffMaxCut", m_phiDiffMaxCut);
155 declareProperty("nrShThreshCut", m_nrShThreshCut);
156 declareProperty("thetaDiffCut", m_thetaDiffCut);
157 declareProperty("LATCut", m_LATCut);
158
159
160 declareProperty("writeMVToFile", m_writeMVToFile);
161 declareProperty("fileExt", m_fileExt);
162 declareProperty("fileDir", m_fileDir);
163 declareProperty("inputFileDir", m_inputFileDir);
164 declareProperty("selMethod",m_selMethod);
165 declareProperty("sigmaCut", m_sigmaCut);
166 declareProperty("ReadBeamEFromDB", m_ReadBeamEFromDB = false );
167
168 declareProperty("beamEnergy", m_beamEnergy);
169 declareProperty("elecSaturation", m_elecSaturation = false );
170
171 declareProperty("MsgFlag", m_MsgFlag);
172
173
174 int j = 0;
175 m_index = new int*[56];
176 for (j=0;j<56;j++ ) {
177 m_index[j] = new int[120];
178 for ( int k=0; k<120; k++) {
179 m_index[j][k]=-1;
180 }
181 }
182
183 m_iGeoSvc=0;
184
185 for (int i=0; i<6240;i++)
186 {
187 m_inputConst[i] = 1.0;
188 }
189
190 m_irun=0;
191}