@@ -140,6 +140,8 @@ int main(int argc, char **argv){
140140 tpolHit_t tpolHit;
141141 tpolHit.eDep = 0 ;
142142 tpolHit.time = 0 ;
143+ tpolHit.eDepTest = 0 ;
144+ tpolHit.timeTest = 0 ;
143145 tpolHit.sector = 0 ;
144146 tpolHit.phi = 0 ;
145147 tpolHit.E_lhit = 0 ;
@@ -150,7 +152,7 @@ int main(int argc, char **argv){
150152 tpolHit.w_integral = 0 ;
151153 tpolHit.w_min = 0 ;
152154 tpolHit.w_max = 0 ;
153-
155+
154156 int count100 = 0 ;
155157 int tmpCount = 0 ;
156158 if (nToGo <= 0 ) nToGo = inTree->GetEntries ();
@@ -309,6 +311,8 @@ int main(int argc, char **argv){
309311 fitHigh = 600.0 ;
310312 }
311313
314+ double tValSignalTest = tValSignal + tCorrect (sector);
315+
312316 // FIT THE SIGNAL
313317 hADC[count100]->Fit (" spiceFun2" ," BRQ" ," " ,fitLow,fitHigh);
314318 double tSigTest = tValSpice - spiceFun2->GetParameter (1 )*100 ;
@@ -324,6 +328,8 @@ int main(int argc, char **argv){
324328 // eDepFit = (1/2.0)*1125*(spiceFun2->GetParameter(0))*(2000.0/4096)*eCorrect(sector);
325329 // }
326330 // }
331+ double eDepTest = 1125 *(fVal )*(2000.0 /4096 )*eCorrect (sector);
332+
327333
328334 // **********************************************
329335
@@ -332,6 +338,8 @@ int main(int argc, char **argv){
332338 // FILL THE tpolHit STRUCTURE
333339 tpolHit.eDep = eDepFit;
334340 tpolHit.time = tValFit;
341+ tpolHit.eDepTest = eDepTest;
342+ tpolHit.timeTest = tValSignalTest;
335343 tpolHit.sector = sector;
336344 tpolHit.phi = phiVal;
337345 tpolHit.ePair = ePair;
@@ -358,6 +366,8 @@ int main(int argc, char **argv){
358366 for (int j=0 ; j<nTotAll; j++) {
359367 tpolHitToGo.eDep [togoIndex] = tpolHitAll[j].eDep ;
360368 tpolHitToGo.time [togoIndex] = tpolHitAll[j].time ;
369+ tpolHitToGo.eDepTest [togoIndex] = tpolHitAll[j].eDepTest ;
370+ tpolHitToGo.timeTest [togoIndex] = tpolHitAll[j].timeTest ;
361371 tpolHitToGo.sector [togoIndex] = tpolHitAll[j].sector ;
362372 tpolHitToGo.w_samp1 [togoIndex] = wSamp1;
363373 tpolHitToGo.w_integral [togoIndex] = tpolHitAll[j].w_integral ;
0 commit comments