/[PAMELA software]/quicklook/tracker/flight/macros/FTrkQLook_EXPERT.cxx
ViewVC logotype

Diff of /quicklook/tracker/flight/macros/FTrkQLook_EXPERT.cxx

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

revision 1.8 by pam-fi, Thu Jun 29 11:11:59 2006 UTC revision 1.9 by pam-fi, Sun Jul 2 17:41:15 2006 UTC
# Line 2  Line 2 
2   * FTrkQLook_EXPERT.cxx   * FTrkQLook_EXPERT.cxx
3   *   *
4   * autor: D.Fedele   * autor: D.Fedele
5   * version v1r04   * version v1r05
6   * Parameters:   * Parameters:
7   *      file - the data file to analyze   *      file - the data file to analyze
8   *      fromevent - first event to analyze   *      fromevent - first event to analyze
# Line 39  void FTrkQLook_EXPERT(TString file,Int_t Line 39  void FTrkQLook_EXPERT(TString file,Int_t
39  {  {
40    //    //
41    //   obtain information about the data file and select the output dir    //   obtain information about the data file and select the output dir
   const string filepath=file.Data();  
42    Int_t dwpos = file.Last('/');    Int_t dwpos = file.Last('/');
43    Int_t dwpos1 = file.Last('.');    Int_t dwpos1 = file.Last('.');
44    TString base,ffile ;    TString base,ffile ;
# Line 508  void FTrkQLook_EXPERT(TString file,Int_t Line 507  void FTrkQLook_EXPERT(TString file,Int_t
507        tr->GetEntry(ev);        tr->GetEntry(ev);
508        ph = eh->GetPscuHeader();        ph = eh->GetPscuHeader();
509        cod = eh->GetCounter();        cod = eh->GetCounter();
510        
511    
512        if(ev==maxevent-1) maxev=maxevent-1;        if(ev==maxevent-1) maxev=maxevent-1;
513    
514        if((ph->GetOrbitalTime()<x[ev-minev-1] && ev-minev!=0) || ev-minev==MAXSTORAGE){        if((ph->GetOrbitalTime()<x[ev-minev-1] && ev-minev!=0) || ev-minev==MAXSTORAGE){
# Line 521  void FTrkQLook_EXPERT(TString file,Int_t Line 521  void FTrkQLook_EXPERT(TString file,Int_t
521                    
522          Int_t dsp=0;          Int_t dsp=0;
523          for(Int_t i=0; i<12; i++){          for(Int_t i=0; i<12; i++){
524              if(te->DSPnumber[i]<1 || te->DSPnumber[i]>12) {
525                ALARM=1;
526                break;
527              }
528    
529            dsp=te->DSPnumber[i]-1;            dsp=te->DSPnumber[i]-1;
530            yc[(ev-minev)][dsp]= 0.051*te->compressiontime[i];            yc[(ev-minev)][dsp]= 0.051*te->compressiontime[i];
531              
532            //            //
533            // Fill Cluster Signal and Lighting of the view histos            // Fill Cluster Signal and Lighting of the view histos
534            for(Int_t j=0;j<3;j++){            for(Int_t j=0;j<3;j++){
# Line 566  void FTrkQLook_EXPERT(TString file,Int_t Line 571  void FTrkQLook_EXPERT(TString file,Int_t
571          eventint[(ev-minev)]=te->eventn[0];          eventint[(ev-minev)]=te->eventn[0];
572          if((ev-minev)>=1 && eventint[(ev-minev)]!=eventint[(ev-minev)-1]+1 && eventint[(ev-minev)]!=1)          if((ev-minev)>=1 && eventint[(ev-minev)]!=eventint[(ev-minev)-1]+1 && eventint[(ev-minev)]!=1)
573             ALARM=1;             ALARM=1;
574            
575          //********************************************************************************************          //********************************************************************************************
576          // file DSP warning          // file DSP warning
577          //********************************************************************************************          //********************************************************************************************
# Line 665  void FTrkQLook_EXPERT(TString file,Int_t Line 670  void FTrkQLook_EXPERT(TString file,Int_t
670      eventnumb[ii]->Draw("ap");      eventnumb[ii]->Draw("ap");
671      EventNumCanv[ii]->Update();      EventNumCanv[ii]->Update();
672            
   
673      minev=maxev;      minev=maxev;
674      if(maxev==maxevent-1) {      if(maxev==maxevent-1) {
675        cntpgdat=ii+1;        cntpgdat=ii+1;
676        break;        break;
677      }      }
678        
679    }    }
680    
681    
682    alarm.close();    alarm.close();
683    
684    //****************************************************************************************    //****************************************************************************************

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.23