/[PAMELA software]/DarthVader/AnticounterLevel2/src/AcLevel2.cpp
ViewVC logotype

Diff of /DarthVader/AnticounterLevel2/src/AcLevel2.cpp

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

revision 1.1 by mocchiut, Fri May 19 13:16:00 2006 UTC revision 1.4 by mocchiut, Fri Aug 4 10:31:24 2006 UTC
# Line 7  AcLevel2::AcLevel2() { Line 7  AcLevel2::AcLevel2() {
7    hitmap[0]=0;    hitmap[0]=0;
8    hitstatus[0]=0;    hitstatus[0]=0;
9    trigger[0]=0;    trigger[0]=0;
   //OBT=0ULL;  
   //pro_num=0;  
   //pkt_num=0ULL;  
10    status[1]=0;    status[1]=0;
11    hitmap[1]=0;    hitmap[1]=0;
12    hitstatus[1]=0;    hitstatus[1]=0;
13    trigger[1]=0;    trigger[1]=0;
14  }  }
15    
16    void AcLevel2::Clear(){
17      status[0]=0;
18      hitmap[0]=0;
19      hitstatus[0]=0;
20      trigger[0]=0;
21      status[1]=0;
22      hitmap[1]=0;
23      hitstatus[1]=0;
24      trigger[1]=0;
25    }
26    
27    /**
28     * Fills a struct cAcLevel2 with values from a AcLevel2 object (to put data into a F77 common).
29     */
30    void AcLevel2::GetLevel2Struct(cAcLevel2 *l2) const{
31      for(int i=0;i<2;i++){
32        l2->status[i]    = status[i];
33        l2->hitmap[i]    = hitmap[i];
34        l2->hitstatus[i] = hitstatus[i];
35        l2->trigger[i]   = trigger[i];
36      }
37    }
38    
39    void AcLevel2::SetFromLevel2Struct(cAcLevel2 *l2){
40      for(int i=0;i<2;i++){
41        status[i]    = l2->status[i];
42        hitmap[i]    = l2->hitmap[i];
43        hitstatus[i] = l2->hitstatus[i];
44        trigger[i]   = l2->trigger[i];
45      }
46    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23