AliRoot Core  3dc7879 (3dc7879)
AliESDACORDE.cxx
Go to the documentation of this file.
1 
2 
3 // Last update: October 2th 2009
4 
5 #include "AliESDACORDE.h"
6 
7 ClassImp(AliESDACORDE)
8 
10 {
11  //Default constructor
12  for(Int_t i=0;i<60;i++)
13  {
14  fACORDEBitPattern[i] = 0;
15  }
16 }
17 
18 
20  :TObject(o)
21 
22 {
23  //Default constructor
24  for(Int_t i=0;i<60;i++)
25  {
27  }
28 }
29 
30 
31 AliESDACORDE::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 
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  {
52  }
53 
54  return *this;
55 }
56 
57 
58 Bool_t AliESDACORDE::GetHitChannel(Int_t i) const
59 {
60  return fACORDEBitPattern[i];
61 }
62 
63 void 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 
AliESDACORDE & operator=(const AliESDACORDE &source)
Bool_t GetHitChannel(Int_t i) const
Bool_t fACORDEBitPattern[60]
Definition: AliESDACORDE.h:32
virtual void Copy(TObject &) const