Add writing primary info to calocells
authorprsnko <prsnko@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Aug 2012 14:19:45 +0000 (14:19 +0000)
committerprsnko <prsnko@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Aug 2012 14:19:45 +0000 (14:19 +0000)
PHOS/AliPHOSReconstructor.cxx

index 3d928ee..990c551 100644 (file)
@@ -273,7 +273,8 @@ void AliPHOSReconstructor::FillESD(TTree* digitsTree, TTree* clustersTree,
     if(dig->GetId() <= knEMC && 
        Calibrate(dig->GetEnergy(),dig->GetId()) > GetRecoParam()->GetEMCMinE() ){
       phsCells.SetCell(idignew,dig->GetId(), Calibrate(dig->GetEnergy(),dig->GetId()),
-                                             CalibrateT(dig->GetTime(),dig->GetId()));   
+                                             CalibrateT(dig->GetTime(),dig->GetId()),
+                                             dig->GetPrimary(1)) ;
       idignew++;
     }
   }