211 |
* Method to evaluate calibrated signal (ADC-CN-PED) of each view |
* Method to evaluate calibrated signal (ADC-CN-PED) of each view |
212 |
* (it calls F77 routines: filladc + evaluatecn + subtractped) |
* (it calls F77 routines: filladc + evaluatecn + subtractped) |
213 |
* @param iview view number (1-12) |
* @param iview view number (1-12) |
|
* @param graph pointer to a TGraph to retrieve the output |
|
|
* @param filladc if true calls F77 routine FillADC. otherwise must be called outside |
|
214 |
*/ |
*/ |
215 |
bool TrkLevel0::GetCalibratedEvent(int iview, TGraph* graph, bool filladc){ |
bool TrkLevel0::GetCalibratedEvent(int iview, TGraph* graph){ |
216 |
|
|
217 |
if ( iview<1 || iview>12 )return false; |
if ( iview<1 || iview>12 )return false; |
218 |
if( filladc ){ |
if ( !FillADC() ) return false; |
|
if ( !FillADC() ) return false; |
|
|
} |
|
219 |
evaluatecn_(&iview); |
evaluatecn_(&iview); |
220 |
subtractped_(&iview); |
subtractped_(&iview); |
221 |
|
|
381 |
if( !GetCompressedEvent(iview,graph) )return false; |
if( !GetCompressedEvent(iview,graph) )return false; |
382 |
// |
// |
383 |
double* adc; |
double* adc; |
384 |
double last; |
double last=0.; |
385 |
adc = graph->GetY(); |
adc = graph->GetY(); |
386 |
for(int i=0; i<3072; i++){ |
for(int i=0; i<3072; i++){ |
387 |
int ivk = (int)((float)i/128.); |
int ivk = (int)((float)i/128.); |