]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSsegmentation.cxx
Measured field map as objects of type AliMagFCheb (R. Shahoyan)
[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}
26
27//_____________________________________________________________
28AliITSsegmentation::~AliITSsegmentation(){
29 // destructor
30 if(fCorr)delete fCorr;
31}
32
33//_____________________________________________________________
34void AliITSsegmentation::Copy(TObject &obj) const {
35 // copy this to obj
36 ((AliITSsegmentation& ) obj).fDz = fDz;
37 ((AliITSsegmentation& ) obj).fDx = fDx;
38 ((AliITSsegmentation& ) obj).fDy = fDy;
39 ((AliITSsegmentation& ) obj).fGeom = fGeom; // copy only the pointer
40 if(fCorr){
41 ((AliITSsegmentation& ) obj).fCorr = new TF1(*fCorr); // make a proper copy
42 }
43 else {
44 ((AliITSsegmentation& ) obj).fCorr = 0;
45 }
46}
47//______________________________________________________________________
48AliITSsegmentation& AliITSsegmentation::operator=(
49 const AliITSsegmentation &source){
50// Operator =
51 if(this != &source){
52 source.Copy(*this);
53 }
54 return *this;
55}
56//______________________________________________________________________
57AliITSsegmentation::AliITSsegmentation(const AliITSsegmentation &source):
e56160b8 58 TObject(source),
59fDx(0),
60fDz(0),
61fDy(0),
62fGeom(0),
63fCorr(0){
55d2c544 64 // copy constructor
65 source.Copy(*this);
66}