/[PAMELA software]/DarthVader/S4Level2/src/S4Level2.cpp
ViewVC logotype

Diff of /DarthVader/S4Level2/src/S4Level2.cpp

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

revision 1.2 by mocchiut, Fri Jun 30 09:22:01 2006 UTC revision 1.4 by mocchiut, Thu Nov 9 17:05:47 2006 UTC
# Line 1  Line 1 
1  #include <S4Level2.h>  #include <S4Level2.h>
2    
3  S4Level2::S4Level2() :      S4Level2::S4Level2(){
4    S4calibrated(0),    this->Clear();
5    S4adc(0) {}  }
   
6    
7  void S4Level2::Clear(){  void S4Level2::Clear(){
8    S4calibrated = 0.;    S4calibrated = 0.;
9    S4adc = 0.;    S4adc = 0.;
10      unpackError = 0;
11    }
12    /**
13     * Fills a struct cS4Level2 with values from a S4Level2 object (to put data into a F77 common).
14     */
15    void S4Level2::GetLevel2Struct(cS4Level2 *l2) const{
16      l2->S4calibrated = S4calibrated;
17      l2->S4adc        = S4adc;
18    
19  }  }
20    
21    void S4Level2::SetFromLevel2Struct(cS4Level2 *l2){
22      S4calibrated = l2->S4calibrated;
23      S4adc        = l2->S4adc;
24    }
25    
26    
27  ClassImp(S4Level2)  ClassImp(S4Level2)
28        

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

  ViewVC Help
Powered by ViewVC 1.1.23