]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSsegmentation.cxx
Added new method DisIntegrate(AliMUONHit&, TList& digits) to replace the one in
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentation.cxx
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
14 ClassImp(AliITSsegmentation)
15
16 //_____________________________________________________________
17 AliITSsegmentation::AliITSsegmentation(){
18   // Default constructor
19   SetDetSize(0.,0.,0.);
20   fGeom = 0;
21   fCorr = 0;
22 }
23
24 //_____________________________________________________________
25 AliITSsegmentation::~AliITSsegmentation(){
26   // destructor
27   if(fCorr)delete fCorr;
28 }
29
30 //_____________________________________________________________
31 void AliITSsegmentation::Copy(TObject &obj) const {
32   // copy this to obj
33   ((AliITSsegmentation& ) obj).fDz      = fDz;
34   ((AliITSsegmentation& ) obj).fDx      = fDx;
35   ((AliITSsegmentation& ) obj).fDy      = fDy;
36   ((AliITSsegmentation& ) obj).fGeom    = fGeom; // copy only the pointer
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):
55     TObject(source){
56     // copy constructor
57   source.Copy(*this);
58 }