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