]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSsegmentation.cxx
Eff C++ warning removal (Marian)
[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),
e56160b8 21fCorr(0){
55d2c544 22 // Default constructor
e56160b8 23
55d2c544 24}
f6b6d58e 25//_____________________________________________________________
26AliITSsegmentation::AliITSsegmentation(AliITSgeom* geom):
27fDx(0),
28fDz(0),
29fDy(0),
f6b6d58e 30fCorr(0){
31 // Default constructor
d24bc9d6 32 AliWarning(Form("AliITSgeom (%X) no longer needed in ITS segmentation. Use default constructor\n",geom))
f6b6d58e 33}
34
55d2c544 35
36//_____________________________________________________________
37AliITSsegmentation::~AliITSsegmentation(){
38 // destructor
39 if(fCorr)delete fCorr;
40}
41
42//_____________________________________________________________
43void AliITSsegmentation::Copy(TObject &obj) const {
44 // copy this to obj
45 ((AliITSsegmentation& ) obj).fDz = fDz;
46 ((AliITSsegmentation& ) obj).fDx = fDx;
47 ((AliITSsegmentation& ) obj).fDy = fDy;
55d2c544 48 if(fCorr){
49 ((AliITSsegmentation& ) obj).fCorr = new TF1(*fCorr); // make a proper copy
50 }
51 else {
52 ((AliITSsegmentation& ) obj).fCorr = 0;
53 }
54}
55//______________________________________________________________________
56AliITSsegmentation& AliITSsegmentation::operator=(
57 const AliITSsegmentation &source){
58// Operator =
59 if(this != &source){
60 source.Copy(*this);
61 }
62 return *this;
63}
64//______________________________________________________________________
65AliITSsegmentation::AliITSsegmentation(const AliITSsegmentation &source):
e56160b8 66 TObject(source),
67fDx(0),
68fDz(0),
69fDy(0),
e56160b8 70fCorr(0){
55d2c544 71 // copy constructor
72 source.Copy(*this);
73}