From de56e4f96d343b16a880b0a47cb1649ee0f2d383 Mon Sep 17 00:00:00 2001 From: schutz Date: Fri, 17 Jan 2003 17:27:07 +0000 Subject: [PATCH] correct in the StepManager the calculation of the tower id --- EMCAL/AliEMCALv1.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EMCAL/AliEMCALv1.cxx b/EMCAL/AliEMCALv1.cxx index 2acced706c4..dd6809d66f3 100644 --- a/EMCAL/AliEMCALv1.cxx +++ b/EMCAL/AliEMCALv1.cxx @@ -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 - 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((id[0]-1)/(geom->GetNZ())) + 1 ; Int_t absid = tower ; if (layer <= geom->GetNPRLayers() ) -- 2.31.1