e8189707 |
1 | //////////////////////////////////////////////// |
2 | // Segmentation class for set:ITS // |
55d2c544 |
3 | // All methods implemented in the derived // |
4 | // classes are set = 0 in the header file // |
5 | // so this class cannot be instantiated // |
6 | // methods implemented in a part of the // |
7 | // derived classes are implemented here as // |
8 | // TObject::MayNotUse // |
e8189707 |
9 | //////////////////////////////////////////////// |
10 | |
1ca7869b |
11 | #include <TF1.h> |
e8189707 |
12 | #include "AliITSsegmentation.h" |
13 | |
14 | ClassImp(AliITSsegmentation) |
55d2c544 |
15 | |
16 | //_____________________________________________________________ |
e56160b8 |
17 | AliITSsegmentation::AliITSsegmentation(): |
18 | fDx(0), |
19 | fDz(0), |
20 | fDy(0), |
e56160b8 |
21 | fCorr(0){ |
55d2c544 |
22 | // Default constructor |
e56160b8 |
23 | |
55d2c544 |
24 | } |
f6b6d58e |
25 | //_____________________________________________________________ |
55d2c544 |
26 | AliITSsegmentation::~AliITSsegmentation(){ |
27 | // destructor |
28 | if(fCorr)delete fCorr; |
29 | } |
30 | |
31 | //_____________________________________________________________ |
32 | void AliITSsegmentation::Copy(TObject &obj) const { |
33 | // copy this to obj |
34 | ((AliITSsegmentation& ) obj).fDz = fDz; |
35 | ((AliITSsegmentation& ) obj).fDx = fDx; |
36 | ((AliITSsegmentation& ) obj).fDy = fDy; |
55d2c544 |
37 | if(fCorr){ |
38 | ((AliITSsegmentation& ) obj).fCorr = new TF1(*fCorr); // make a proper copy |
39 | } |
40 | else { |
41 | ((AliITSsegmentation& ) obj).fCorr = 0; |
42 | } |
43 | } |
44 | //______________________________________________________________________ |
45 | AliITSsegmentation& AliITSsegmentation::operator=( |
46 | const AliITSsegmentation &source){ |
47 | // Operator = |
48 | if(this != &source){ |
49 | source.Copy(*this); |
50 | } |
51 | return *this; |
52 | } |
53 | //______________________________________________________________________ |
54 | AliITSsegmentation::AliITSsegmentation(const AliITSsegmentation &source): |
e56160b8 |
55 | TObject(source), |
56 | fDx(0), |
57 | fDz(0), |
58 | fDy(0), |
e56160b8 |
59 | fCorr(0){ |
55d2c544 |
60 | // copy constructor |
61 | source.Copy(*this); |
62 | } |