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

Diff of /DarthVader/NDLevel2/src/NDLevel2.cpp

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

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

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

  ViewVC Help
Powered by ViewVC 1.1.23