Fix for #91977: Tracking cosmic muons in the TPC and momentum calculation
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Mar 2012 11:06:11 +0000 (11:06 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Mar 2012 11:06:11 +0000 (11:06 +0000)
STEER/STEER/AliReconstruction.cxx

index 6196e6c..29c6b29 100644 (file)
@@ -2286,7 +2286,9 @@ Bool_t AliReconstruction::ProcessEvent(Int_t iEvent)
     AliSysInfo::AddStamp(Form("FillVaria_%d",iEvent), 0,0,iEvent); 
 
     // write ESD
-    if (fCleanESD) {
+    UInt_t specie = fesd->GetEventSpecie();
+    Bool_t keepAll = (specie==AliRecoParam::kCosmic || specie==AliRecoParam::kCalib);
+    if (fCleanESD && (!keepAll) ) {
       CleanESD(fesd);
       AliSysInfo::AddStamp(Form("CleanESD_%d",iEvent), 0,0,iEvent); 
     }