]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - ITS/AliITSsegmentation.cxx
add getter to cut on n cells
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentation.cxx
... / ...
CommitLineData
1////////////////////////////////////////////////
2// Segmentation class for set:ITS //
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 //
9////////////////////////////////////////////////
10
11#include <TF1.h>
12#include "AliITSsegmentation.h"
13
14ClassImp(AliITSsegmentation)
15
16//_____________________________________________________________
17AliITSsegmentation::AliITSsegmentation():
18fDx(0),
19fDz(0),
20fDy(0),
21fCorr(0){
22 // Default constructor
23
24}
25//_____________________________________________________________
26AliITSsegmentation::~AliITSsegmentation(){
27 // destructor
28 if(fCorr)delete fCorr;
29}
30
31//_____________________________________________________________
32void 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;
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//______________________________________________________________________
45AliITSsegmentation& AliITSsegmentation::operator=(
46 const AliITSsegmentation &source){
47// Operator =
48 if(this != &source){
49 source.Copy(*this);
50 }
51 return *this;
52}
53//______________________________________________________________________
54AliITSsegmentation::AliITSsegmentation(const AliITSsegmentation &source):
55 TObject(source),
56fDx(0),
57fDz(0),
58fDy(0),
59fCorr(0){
60 // copy constructor
61 source.Copy(*this);
62}