]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSsegmentation.cxx
ECS run type is PEDESTAL and not PEDESTAL_RUN
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentation.cxx
CommitLineData
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
14ClassImp(AliITSsegmentation)
55d2c544 15
16//_____________________________________________________________
e56160b8 17AliITSsegmentation::AliITSsegmentation():
18fDx(0),
19fDz(0),
20fDy(0),
21fGeom(0),
22fCorr(0){
55d2c544 23 // Default constructor
e56160b8 24
55d2c544 25}
f6b6d58e 26//_____________________________________________________________
27AliITSsegmentation::AliITSsegmentation(AliITSgeom* geom):
28fDx(0),
29fDz(0),
30fDy(0),
31fGeom(0),
32fCorr(0){
33 // Default constructor
34 fGeom=geom;
35}
36
55d2c544 37
38//_____________________________________________________________
39AliITSsegmentation::~AliITSsegmentation(){
40 // destructor
41 if(fCorr)delete fCorr;
42}
43
44//_____________________________________________________________
45void AliITSsegmentation::Copy(TObject &obj) const {
46 // copy this to obj
47 ((AliITSsegmentation& ) obj).fDz = fDz;
48 ((AliITSsegmentation& ) obj).fDx = fDx;
49 ((AliITSsegmentation& ) obj).fDy = fDy;
50 ((AliITSsegmentation& ) obj).fGeom = fGeom; // copy only the pointer
51 if(fCorr){
52 ((AliITSsegmentation& ) obj).fCorr = new TF1(*fCorr); // make a proper copy
53 }
54 else {
55 ((AliITSsegmentation& ) obj).fCorr = 0;
56 }
57}
58//______________________________________________________________________
59AliITSsegmentation& AliITSsegmentation::operator=(
60 const AliITSsegmentation &source){
61// Operator =
62 if(this != &source){
63 source.Copy(*this);
64 }
65 return *this;
66}
67//______________________________________________________________________
68AliITSsegmentation::AliITSsegmentation(const AliITSsegmentation &source):
e56160b8 69 TObject(source),
70fDx(0),
71fDz(0),
72fDy(0),
73fGeom(0),
74fCorr(0){
55d2c544 75 // copy constructor
76 source.Copy(*this);
77}