]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliReconstruction.h
Removing run loader
[u/mrichter/AliRoot.git] / STEER / AliReconstruction.h
index eceb835a0de3c62ffc1243c5a5bb58ce4efd6bec..29543293289d0c47b5c2375fd3c7e0f9139cb7bd 100644 (file)
@@ -25,8 +25,8 @@ class AliReconstructor;
 class AliRunLoader;
 class AliRawReader;
 class AliLoader;
-class AliVertexer;
 class AliTracker;
+class AliVertexer;
 class AliESD;
 class TFile;
 
@@ -42,6 +42,8 @@ public:
 
   void           SetGAliceFile(const char* fileName);
   void           SetInput(const char* input) {fInput = input;};
+  void           SetEventRange(Int_t firstEvent = 0, Int_t lastEvent = -1) 
+    {fFirstEvent = firstEvent; fLastEvent = lastEvent;};
   void           SetOption(const char* detector, const char* option);
 
   void           SetRunLocalReconstruction(const char* detectors) {
@@ -55,16 +57,26 @@ public:
     SetRunTracking(detectors);
     SetFillESD(detectors);};
 
+   void SetUniformFieldTracking(){fUniformField=kTRUE;} 
+   void SetNonuniformFieldTracking(){fUniformField=kFALSE;} 
+
   void           SetStopOnError(Bool_t stopOnError) 
     {fStopOnError = stopOnError;}
   void           SetCheckPointLevel(Int_t checkPointLevel)
     {fCheckPointLevel = checkPointLevel;}
 
-  virtual Bool_t Run(const char* input = NULL);
+  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);};
 
 private:
   Bool_t         RunLocalReconstruction(const TString& detectors);
+  Bool_t         RunLocalEventReconstruction(const TString& detectors);
   Bool_t         RunVertexFinder(AliESD*& esd);
+  Bool_t         RunHLTTracking(AliESD*& esd);
   Bool_t         RunTracking(AliESD*& esd);
   Bool_t         FillESD(AliESD*& esd, const TString& detectors);
 
@@ -73,17 +85,21 @@ private:
   AliReconstructor* GetReconstructor(Int_t iDet);
   Bool_t         CreateVertexer();
   Bool_t         CreateTrackers(const TString& detectors);
-  void           CleanUp(TFile* file = NULL);
+  void           CleanUp(TFile* file = NULL, TFile* fileOld = NULL);
 
   Bool_t         ReadESD(AliESD*& esd, const char* recStep) const;
   void           WriteESD(AliESD* esd, const char* recStep) const;
 
   TString        fRunLocalReconstruction; // run the local reconstruction for these detectors
+  Bool_t         fUniformField;       // uniform field tracking flag
   Bool_t         fRunVertexFinder;    // run the vertex finder
+  Bool_t         fRunHLTTracking;     // run the HLT tracking
   TString        fRunTracking;        // run the tracking for these detectors
   TString        fFillESD;            // fill ESD for these detectors
   TString        fGAliceFileName;     // name of the galice file
   TString        fInput;              // name of input file or directory
+  Int_t          fFirstEvent;         // index of first event to be reconstr.
+  Int_t          fLastEvent;          // index of last event to be reconstr.
   Bool_t         fStopOnError;        // stop or continue on errors
   Int_t          fCheckPointLevel;    // level of ESD check points
   TObjArray      fOptions;            // options for reconstructor objects
@@ -98,7 +114,7 @@ private:
   AliVertexer*   fVertexer;                //! vertexer for ITS
   AliTracker*    fTracker[fgkNDetectors];  //! trackers
 
-  ClassDef(AliReconstruction, 3)      // class for running the reconstruction
+  ClassDef(AliReconstruction, 5)      // class for running the reconstruction
 };
 
 #endif