fShape.SetOwner(kTRUE);
return;
}
+
//______________________________________________________________________
AliITSgeom::AliITSgeom(Int_t itype,Int_t nlayers,const Int_t *nlads,
const Int_t *ndets,Int_t mods):
} // end while ever loop
fclose(pf);
}
+
//______________________________________________________________________
-AliITSgeom::AliITSgeom(const AliITSgeom &source) : TObject(source){
+AliITSgeom::AliITSgeom(const AliITSgeom &source) : TObject(source),
+fVersion(source.fVersion),
+fTrans(source.fTrans),
+fNmodules(source.fNmodules),
+fNlayers(source.fNlayers),
+fNlad(source.fNlad),
+fNdet(source.fNdet),
+fGm(source.fGm),
+fShape(source.fShape)
+{
// The copy constructor for the AliITSgeom class. It calls the
// = operator function. See the = operator function for more details.
// Inputs:
// Return:
// none.
- *this = source; // Just use the = operator for now.
- return;
+ *this = source; // Just use the = operator for now.
+ return;
}
+
//______________________________________________________________________
AliITSgeom& AliITSgeom::operator=(const AliITSgeom &source){
// The = operator function for the AliITSgeom class. It makes an
this->fGm.AddAt(new TObject(*(source.fGm.At(i))),i);
return *this;
}
+
//______________________________________________________________________
Int_t AliITSgeom::GetModuleIndex(Int_t lay,Int_t lad,Int_t det)const{
// This routine computes the module index number from the layer,
return GetModuleIndex(5,1,1)-1;
break;
case kSSD:
- return GetIndexMax();
+ return GetIndexMax()-1;
break;
case kSSDp: case kSDDp: case kND:
default: