]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSv11.cxx
New hybrid geometry using both new code and old parts. Improved SDD geometry (L....
[u/mrichter/AliRoot.git] / ITS / AliITSv11.cxx
index 238e8f2afa9d6154555a1fb4a623f900415cfad1..3cc6f45d4b5a02a7fb5b52fba66ca23d531b396a 100644 (file)
@@ -43,7 +43,6 @@
 #include "AliITSsegmentationSDD.h"
 #include "AliITSsegmentationSPD.h"
 #include "AliITSsegmentationSSD.h"
-#include "AliITSv11.h"
 #include "AliMagF.h"
 #include "AliRun.h"
 #include "AliTrackReference.h"
@@ -52,6 +51,7 @@
 #include <TGeoManager.h>
 #include <TGeoVolume.h>
 #include <TGeoPcon.h>
+#include "AliITSv11.h"
 //#include "AliITSv11GeometrySPD.h"
 #include "AliITSv11GeometrySDD.h"
 //#include "AliITSv11GeometrySupport.h"
@@ -64,10 +64,10 @@ ClassImp(AliITSv11)
 
 //______________________________________________________________________
 AliITSv11::AliITSv11() : AliITS(),
-  fGeomDetOut(kFALSE), // Don't write .det file
-  fGeomDetIn(kTRUE),   // Read .det file
+  fGeomDetOut(kFALSE),
+  fGeomDetIn(kFALSE),
   fByThick(kTRUE),
-  fMajorVersion(0),
+  fMajorVersion(11),
   fMinorVersion(0),
   fSDDgeom(0)
 {
@@ -88,10 +88,10 @@ AliITSv11::AliITSv11() : AliITS(),
 //______________________________________________________________________
 AliITSv11::AliITSv11(const char *name, const char *title)
   : AliITS("ITS", title),
-    fGeomDetOut(kFALSE), // Don't write .det file
-    fGeomDetIn(kTRUE),   // Read .det file
+    fGeomDetOut(kFALSE),
+    fGeomDetIn(kFALSE),
     fByThick(kTRUE),
-    fMajorVersion(0),
+    fMajorVersion(11),
     fMinorVersion(0),
     fSDDgeom(0)
 {
@@ -105,8 +105,8 @@ AliITSv11::AliITSv11(const char *name, const char *title)
   fIdName[0] = name; // removes warning message
   fIdName[0] = "ITS1";
   fIdName[1] = "ITS2";
-  fIdName[2] = fSDDgeom->GetSenstiveVolumeMame();
-  fIdName[3] = fSDDgeom->GetSenstiveVolumeMame();
+  fIdName[2] = fSDDgeom->GetSenstiveVolumeName3();
+  fIdName[3] = fSDDgeom->GetSenstiveVolumeName4();
   fIdName[4] = "ITS5";
   fIdName[5] = "ITS6";
   fIdSens    = new Int_t[fIdN];
@@ -128,10 +128,10 @@ AliITSv11::AliITSv11(const char *name, const char *title)
 AliITSv11::AliITSv11(Int_t debugITS,Int_t debugSPD,Int_t debugSDD,
                   Int_t debugSSD,Int_t debugSUP) :
   AliITS("ITS","ITS geometry v11"),
-    fGeomDetOut(kFALSE), // Don't write .det file
-    fGeomDetIn(kTRUE),   // Read .det file
+    fGeomDetOut(kFALSE),
+    fGeomDetIn(kFALSE),
     fByThick(kTRUE),
-    fMajorVersion(0),
+    fMajorVersion(11),
     fMinorVersion(0),
     fSDDgeom(0)
  {
@@ -148,8 +148,8 @@ AliITSv11::AliITSv11(Int_t debugITS,Int_t debugSPD,Int_t debugSDD,
   fIdName = new TString[fIdN];
   fIdName[0] = "ITS1";
   fIdName[1] = "ITS2";
-  fIdName[2] = fSDDgeom->GetSenstiveVolumeMame();
-  fIdName[3] = fSDDgeom->GetSenstiveVolumeMame();
+  fIdName[2] = fSDDgeom->GetSenstiveVolumeName3();
+  fIdName[3] = fSDDgeom->GetSenstiveVolumeName4();
   fIdName[4] = "ITS5";
   fIdName[5] = "ITS6";
   fIdSens    = new Int_t[fIdN];
@@ -195,8 +195,8 @@ void AliITSv11::CreateGeometry(){
   sITS->DefineSection(0,-300.0*kcm,0.01*kcm,50.0*kcm);
   sITS->DefineSection(1,+300.0*kcm,0.01*kcm,50.0*kcm);
 
-  TGeoMedium *air = gGeoManager->GetMedium("ITS_ITSair");
-  TGeoVolume *vITS = new TGeoVolume("vITS",sITS,air);
+  TGeoMedium *air = gGeoManager->GetMedium("ITS_AIR$");
+  TGeoVolume *vITS = new TGeoVolume("ITSV",sITS,air);
   vITS->SetVisibility(kFALSE);
   vALIC->AddNode(vITS,1,0);
 
@@ -1198,34 +1198,34 @@ void AliITSv11::CreateMaterials(){
     */
     AliMaterial(96, "SSD cone$",63.546, 29., 1.15, 1.265, 999);
     AliMedium(96,"SSD cone$",96,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
-
 }
 
-
 //______________________________________________________________________
 void AliITSv11::InitAliITSgeom(){
   //
   // Fill fITSgeom with the 3 sub-detector geometries
   //
 
+  if (gGeoManager) gGeoManager->Export("geometry.root");
+
     const Int_t knlayers = 6;
     const Int_t kndeep = 3;
-    const AliITSDetector idet[knlayers]={kSPD,kSPD,kSDD,kSDD,kSSD,kSSD};
-    const TString names[knlayers] = {
-
-      "",  // lay=1
-      "",  // lay=2
+    const AliITSDetector kidet[knlayers]={kSPD,kSPD,kSDD,kSDD,kSSD,kSSD};
+    const TString knames[knlayers] = {
+      "AliITSv11:spd missing",  // lay=1
+      "AliITSv11:spd missing",  // lay=2
       "/ALIC_1/ITSV_1/ITSsddLayer3_1/ITSsddLadd_%d/ITSsddSensor_%d/ITSsddWafer_%d", // lay=3
       "/ALIC_1/ITSV_1/ITSsddLayer4_1/ITSsddLadd_%d/ITSsddSensor_%d/ITSsddWafer_%d", // lay=4
-      "",  // lay=5
-      ""}; // lay=6
-
-    const Int_t itsGeomTreeCopys[knlayers][kndeep]= {{10, 2, 4},// lay=1
-                                                     {10, 4, 4},// lay=2
-                                                     {14, 6, 1},// lay=3
-                                                     {22, 8, 1},// lay=4
-                                                     {34,22, 1},// lay=5
-                                                     {38,25, 1}};//lay=6
+      "AliITSv11:ssd missing",  // lay=5
+      "AliITSv11:ssd missing"   // lay=6
+    };
+
+    const Int_t kitsGeomTreeCopys[knlayers][kndeep]= {{10, 2, 4},// lay=1
+                                                     {10, 4, 4}, // lay=2
+                                                     {14, 6, 1}, // lay=3
+                                                     {22, 8, 1}, // lay=4
+                                                     {34,22, 1}, // lay=5
+                                                     {38,25, 1}};// lay=6
     Int_t       nlad[knlayers],ndet[knlayers];
     Int_t       mod,lay,lad=0,det=0,i,j,k,cp0,cp1,cp2;
     TString path,shapeName;
@@ -1233,17 +1233,17 @@ void AliITSv11::InitAliITSgeom(){
     Double_t trans[3]={3*0.0},rot[10]={9*0.0,1.0};
     TArrayD shapePar;
     TArrayF shapeParF;
+    Bool_t shapeDefined[3]={kFALSE,kFALSE,kFALSE};
 
     AliDebug(1,"Reading Geometry transformation directly from Modler.");
     mod = 0;
     for(i=0;i<knlayers;i++){
         k = 1;
-        for(j=0;j<kndeep;j++) if(itsGeomTreeCopys[i][j]!=0)
-            k *= TMath::Abs(itsGeomTreeCopys[i][j]);
+        for(j=0;j<kndeep;j++) if(kitsGeomTreeCopys[i][j]!=0)
+            k *= TMath::Abs(kitsGeomTreeCopys[i][j]);
         mod += k;
     } // end for i
 
-    if(GetITSgeom()!=0) delete GetITSgeom();
     SetITSgeom(0);
     nlad[0]=20;nlad[1]=40;nlad[2]=14;nlad[3]=22;nlad[4]=34;nlad[5]=38;
     ndet[0]= 4;ndet[1]= 4;ndet[2]= 6;ndet[3]= 8;ndet[4]=22;ndet[5]=25;
@@ -1251,10 +1251,12 @@ void AliITSv11::InitAliITSgeom(){
     SetITSgeom(geom);
     mod = 0;
     for(lay=1;lay<=knlayers;lay++){
-        for(cp0=1;cp0<=itsGeomTreeCopys[lay-1][0];cp0++){
-            for(cp1=1;cp1<=itsGeomTreeCopys[lay-1][1];cp1++){
-                for(cp2=1;cp2<=itsGeomTreeCopys[lay-1][2];cp2++){
-                    path.Form(names[lay-1].Data(),
+
+        for(cp0=0; cp0<kitsGeomTreeCopys[lay-1][0]; cp0++){
+            for(cp1=0; cp1<kitsGeomTreeCopys[lay-1][1]; cp1++){
+                for(cp2=1; cp2<=kitsGeomTreeCopys[lay-1][2]; cp2++){
+
+                    path.Form(knames[lay-1].Data(),
                               cp0,cp1,cp2);
                     switch (lay){
                     case 1:{
@@ -1276,21 +1278,28 @@ void AliITSv11::InitAliITSgeom(){
                     gMC->GetShape(path.Data(),shapeName,shapePar);
                     shapeParF.Set(shapePar.GetSize());
                     for(i=0;i<shapePar.GetSize();i++) shapeParF[i]=shapePar[i];
-                    geom->CreateMatrix(mod,lay,lad,det,idet[lay-1],trans,rot);
+                    geom->CreateMatrix(mod,lay,lad,det,kidet[lay-1],trans,rot);
                     geom->SetTrans(mod,materix.GetTranslation());
                     geom->SetRotMatrix(mod,materix.GetRotationMatrix());
+                   geom->GetGeomMatrix(mod)->SetPath(path.Data());
                     switch (lay){
-                    case 1: case 2:{
+                    case 1: case 2:
+                       if(!shapeDefined[kSPD]){
                         geom->ReSetShape(kSPD,new AliITSgeomSPD425Short(
                                 shapeParF.GetSize(),shapeParF.GetArray()));
+                       shapeDefined[kSPD] = kTRUE;
                     }break;
-                    case 3: case 4:{
+                    case 3: case 4:
+                       if(!shapeDefined[kSDD]){
                         geom->ReSetShape(kSDD,new AliITSgeomSDD256(
                                 shapeParF.GetSize(),shapeParF.GetArray()));
+                       shapeDefined[kSDD] = kTRUE;
                     }break;
-                    case 5: case 6:{
+                    case 5: case 6:
+                       if(!shapeDefined[kSSD]){
                         geom->ReSetShape(kSSD,new AliITSgeomSSD75and275(
                                 shapeParF.GetSize(),shapeParF.GetArray()));
+                       shapeDefined[kSSD] = kTRUE;
                     }break;
                     default:{
                     }break;
@@ -1300,13 +1309,10 @@ void AliITSv11::InitAliITSgeom(){
             } // end for cp1
         } // end for cp0
     } // end for lay
-    return;
 
 //   fSDDgeom->ExportSensorGeometry(GetITSgeom(), +3, 0);  //SDD
-
 }
 
-
 //______________________________________________________________________
 void AliITSv11::Init(){
   //
@@ -1327,16 +1333,106 @@ void AliITSv11::Init(){
     //
 }
 
+// //______________________________________________________________________
+// void AliITSv11::SetDefaults(){
+//   //
+//   // Set response ans segmentation models for SPD, SDD and SSD
+//   //
+//      const Float_t kconv = 1.0e+04; // convert cm to microns
+//     AliInfo("Called");    
+
+//     if(!fDetTypeSim) fDetTypeSim = new AliITSDetTypeSim();
+//     fDetTypeSim->SetITSgeom(GetITSgeom());
+  
+//     AliITSgeomSPD  *s0;
+//     AliITSgeomSDD  *s1;
+//     AliITSgeomSSD  *s2;
+//     Int_t i;
+//     Float_t bx[256],bz[280];
+   
+//     fDetTypeSim->ResetCalibrationArray();
+//     fDetTypeSim->ResetSegmentation();
+//     fDetTypeSim->SetDefaults();
+    
+//     //SPD
+//     s0 = (AliITSgeomSPD*) GetITSgeom()->GetShape(kSPD);// Get shape info. Do it this way for now.
+//     AliITSsegmentationSPD* seg0 = (AliITSsegmentationSPD*)fDetTypeSim->GetSegmentationModel(0);
+//     seg0->SetDetSize(s0->GetDx()*2.*kconv, // base this on AliITSgeomSPD
+//                  s0->GetDz()*2.*kconv, // for now.
+//                  s0->GetDy()*2.*kconv); // x,z,y full width in microns.
+//     seg0->SetNPads(256,160);// Number of Bins in x and z
+//     for(i=000;i<256;i++) bx[i] =  50.0; // in x all are 50 microns.
+//     for(i=000;i<160;i++) bz[i] = 425.0; // most are 425 microns except below
+//     for(i=160;i<280;i++) bz[i] =   0.0; // Outside of detector.
+//     bz[ 31] = bz[ 32] = 625.0; // first chip boundry
+//     bz[ 63] = bz[ 64] = 625.0; // first chip boundry
+//     bz[ 95] = bz[ 96] = 625.0; // first chip boundry
+//     bz[127] = bz[128] = 625.0; // first chip boundry
+//     bz[160] = 425.0; // Set so that there is no zero pixel size for fNz.
+//     seg0->SetBinSize(bx,bz); // Based on AliITSgeomSPD for now.
+//     SetSegmentationModel(kSPD,seg0);
+//     // set digit and raw cluster classes to be used
+//     const char *kData0=(fDetTypeSim->GetCalibrationModel(GetITSgeom()->GetStartSPD()))->DataType();
+//     if (strstr(kData0,"real")) fDetTypeSim->SetDigitClassName(kSPD,"AliITSdigit");
+//     else fDetTypeSim->SetDigitClassName(kSPD,"AliITSdigitSPD");
+
+
+
+//     // SDD
+//     s1 = (AliITSgeomSDD*) GetITSgeom()->GetShape(kSDD);// Get shape info. Do it this way for now.
+//     AliITSsegmentationSDD* seg1 = (AliITSsegmentationSDD*)fDetTypeSim->GetSegmentationModel(1);
+//     seg1->SetDetSize(s1->GetDx()*kconv, // base this on AliITSgeomSDD
+//                  s1->GetDz()*2.*kconv, // for now.
+//                  s1->GetDy()*2.*kconv); // x,z,y full width in microns.
+//     seg1->SetNPads(256,256);// Use AliITSgeomSDD for now
+//     SetSegmentationModel(kSDD,seg1);
+//     const char *kData1=(fDetTypeSim->GetCalibrationModel(GetITSgeom()->GetStartSDD()))->DataType();
+//     AliITSCalibrationSDD* rsp = (AliITSCalibrationSDD*)fDetTypeSim->GetCalibrationModel(GetITSgeom()->GetStartSDD());
+//     const char *kopt=rsp->GetZeroSuppOption();
+//     if((!strstr(kopt,"2D")) && (!strstr(kopt,"1D")) || strstr(kData1,"real") ){
+//     fDetTypeSim->SetDigitClassName(kSDD,"AliITSdigit");
+//     } else fDetTypeSim->SetDigitClassName(kSDD,"AliITSdigitSDD");
+
+
+//     // SSD
+//     s2 = (AliITSgeomSSD*) GetITSgeom()->GetShape(kSSD);// Get shape info. Do it this way for now.
+//     AliITSsegmentationSSD* seg2 = (AliITSsegmentationSSD*)fDetTypeSim->GetSegmentationModel(2);
+//     seg2->SetDetSize(s2->GetDx()*2.*kconv, // base this on AliITSgeomSSD
+//                  s2->GetDz()*2.*kconv, // for now.
+//                  s2->GetDy()*2.*kconv); // x,z,y full width in microns.
+//     seg2->SetPadSize(95.,0.); // strip x pitch in microns
+//     seg2->SetNPads(768,0); // number of strips on each side.
+//     seg2->SetAngles(0.0075,0.0275); // strip angels rad P and N side.
+//     seg2->SetAnglesLay5(0.0075,0.0275); // strip angels rad P and N side.
+//     seg2->SetAnglesLay6(0.0275,0.0075); // strip angels rad P and N side.
+//     SetSegmentationModel(kSSD,seg2); 
+//         const char *kData2=(fDetTypeSim->GetCalibrationModel(GetITSgeom()->GetStartSSD()))->DataType();
+//     if(strstr(kData2,"real") ) fDetTypeSim->SetDigitClassName(kSSD,"AliITSdigit");
+//     else fDetTypeSim->SetDigitClassName(kSSD,"AliITSdigitSSD");
+//     if(fgkNTYPES>3){
+//     Warning("SetDefaults",
+//             "Only the four basic detector types are initialised!");
+//     }// end if
+
+    
+//     return;
+// }
+
+
 //______________________________________________________________________
 void AliITSv11::SetDefaults(){
   //
-  // Set response ans segmentation models for SPD, SDD and SSD
+  // Set response and segmentation models for SPD, SDD and SSD
   //
      const Float_t kconv = 1.0e+04; // convert cm to microns
     AliInfo("Called");    
 
-    if(!fDetTypeSim) fDetTypeSim = new AliITSDetTypeSim();
-    fDetTypeSim->SetITSgeom(GetITSgeom());
+//     if(!fDetTypeSim) fDetTypeSim = new AliITSDetTypeSim();
+//     fDetTypeSim->SetITSgeom(GetITSgeom());
+    if(!fDetTypeSim) {
+      Warning("SetDefaults","Error fDetTypeSim not defined");
+      return;
+    }
   
     AliITSgeomSPD  *s0;
     AliITSgeomSDD  *s1;
@@ -1413,11 +1509,139 @@ void AliITSv11::SetDefaults(){
 }
 
 
+
+
+
 //______________________________________________________________________
 void AliITSv11::DrawModule() const{
 
 }
 
+// //______________________________________________________________________
+// void AliITSv11::StepManager(){
+//   //
+//   //    Called for every step in the ITS, then calles the AliITShit class
+//   // creator with the information to be recoreded about that hit.
+//   //
+//     Int_t         copy, id;
+//     TLorentzVector position, momentum;
+//     static TLorentzVector position0;
+//     static Int_t stat0=0;
+
+//     if(!(this->IsActive())){
+//     return;
+//     } // end if !Active volume.
+
+//     if(!(gMC->TrackCharge())) return;
+
+//     id=gMC->CurrentVolID(copy);
+
+//     Bool_t sensvol = kFALSE;
+//     for(Int_t kk=0;kk<6;kk++)if(id == fIdSens[kk])sensvol=kTRUE;
+//     if(sensvol && (gMC->IsTrackExiting())){
+//     copy = fTrackReferences->GetEntriesFast();
+//     TClonesArray &lTR = *fTrackReferences;
+//     // Fill TrackReference structure with this new TrackReference.
+//     new(lTR[copy]) AliTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber());
+//     } // if Outer ITS mother Volume
+
+
+//     Int_t   copy1,copy2;  
+//     Int_t   vol[5];
+//     TClonesArray &lhits = *fHits;
+//     //
+//     // Track status
+//     vol[3] = 0;
+//     vol[4] = 0;
+//     if(gMC->IsTrackInside())      vol[3] +=  1;
+//     if(gMC->IsTrackEntering())    vol[3] +=  2;
+//     if(gMC->IsTrackExiting())     vol[3] +=  4;
+//     if(gMC->IsTrackOut())         vol[3] +=  8;
+//     if(gMC->IsTrackDisappeared()) vol[3] += 16;
+//     if(gMC->IsTrackStop())        vol[3] += 32;
+//     if(gMC->IsTrackAlive())       vol[3] += 64;
+//     //
+//     // Fill hit structure.
+//     if(!(gMC->TrackCharge())) return;
+//     //
+//     // Only entering charged tracks
+//     if((id = gMC->CurrentVolID(copy)) == fIdSens[0]) {
+//     vol[0] = 1;
+//     id = gMC->CurrentVolOffID(2,copy);
+//     //detector copy in the ladder = 1<->4  (ITS1 < I101 < I103 < I10A)
+//     vol[1] = copy;
+//     gMC->CurrentVolOffID(3,copy1);
+//     //ladder copy in the module   = 1<->2  (I10A < I12A)
+//     gMC->CurrentVolOffID(4,copy2);
+//     //module copy in the layer    = 1<->10 (I12A < IT12)
+//     vol[2] = copy1+(copy2-1)*2;//# of ladders in one module  = 2
+//     } else if(id == fIdSens[1]){
+//     vol[0] = 2;
+//     id = gMC->CurrentVolOffID(2,copy);
+//     //detector copy in the ladder = 1<->4  (ITS2 < I1D1 < I1D3 < I20A)
+//     vol[1] = copy;
+//     gMC->CurrentVolOffID(3,copy1);
+//     //ladder copy in the module   = 1<->4  (I20A < I12A)
+//     gMC->CurrentVolOffID(4,copy2);
+//     //module copy in the layer    = 1<->10 (I12A < IT12)
+//     vol[2] = copy1+(copy2-1)*4;//# of ladders in one module  = 4
+//     } else if(id == fIdSens[2]){
+//     vol[0] = 3;
+//     id = gMC->CurrentVolOffID(1,copy);
+//     //detector copy in the ladder = 1<->6  (ITS3 < I302 < I004)
+//     vol[1] = copy;
+//     id = gMC->CurrentVolOffID(2,copy);
+//     //ladder copy in the layer    = 1<->14 (I004 < IT34)
+//     vol[2] = copy;
+//     } else if(id == fIdSens[3]){
+//     vol[0] = 4;
+//     id = gMC->CurrentVolOffID(1,copy);
+//     //detector copy in the ladder = 1<->8  (ITS4 < I402 < I005)
+//     vol[1] = copy;
+//     id = gMC->CurrentVolOffID(2,copy);
+//     //ladder copy in the layer    = 1<->22 (I005 < IT34))
+//     vol[2] = copy;
+//     }else if(id == fIdSens[4]){
+//     vol[0] = 5;
+//     id = gMC->CurrentVolOffID(1,copy);
+//     //detector copy in the ladder = 1<->22  (ITS5 < I562 < I565)
+//     vol[1] = copy;
+//     id = gMC->CurrentVolOffID(2,copy);
+//     //ladder copy in the layer    = 1<->34 (I565 < IT56)
+//     vol[2] = copy;
+//     }else if(id == fIdSens[5]){
+//     vol[0] = 6;
+//     id = gMC->CurrentVolOffID(1,copy);
+//     //detector copy in the ladder = 1<->25  (ITS6 < I566 < I569)
+//     vol[1] = copy;
+//     id = gMC->CurrentVolOffID(2,copy);
+//     //ladder copy in the layer = 1<->38 (I569 < IT56)
+//     vol[2] = copy;
+//     } else {
+//     return; // not an ITS volume?
+//     } // end if/else if (gMC->CurentVolID(copy) == fIdSens[i])
+//     //
+//     gMC->TrackPosition(position);
+//     gMC->TrackMomentum(momentum);
+//     vol[4] = stat0;
+//     if(gMC->IsTrackEntering()){
+//     position0 = position;
+//     stat0 = vol[3];
+//     return;
+//     } // end if IsEntering
+//     // Fill hit structure with this new hit.
+    
+//     new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetMCApp()->GetCurrentTrackNumber(),vol,
+//                                gMC->Edep(),gMC->TrackTime(),position,
+//                                position0,momentum);
+
+//     position0 = position;
+//     stat0 = vol[3];
+
+//     return;
+// }
+
+
 //______________________________________________________________________
 void AliITSv11::StepManager(){
   //
@@ -1464,7 +1688,7 @@ void AliITSv11::StepManager(){
     //
     // Fill hit structure.
     if(!(gMC->TrackCharge())) return;
-    //
+
     // Only entering charged tracks
     if((id = gMC->CurrentVolID(copy)) == fIdSens[0]) {
        vol[0] = 1;
@@ -1476,6 +1700,7 @@ void AliITSv11::StepManager(){
        gMC->CurrentVolOffID(4,copy2);
        //module copy in the layer    = 1<->10 (I12A < IT12)
        vol[2] = copy1+(copy2-1)*2;//# of ladders in one module  = 2
+
     } else if(id == fIdSens[1]){
        vol[0] = 2;
        id = gMC->CurrentVolOffID(2,copy);
@@ -1486,6 +1711,7 @@ void AliITSv11::StepManager(){
        gMC->CurrentVolOffID(4,copy2);
        //module copy in the layer    = 1<->10 (I12A < IT12)
        vol[2] = copy1+(copy2-1)*4;//# of ladders in one module  = 4
+
     } else if(id == fIdSens[2]){
        vol[0] = 3;
        id = gMC->CurrentVolOffID(1,copy);
@@ -1494,6 +1720,7 @@ void AliITSv11::StepManager(){
        id = gMC->CurrentVolOffID(2,copy);
        //ladder copy in the layer    = 1<->14 (I004 < IT34)
        vol[2] = copy;
+
     } else if(id == fIdSens[3]){
        vol[0] = 4;
        id = gMC->CurrentVolOffID(1,copy);
@@ -1502,6 +1729,7 @@ void AliITSv11::StepManager(){
        id = gMC->CurrentVolOffID(2,copy);
        //ladder copy in the layer    = 1<->22 (I005 < IT34))
        vol[2] = copy;
+
     }else if(id == fIdSens[4]){
        vol[0] = 5;
        id = gMC->CurrentVolOffID(1,copy);
@@ -1510,6 +1738,7 @@ void AliITSv11::StepManager(){
        id = gMC->CurrentVolOffID(2,copy);
        //ladder copy in the layer    = 1<->34 (I565 < IT56)
        vol[2] = copy;
+
     }else if(id == fIdSens[5]){
        vol[0] = 6;
        id = gMC->CurrentVolOffID(1,copy);
@@ -1541,3 +1770,4 @@ void AliITSv11::StepManager(){
 
     return;
 }
+