/[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.2 by mocchiut, Fri Jun 30 09:21:50 2006 UTC revision 1.3 by pam-fi, Fri Jul 21 10:57:20 2006 UTC
# Line 26  void AcLevel2::Clear(){ Line 26  void AcLevel2::Clear(){
26    hitstatus[1]=0;    hitstatus[1]=0;
27    trigger[1]=0;    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.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23