/[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.9 by pam-fi, Sun Jul 2 17:41:15 2006 UTC revision 1.10 by pam-fi, Thu Jul 13 10:13:37 2006 UTC
# Line 2  Line 2 
2   * FTrkQLook_EXPERT.cxx   * FTrkQLook_EXPERT.cxx
3   *   *
4   * autor: D.Fedele   * autor: D.Fedele
5   * version v1r05   * version v1r06
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 502  void FTrkQLook_EXPERT(TString file,Int_t Line 502  void FTrkQLook_EXPERT(TString file,Int_t
502      Float_t x[MAXSTORAGE];      Float_t x[MAXSTORAGE];
503      Float_t yc[MAXSTORAGE][12];      Float_t yc[MAXSTORAGE][12];
504      Float_t eventint[MAXSTORAGE];      Float_t eventint[MAXSTORAGE];
505        Int_t eventn[12];
506        
507      for (Int_t ev=minev; ev<maxevent; ev++){      for (Int_t ev=minev; ev<maxevent; ev++){
508        tr->GetEntry(ev);        tr->GetEntry(ev);
# Line 554  void FTrkQLook_EXPERT(TString file,Int_t Line 555  void FTrkQLook_EXPERT(TString file,Int_t
555            WARNING[i]=0;            WARNING[i]=0;
556            if(te->fc[i]!=0 || te->fl1[i]!=0 || te->fl2[i]!=0 || te->fl3[i]!=0 || te->fl4[i]!=0 || te->fl5[i]!=0 || te->fl6[i]!=0){            if(te->fc[i]!=0 || te->fl1[i]!=0 || te->fl2[i]!=0 || te->fl3[i]!=0 || te->fl4[i]!=0 || te->fl5[i]!=0 || te->fl6[i]!=0){
557              ALARM = 1;      //general alarm              ALARM = 1;      //general alarm
             al=1;  
558              WARNING[i] = 1; // DSP warning              WARNING[i] = 1; // DSP warning
559            };            };
560    
561            if(te->alarm[i]!=0){ // hardware alarm            if(te->alarm[i]!=0){ // hardware alarm
562              ALARM = 1;              ALARM = 1;
             al=1;  
563            };            };
564                
565            //**************************************************************************************            //**************************************************************************************
566            // warning for internal number            // warning for internal number
567            //**************************************************************************************            //**************************************************************************************
568            if(i<=10 && te->eventn[i]!=te->eventn[i+1]) ALARM=1;            if(i<=10 && te->eventn[i]!=te->eventn[i+1]) ALARM=1;
569              if((ev-minev)>=1 && eventn[i]+1!=te->eventn[i] && te->eventn[i]!=1) ALARM=1;
570          }          }
571          eventint[(ev-minev)]=te->eventn[0];          eventint[(ev-minev)]=te->eventn[0];
         if((ev-minev)>=1 && eventint[(ev-minev)]!=eventint[(ev-minev)-1]+1 && eventint[(ev-minev)]!=1)  
            ALARM=1;  
572    
573          //********************************************************************************************          //********************************************************************************************
574          // file DSP warning          // file DSP warning
575          //********************************************************************************************          //********************************************************************************************
576    
577          if(ALARM==1) {            if(ALARM==1) {  
578              al=1;
579            alarm <<endl<< "================================================="<< endl;            alarm <<endl<< "================================================="<< endl;
580            alarm << "PSCU-Pkt N. "<< ph->GetCounter() ;            alarm << "PSCU-Pkt N. "<< ph->GetCounter() ;
581            alarm << " - OBT "<< ph->GetOrbitalTime() << " ms"<<endl;            alarm << " - OBT "<< ph->GetOrbitalTime() << " ms"<<endl;
# Line 600  void FTrkQLook_EXPERT(TString file,Int_t Line 599  void FTrkQLook_EXPERT(TString file,Int_t
599            for(Int_t i=0; i<12 ; i++){            for(Int_t i=0; i<12 ; i++){
600              alarm.width(5); alarm << te->DSPnumber[i];              alarm.width(5); alarm << te->DSPnumber[i];
601              alarm.width(8); alarm << te->eventn[i];              alarm.width(8); alarm << te->eventn[i];
602              alarm.width(8); alarm << eventint[(ev-minev)-1];              alarm.width(8); alarm << eventn[i];
603              alarm.width(6); alarm << te->DATAlength[i];              alarm.width(6); alarm << te->DATAlength[i];
604              alarm.width(4); alarm << te->crc[i];              alarm.width(4); alarm << te->crc[i];
605              alarm.width(4); alarm << te->fc[i];              alarm.width(4); alarm << te->fc[i];
# Line 615  void FTrkQLook_EXPERT(TString file,Int_t Line 614  void FTrkQLook_EXPERT(TString file,Int_t
614              alarm    << endl;              alarm    << endl;
615            }            }
616          }          }
617            for(Int_t i=0; i<12 ; i++)
618              eventn[i]=te->eventn[i];
619        }        }
620      }      }
621      if(al==0) alarm << endl<< "Page "<<ii+1<< ": ------>  NO ALARM!!! <-------"<<endl;      if(al==0) alarm << endl<< "Page "<<ii+1<< ": ------>  NO ALARM!!! <-------"<<endl;

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

  ViewVC Help
Powered by ViewVC 1.1.23