Possibility to not write syswatch info to file (default)
[u/mrichter/AliRoot.git] / STEER / ESD / AliESDAD.cxx
... / ...
CommitLineData
1
2
3// Last update: Nov. 5th 2013
4
5#include "AliESDAD.h"
6
7ClassImp(AliESDAD)
8
9AliESDAD::AliESDAD():TObject()
10{
11 //Default constructor
12 for(Int_t i=0;i<16;i++)
13 {
14 fADCellID[i] = 0;
15 }
16}
17
18
19AliESDAD::AliESDAD(const AliESDAD &o)
20 :TObject(o)
21
22{
23 //Default constructor
24 for(Int_t i=0;i<16;i++)
25 {
26 fADCellID[i] = o.fADCellID[i];
27 }
28}
29
30
31AliESDAD::AliESDAD(Bool_t* MADBitCell):TObject()
32{
33
34 //Constructor
35
36 for(Int_t i=0;i<16;i++)
37 {
38 fADCellID[i] = MADBitCell[i];
39 }
40}
41
42AliESDAD& AliESDAD::operator=(const AliESDAD& o)
43{
44// Copy Constructor
45 if(this==&o)return *this;
46 TObject::operator=(o);
47
48 // Assignment operator
49 for(Int_t i=0; i<16; i++)
50 {
51 fADCellID[i] = o.fADCellID[i];
52 }
53
54 return *this;
55}
56
57
58Bool_t AliESDAD::GetADCell(Int_t i) const
59{
60 return fADCellID[i];
61}
62
63void AliESDAD::Copy(TObject &obj) const {
64
65 // this overwrites the virtual TOBject::Copy()
66 // to allow run time copying without casting
67 // in AliESDEvent
68
69 if(this==&obj)return;
70 AliESDAD *robj = dynamic_cast<AliESDAD*>(&obj);
71 if(!robj)return; // not an AliESDAD
72 *robj = *this;
73
74}
75
76