Fixes related the event range and run method. The event range now can be specified...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Nov 2006 14:25:20 +0000 (14:25 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Nov 2006 14:25:20 +0000 (14:25 +0000)
STEER/AliReconstruction.cxx
STEER/AliReconstruction.h

index 22331e4b27bb6309fd6a30134decd6c73a0c5fb1..21d3b47392d6abddc23a33a5036723376ec5e48d 100644 (file)
@@ -541,8 +541,7 @@ void AliReconstruction::SetOption(const char* detector, const char* option)
 
 
 //_____________________________________________________________________________
-Bool_t AliReconstruction::Run(const char* input,
-                             Int_t firstEvent, Int_t lastEvent)
+Bool_t AliReconstruction::Run(const char* input)
 {
 // run the reconstruction
 
@@ -651,7 +650,7 @@ Bool_t AliReconstruction::Run(const char* input,
   
   for (Int_t iEvent = 0; iEvent < fRunLoader->GetNumberOfEvents(); iEvent++) {
     if (fRawReader) fRawReader->NextEvent();
-    if ((iEvent < firstEvent) || ((lastEvent >= 0) && (iEvent > lastEvent))) {
+    if ((iEvent < fFirstEvent) || ((fLastEvent >= 0) && (iEvent > fLastEvent))) {
       // copy old ESD to the new one
       if (treeOld) {
        treeOld->SetBranchAddress("ESD", &esd);
index 4128a3d41bf5d58a71a624f3426dd559d8be2b69..9bdde2e1ea0d3cefee332c8de9f454562b700fc4 100644 (file)
@@ -95,12 +95,7 @@ public:
                   fLoadAlignFromCDB = kFALSE;}
   Bool_t         ApplyAlignObjsToGeom(TObjArray* alObjArray);
 
-  virtual Bool_t Run(const char* input, 
-                    Int_t firstEvent, Int_t lastEvent = -1);
-  Bool_t         Run(const char* input = NULL)
-    {return Run(input, fFirstEvent, fLastEvent);};
-  Bool_t         Run(Int_t firstEvent, Int_t lastEvent = -1)
-    {return Run(NULL, firstEvent, lastEvent);};
+  virtual Bool_t Run(const char* input = NULL);
 
 
 private: