/[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.3 by pam-fi, Fri Jul 21 11:01:40 2006 UTC revision 1.5 by pam-rm2, Tue Mar 6 16:25:38 2007 UTC
# Line 1  Line 1 
1    /**
2     * \file src/S4Level2.cpp
3     *
4    **/
5  #include <S4Level2.h>  #include <S4Level2.h>
6    
7  S4Level2::S4Level2() :      /**
8    S4calibrated(0),   * S4Level2 constructor
9    S4adc(0) {}  **/
10    S4Level2::S4Level2(){
11      this->Clear();
12    }
13    /**
14     * Clear variables
15    **/
16  void S4Level2::Clear(){  void S4Level2::Clear(){
17    S4calibrated = 0.;    S4calibrated = 0.;
18    S4adc = 0.;    S4adc = 0.;
19      unpackError = 0;
20  }  }
21  /**  /**
22   * Fills a struct cS4Level2 with values from a S4Level2 object (to put data into a F77 common).   * Fills a struct cS4Level2 with values from a S4Level2 object (to put data into a F77 common).
23   */   * */
24  void S4Level2::GetLevel2Struct(cS4Level2 *l2) const{  void S4Level2::GetLevel2Struct(cS4Level2 *l2) const{
25    l2->S4calibrated = S4calibrated;    l2->S4calibrated = S4calibrated;
26    l2->S4adc        = S4adc;    l2->S4adc        = S4adc;
27    
28  }  }
29    
30    /**
31     * Fills a S4Level2 object with values from a struct cS4Level2.
32     */
33  void S4Level2::SetFromLevel2Struct(cS4Level2 *l2){  void S4Level2::SetFromLevel2Struct(cS4Level2 *l2){
34    S4calibrated = l2->S4calibrated;    S4calibrated = l2->S4calibrated;
35    S4adc        = l2->S4adc;    S4adc        = l2->S4adc;

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

  ViewVC Help
Powered by ViewVC 1.1.23