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

Annotation of /DarthVader/NDLevel2/src/NDLevel2.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Tue Mar 6 16:22:01 2007 UTC (17 years, 8 months ago) by pam-rm2
Branch: MAIN
CVS Tags: v4r00, v3r04, v3r05, v3r06, v3r01, v3r03
Changes since 1.4: +13 -2 lines
add comments to ND level2 class

1 pam-rm2 1.5 /**
2     * \file src/NDLevel2.cpp
3     *
4     **/
5 mocchiut 1.1 #include <NDLevel2.h>
6    
7 pam-rm2 1.5 /**
8     * NDLevel2 constructor
9     **/
10 mocchiut 1.4 NDLevel2::NDLevel2(){
11     this->Clear();
12     }
13 pam-rm2 1.5 /**
14     * Clear variables
15     **/
16 mocchiut 1.2 void NDLevel2::Clear(){
17     upperBack = 0.;
18     bottomBack = 0.;
19     trigPhysics = 0.;
20 mocchiut 1.4 unpackError = 0;
21 mocchiut 1.2 }
22 pam-fi 1.3 /**
23     * Fills a struct cNDLevel2 with values from a NDLevel2 object (to put data into a F77 common).
24     */
25     void NDLevel2::GetLevel2Struct(cNDLevel2 *l2) const{
26     l2->upperback = upperBack;
27     l2->bottomback = bottomBack;
28     l2->trigphysics = trigPhysics;
29     }
30    
31 pam-rm2 1.5 /**
32     * Fills a NDLevel2 object with values from a struct cNDLevel2.
33     */
34 pam-fi 1.3 void NDLevel2::SetFromLevel2Struct(cNDLevel2 *l2){
35     upperBack = l2->upperback;
36     bottomBack = l2->bottomback;
37     trigPhysics = l2->trigphysics;
38     }
39 mocchiut 1.2
40 mocchiut 1.1 ClassImp(NDLevel2)

  ViewVC Help
Powered by ViewVC 1.1.23