/[PAMELA software]/DarthVader/TriggerLevel2/src/TrigLevel2.cpp
ViewVC logotype

Diff of /DarthVader/TriggerLevel2/src/TrigLevel2.cpp

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

revision 1.3 by pam-fi, Fri Jul 21 11:05:01 2006 UTC revision 1.5 by mocchiut, Thu Nov 9 17:05:50 2006 UTC
# Line 3  Line 3 
3  ClassImp(TrigLevel2);  ClassImp(TrigLevel2);
4    
5  TrigLevel2::TrigLevel2() {      TrigLevel2::TrigLevel2() {    
6      this->Clear();
   evcount = 0;  
   for (Int_t kk=0; kk<3;kk++){  
     pmtpl[kk] = 0;  
     patternbusy[kk] = 0;  
   }  
     
   for (Int_t kk=0; kk<6;kk++){  
     trigrate[kk] = 0;  
     patterntrig[kk] = 0;  
   }  
     
   for (Int_t kk=0; kk<2;kk++){  
     dltime[kk] = 0;  
     s4calcount[kk] = 0;  
   }  
   
   for (Int_t kk=0; kk<24;kk++){  
     pmtcount1[kk] = 0;  
     pmtcount2[kk] = 0;  
   }  
     
   trigconf = 0;  
7  }  }
8    
9  void TrigLevel2::Clear(){  void TrigLevel2::Clear(){
   
10    evcount = 0;    evcount = 0;
11    for (Int_t kk=0; kk<3;kk++){    memset(pmtpl, 0, 3*sizeof(Int_t));
12      pmtpl[kk] = 0;    memset(patternbusy, 0, 3*sizeof(Int_t));
13      patternbusy[kk] = 0;    memset(trigrate, 0, 6*sizeof(Int_t));
14    }    memset(patterntrig, 0, 6*sizeof(Int_t));
15        memset(dltime, 0, 2*sizeof(Int_t));
16    for (Int_t kk=0; kk<6;kk++){    memset(s4calcount, 0, 2*sizeof(Int_t));
17      trigrate[kk] = 0;    memset(pmtcount1, 0, 24*sizeof(Int_t));
18      patterntrig[kk] = 0;    memset(pmtcount2, 0, 24*sizeof(Int_t));
   }  
     
   for (Int_t kk=0; kk<2;kk++){  
     dltime[kk] = 0;  
     s4calcount[kk] = 0;  
   }  
   
   for (Int_t kk=0; kk<24;kk++){  
     pmtcount1[kk] = 0;  
     pmtcount2[kk] = 0;  
   }  
     
19    trigconf = 0;    trigconf = 0;
20      unpackError = 0;
21  }  }
22    
23  /**  /**

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

  ViewVC Help
Powered by ViewVC 1.1.23