]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/ESD/AliESDACORDE.cxx
Updates in event mixing code for low-pt code
[u/mrichter/AliRoot.git] / STEER / ESD / AliESDACORDE.cxx
CommitLineData
a65a7e70 1
2
3// Last update: October 2th 2009
4
5#include "AliESDACORDE.h"
6
7ClassImp(AliESDACORDE)
8
9AliESDACORDE::AliESDACORDE():TObject()
10{
11 //Default constructor
12 for(Int_t i=0;i<60;i++)
13 {
14 fACORDEBitPattern[i] = 0;
15 }
16}
17
18
19AliESDACORDE::AliESDACORDE(const AliESDACORDE &o)
20 :TObject(o)
21
22{
23 //Default constructor
24 for(Int_t i=0;i<60;i++)
25 {
26 fACORDEBitPattern[i] = o.fACORDEBitPattern[i];
27 }
28}
29
30
31AliESDACORDE::AliESDACORDE(Bool_t* MACORDEBitPattern):TObject()
32{
33
34 //Constructor
35
36 for(Int_t i=0;i<60;i++)
37 {
38 fACORDEBitPattern[i] = MACORDEBitPattern[i];
39 }
40}
41
42AliESDACORDE& AliESDACORDE::operator=(const AliESDACORDE& 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<60; i++)
50 {
51 fACORDEBitPattern[i] = o.fACORDEBitPattern[i];
52 }
53
54 return *this;
55}
56
57
58Bool_t AliESDACORDE::GetHitChannel(Int_t i) const
59{
60 return fACORDEBitPattern[i];
61}
62
63void AliESDACORDE::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 AliESDACORDE *robj = dynamic_cast<AliESDACORDE*>(&obj);
71 if(!robj)return; // not an AliESDACRDE
72 *robj = *this;
73
74}
75
76