]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
correct in the StepManager the calculation of the tower id
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 17 Jan 2003 17:27:07 +0000 (17:27 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 17 Jan 2003 17:27:07 +0000 (17:27 +0000)
EMCAL/AliEMCALv1.cxx

index 2acced706c4d40f1b3a5a92c1f03577edd13e7b1..dd6809d66f31a640f33302f97733e576283792eb 100644 (file)
@@ -179,7 +179,7 @@ void AliEMCALv1::StepManager(void){
       gMC->CurrentVolOffID(1, id[0]); // get the POLY copy number;
       gMC->CurrentVolID(id[1]); // get the phi number inside the layer
       
       gMC->CurrentVolOffID(1, id[0]); // get the POLY copy number;
       gMC->CurrentVolID(id[1]); // get the phi number inside the layer
       
-      Int_t tower = (id[0]-1) % geom->GetNZ() + 1 + (id[1] - 1) * 96 ;  
+      Int_t tower = (id[0]-1) % geom->GetNZ() + 1 + (id[1] - 1) * geom->GetNZ() ;  
       Int_t layer = static_cast<Int_t>((id[0]-1)/(geom->GetNZ())) + 1 ; 
       Int_t absid = tower ; 
       if (layer <= geom->GetNPRLayers() )
       Int_t layer = static_cast<Int_t>((id[0]-1)/(geom->GetNZ())) + 1 ; 
       Int_t absid = tower ; 
       if (layer <= geom->GetNPRLayers() )