]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSgeom.cxx
Fixing the correct syntax for AliEn spooler
[u/mrichter/AliRoot.git] / ITS / AliITSgeom.cxx
index 0001d0640f91ba863d8fb1e851d3fbe2145225d2..1c659bc765269bce3c68bb4ea908e7e4ebf3c4ab 100644 (file)
@@ -165,6 +165,7 @@ fShape(0,0)      // Array of shapes and detector information.
     fShape.SetOwner(kTRUE);
     return;
 }
+
 //______________________________________________________________________
 AliITSgeom::AliITSgeom(Int_t itype,Int_t nlayers,const Int_t *nlads,
                        const Int_t *ndets,Int_t mods):
@@ -628,8 +629,18 @@ fShape(0,0)      // TObjArray of detector geom.
     } // 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:
@@ -640,9 +651,10 @@ AliITSgeom::AliITSgeom(const AliITSgeom &source) : TObject(source){
     // 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
@@ -686,6 +698,7 @@ AliITSgeom& AliITSgeom::operator=(const AliITSgeom &source){
         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,
@@ -875,7 +888,7 @@ Int_t AliITSgeom::GetLastDet(Int_t dtype)const{
         return GetModuleIndex(5,1,1)-1;
         break;
     case kSSD:
-        return GetIndexMax();
+        return GetIndexMax()-1;
         break;
     case kSSDp: case kSDDp: case kND:
     default: