Options for cuts automatically set when chosing processing option
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Jul 2004 16:32:49 +0000 (16:32 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Jul 2004 16:32:49 +0000 (16:32 +0000)
HBTAN/AliHBTAnalysis.cxx

index f4ea1ab..359f260 100644 (file)
@@ -147,7 +147,7 @@ Int_t AliHBTAnalysis::ProcessEvent(AliAOD* aodrec, AliAOD* aodsim)
   //Processes one event
   if (fProcEvent == 0x0)
    {
-     Error("ProcessEvent","Analysis option not specified");
+     Error("ProcessEvent","Analysis <<%s>> option not specified.",GetName());
      return 1;
    }
   if ( Pass(aodrec,aodsim) ) return 0;
@@ -269,11 +269,13 @@ Int_t AliHBTAnalysis::Init()
     case kReconstructed:
       if (nonid) fProcEvent = &AliHBTAnalysis::ProcessRecNonId;
       else fProcEvent = &AliHBTAnalysis::ProcessRec;
+      SetCutsOnRec();
       break;
 
     case kSimulated:
       if (nonid) fProcEvent = &AliHBTAnalysis::ProcessSimNonId;
       else fProcEvent = &AliHBTAnalysis::ProcessSim;
+      SetCutsOnSim();
       break;
 
     case kSimulatedAndReconstructed:
@@ -368,7 +370,7 @@ Int_t AliHBTAnalysis::ProcessRecAndSim(AliAOD* aodrec, AliAOD* aodsim)
 
   if ( !partEvent || !trackEvent ) 
    {
-     Error("ProcessRecAndSim","Can not get event");
+     Error("ProcessRecAndSim","<<%s>> Can not get event",GetName());
      return 1;
    }