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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Jun 30 09:22:06 2006 UTC (18 years, 5 months ago) by mocchiut
Branch: MAIN
CVS Tags: v1r01beta
Changes since 1.1: +26 -0 lines
Memory leak bug fixed

1 mocchiut 1.1 #include <TObject.h>
2     #include <TrigLevel2.h>
3     ClassImp(TrigLevel2);
4    
5     TrigLevel2::TrigLevel2() {
6    
7     evcount = 0;
8     for (Int_t kk=0; kk<3;kk++){
9     pmtpl[kk] = 0;
10     patternbusy[kk] = 0;
11     }
12    
13     for (Int_t kk=0; kk<6;kk++){
14     trigrate[kk] = 0;
15     patterntrig[kk] = 0;
16     }
17    
18     for (Int_t kk=0; kk<2;kk++){
19     dltime[kk] = 0;
20     s4calcount[kk] = 0;
21     }
22    
23     for (Int_t kk=0; kk<24;kk++){
24     pmtcount1[kk] = 0;
25     pmtcount2[kk] = 0;
26     }
27    
28     trigconf = 0;
29     }
30 mocchiut 1.2
31     void TrigLevel2::Clear(){
32    
33     evcount = 0;
34     for (Int_t kk=0; kk<3;kk++){
35     pmtpl[kk] = 0;
36     patternbusy[kk] = 0;
37     }
38    
39     for (Int_t kk=0; kk<6;kk++){
40     trigrate[kk] = 0;
41     patterntrig[kk] = 0;
42     }
43    
44     for (Int_t kk=0; kk<2;kk++){
45     dltime[kk] = 0;
46     s4calcount[kk] = 0;
47     }
48    
49     for (Int_t kk=0; kk<24;kk++){
50     pmtcount1[kk] = 0;
51     pmtcount2[kk] = 0;
52     }
53    
54     trigconf = 0;
55     }

  ViewVC Help
Powered by ViewVC 1.1.23