ClassImp(AliITSsegmentation)
//_____________________________________________________________
-AliITSsegmentation::AliITSsegmentation(){
+AliITSsegmentation::AliITSsegmentation():
+fDx(0),
+fDz(0),
+fDy(0),
+fCorr(0){
// Default constructor
- SetDetSize(0.,0.,0.);
- fGeom = 0;
- fCorr = 0;
+
}
+//_____________________________________________________________
+AliITSsegmentation::AliITSsegmentation(AliITSgeom* geom):
+fDx(0),
+fDz(0),
+fDy(0),
+fCorr(0){
+ // Default constructor
+ AliWarning(Form("AliITSgeom (%X) no longer needed in ITS segmentation. Use default constructor\n",geom))
+}
+
//_____________________________________________________________
AliITSsegmentation::~AliITSsegmentation(){
((AliITSsegmentation& ) obj).fDz = fDz;
((AliITSsegmentation& ) obj).fDx = fDx;
((AliITSsegmentation& ) obj).fDy = fDy;
- ((AliITSsegmentation& ) obj).fGeom = fGeom; // copy only the pointer
if(fCorr){
((AliITSsegmentation& ) obj).fCorr = new TF1(*fCorr); // make a proper copy
}
}
//______________________________________________________________________
AliITSsegmentation::AliITSsegmentation(const AliITSsegmentation &source):
- TObject(source){
+ TObject(source),
+fDx(0),
+fDz(0),
+fDy(0),
+fCorr(0){
// copy constructor
source.Copy(*this);
}