/[PAMELA software]/DarthVader/AnticounterLevel2/src/AcLevel2.cpp
ViewVC logotype

Contents of /DarthVader/AnticounterLevel2/src/AcLevel2.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Nov 9 17:05:43 2006 UTC (18 years, 1 month ago) by mocchiut
Branch: MAIN
CVS Tags: v2r01, v3r00
Changes since 1.4: +2 -8 lines
Added unpackError in all classes, ToF .rz bug fixed, install_GL_PARAM time screw bug fixed

1 #include <TObject.h>
2 #include <AcLevel2.h>
3 ClassImp(AcLevel2);
4
5 AcLevel2::AcLevel2() {
6 this->Clear();
7 }
8
9 void AcLevel2::Clear(){
10 status[0]=0;
11 hitmap[0]=0;
12 hitstatus[0]=0;
13 trigger[0]=0;
14 status[1]=0;
15 hitmap[1]=0;
16 hitstatus[1]=0;
17 trigger[1]=0;
18 unpackError=0;
19 }
20
21 /**
22 * Fills a struct cAcLevel2 with values from a AcLevel2 object (to put data into a F77 common).
23 */
24 void AcLevel2::GetLevel2Struct(cAcLevel2 *l2) const{
25 for(int i=0;i<2;i++){
26 l2->status[i] = status[i];
27 l2->hitmap[i] = hitmap[i];
28 l2->hitstatus[i] = hitstatus[i];
29 l2->trigger[i] = trigger[i];
30 }
31 }
32
33 void AcLevel2::SetFromLevel2Struct(cAcLevel2 *l2){
34 for(int i=0;i<2;i++){
35 status[i] = l2->status[i];
36 hitmap[i] = l2->hitmap[i];
37 hitstatus[i] = l2->hitstatus[i];
38 trigger[i] = l2->trigger[i];
39 }
40 }

  ViewVC Help
Powered by ViewVC 1.1.23