]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliReconstruction.h
get tables from the aliroot directory if they are not in the current one
[u/mrichter/AliRoot.git] / STEER / AliReconstruction.h
1 #ifndef ALIRECONSTRUCTION_H
2 #define ALIRECONSTRUCTION_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 #include <TNamed.h>
9 #include <TString.h>
10
11 class AliRunLoader;
12 class AliLoader;
13 class AliVertexer;
14 class AliTracker;
15 class AliESD;
16 class TFile;
17
18
19 class AliReconstruction: public TNamed {
20 public:
21   AliReconstruction(const char* gAliceFilename = "galice.root",
22                     const char* name = "AliReconstruction", 
23                     const char* title = "reconstruction");
24   AliReconstruction(const AliReconstruction& rec);
25   AliReconstruction& operator = (const AliReconstruction& rec);
26   virtual ~AliReconstruction();
27
28   void           SetGAliceFile(const char* fileName);
29
30   void           SetRunReconstruction(const char* detectors) {
31     fRunReconstruction = detectors;};
32   void           SetRunVertexFinder(Bool_t run) {fRunVertexFinder = run;};
33   void           SetRunTracking(Bool_t run) {fRunTracking = run;};
34   void           SetFillESD(const char* detectors) {fFillESD = detectors;};
35
36   void           SetStopOnError(Bool_t stopOnError) 
37     {fStopOnError = stopOnError;}
38   void           SetCheckPointLevel(Int_t checkPointLevel)
39     {fCheckPointLevel = checkPointLevel;}
40
41   virtual Bool_t Run();
42
43 private:
44   Bool_t         RunReconstruction(const TString& detectors);
45   Bool_t         RunVertexFinder(AliESD*& esd);
46   Bool_t         RunTracking(AliESD*& esd);
47   Bool_t         FillESD(AliESD*& esd, const TString& detectors);
48
49   Bool_t         IsSelected(TString detName, TString& detectors) const;
50   Bool_t         CreateVertexer();
51   Bool_t         CreateTrackers();
52   void           CleanUp(TFile* file = NULL);
53
54   Bool_t         ReadESD(AliESD*& esd, const char* recStep) const;
55   void           WriteESD(AliESD* esd, const char* recStep) const;
56
57   TString        fRunReconstruction;  // run the reconstr. for these detectors
58   Bool_t         fRunVertexFinder;    // run the vertex finder
59   Bool_t         fRunTracking;        // run the barrel tracking
60   TString        fFillESD;            // fill ESD for these detectors
61   TString        fGAliceFileName;     // name of the galice file
62   Bool_t         fStopOnError;        // stop or continue on errors
63   Int_t          fCheckPointLevel;    // level of ESD check points
64
65   AliRunLoader*  fRunLoader;          //! current run loader object
66   AliLoader*     fITSLoader;          //! loader for ITS
67   AliVertexer*   fITSVertexer;        //! vertexer for ITS
68   AliTracker*    fITSTracker;         //! tracker for ITS
69   AliLoader*     fTPCLoader;          //! loader for TPC
70   AliTracker*    fTPCTracker;         //! tracker for TPC
71   AliLoader*     fTRDLoader;          //! loader for TRD
72   AliTracker*    fTRDTracker;         //! tracker for TRD
73   AliLoader*     fTOFLoader;          //! loader for TOF
74   AliTracker*    fTOFTracker;         //! tracker for TOF
75
76   ClassDef(AliReconstruction, 1)      // class for running the reconstruction
77 };
78
79 #endif