/[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.3 by pam-fi, Fri Jul 21 10:57:20 2006 UTC
# Line 15  AcLevel2::AcLevel2() { Line 15  AcLevel2::AcLevel2() {
15    hitstatus[1]=0;    hitstatus[1]=0;
16    trigger[1]=0;    trigger[1]=0;
17  }  }
18    
19    void AcLevel2::Clear(){
20      status[0]=0;
21      hitmap[0]=0;
22      hitstatus[0]=0;
23      trigger[0]=0;
24      status[1]=0;
25      hitmap[1]=0;
26      hitstatus[1]=0;
27      trigger[1]=0;
28    }
29    
30    /**
31     * Fills a struct cAcLevel2 with values from a AcLevel2 object (to put data into a F77 common).
32     */
33    void AcLevel2::GetLevel2Struct(cAcLevel2 *l2) const{
34      for(int i=0;i<2;i++){
35        l2->status[i]    = status[i];
36        l2->hitmap[i]    = hitmap[i];
37        l2->hitstatus[i] = hitstatus[i];
38        l2->trigger[i]   = trigger[i];
39      }
40    }
41    
42    void AcLevel2::SetFromLevel2Struct(cAcLevel2 *l2){
43      for(int i=0;i<2;i++){
44        status[i]    = l2->status[i];
45        hitmap[i]    = l2->hitmap[i];
46        hitstatus[i] = l2->hitstatus[i];
47        trigger[i]   = l2->trigger[i];
48      }
49    }

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

  ViewVC Help
Powered by ViewVC 1.1.23