/[PAMELA software]/DarthVader/TrackerLevel2/src/TrkLevel0.cpp
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/src/TrkLevel0.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by pam-fi, Tue Nov 25 14:41:36 2008 UTC revision 1.7 by pam-fi, Fri Dec 5 08:30:37 2008 UTC
# Line 211  bool TrkLevel0::FillADC(){ Line 211  bool TrkLevel0::FillADC(){
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    
# Line 385  bool TrkLevel0::GetUnCompressedEvent(int Line 381  bool TrkLevel0::GetUnCompressedEvent(int
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.);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.23