]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Index of PHOS modules to calculate AbsId begins at 1 not at 0
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Feb 2007 07:26:14 +0000 (07:26 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Feb 2007 07:26:14 +0000 (07:26 +0000)
PHOS/AliPHOSReconstructor.cxx

index dcc2b5c996b6f3bb405bef764b513142cf386259..f64b8d79c66736052965c776c8d3e986dd87b822 100644 (file)
@@ -146,9 +146,9 @@ void AliPHOSReconstructor::FillESD(AliRunLoader* runLoader, AliESD* esd) const
   AliDebug(2, Form("Trigger 2x2 max amp %f, out amp %f, SM %d, iphi %d ieta %d",  maxAmp2x2, ampOutOfPatch2x2, iSM2x2,iCrystalPhi2x2, iCrystalEta2x2));
   AliDebug(2, Form("Trigger 4x4 max amp %f , out amp %f, SM %d, iphi %d, ieta %d",  maxAmpnxn, ampOutOfPatchnxn, iSMnxn,iCrystalPhinxn, iCrystalEtanxn));
 
-  Int_t iRelId2x2 []= {iSM2x2,0,iCrystalPhi2x2,iCrystalEta2x2};
+  Int_t iRelId2x2 []= {iSM2x2+1,0,iCrystalPhi2x2,iCrystalEta2x2};// PHOS modules in order to calculate AbsId need to be 1-5 not 0-4 as returns trigger.
   Int_t iAbsId2x2 =-1;
-  Int_t iRelIdnxn []= {iSMnxn,0,iCrystalPhinxn,iCrystalEtanxn};
+  Int_t iRelIdnxn []= {iSMnxn+1,0,iCrystalPhinxn,iCrystalEtanxn};// PHOS modules in order to calculate AbsId need to be 1-5 not 0-4 as returns trigger.
   Int_t iAbsIdnxn =-1;
   TVector3    pos2x2(-1,-1,-1);
   TVector3    posnxn(-1,-1,-1);