/[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.2 by mocchiut, Fri Jun 30 09:22:06 2006 UTC revision 1.3 by pam-fi, Fri Jul 21 11:05:01 2006 UTC
# Line 53  void TrigLevel2::Clear(){ Line 53  void TrigLevel2::Clear(){
53        
54    trigconf = 0;    trigconf = 0;
55  }  }
56    
57    /**
58     * Fills a struct cTrigLevel2 with values from a TrigLevel2 object (to put data into a F77 common).
59     */
60    void TrigLevel2::GetLevel2Struct(cTrigLevel2 *l2) const{
61    
62      l2->evcount  = evcount;
63      l2->trigconf = trigconf;
64      
65      for(int i=0;i<2;i++){
66        l2->s4calcount[i] = s4calcount[i];
67        l2->dltime[i]     = dltime[i];
68      }
69      
70      for(int i=0;i<3;i++){
71        l2->pmtpl[i]       = pmtpl[i];
72        l2->patternbusy[i] = patternbusy[i];
73      }
74      
75      for(int i=0;i<6;i++){
76        l2->trigrate[i]    = trigrate[i];
77        l2->patterntrig[i] = patterntrig[i];
78      }
79      
80      for(int i=0;i<24;i++){
81        l2->pmtcount1[i] = pmtcount1[i];
82        l2->pmtcount2[i] = pmtcount2[i];
83      }
84    }
85    
86    void TrigLevel2::SetFromLevel2Struct(cTrigLevel2 *l2){
87    
88      evcount  = l2->evcount;
89      trigconf = l2->trigconf;
90      
91      for(int i=0;i<2;i++){
92        s4calcount[i] = l2->s4calcount[i];
93        dltime[i]     = l2->dltime[i];
94      }
95      
96      for(int i=0;i<3;i++){
97        pmtpl[i]       = l2->pmtpl[i];
98        patternbusy[i] = l2->patternbusy[i];
99      }
100      
101      for(int i=0;i<6;i++){
102        trigrate[i]    = l2->trigrate[i];
103        patterntrig[i] = l2->patterntrig[i];
104      }
105      
106      for(int i=0;i<24;i++){
107        pmtcount1[i] = l2->pmtcount1[i];
108        pmtcount2[i] = l2->pmtcount2[i];
109      }
110    }

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

  ViewVC Help
Powered by ViewVC 1.1.23