596a855f |
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 AliTracker; |
14 | class AliESD; |
15 | |
16 | |
17 | class AliReconstruction: public TNamed { |
18 | public: |
19 | AliReconstruction(const char* name = "AliReconstruction", |
20 | const char* title = "reconstruction"); |
21 | AliReconstruction(const AliReconstruction& rec); |
22 | AliReconstruction& operator = (const AliReconstruction& rec); |
23 | virtual ~AliReconstruction(); |
24 | |
25 | void SetGAliceFile(const char* fileName); |
26 | |
27 | void SetRunReconstruction(const char* detectors) { |
28 | fRunReconstruction = detectors;}; |
29 | void SetRunTracking(Bool_t run) {fRunTracking = run;}; |
30 | void SetFillESD(const char* detectors) {fFillESD = detectors;}; |
31 | |
32 | virtual Bool_t Run(); |
33 | |
34 | private: |
35 | void Init(); |
36 | |
37 | Bool_t IsSelected(TString detName, TString& detectors) const; |
38 | |
39 | Bool_t RunReconstruction(const TString& detectors); |
40 | Bool_t RunTracking(AliESD* esd); |
41 | Bool_t FillESD(AliESD* esd, const TString& detectors); |
42 | |
43 | TString fRunReconstruction; // run the reconstr. for these detectors |
44 | Bool_t fRunTracking; // run the barrel tracking |
45 | TString fFillESD; // fill ESD for these detectors |
46 | Bool_t fStopOnError; // stop or continue on errors |
47 | |
48 | TString fGAliceFileName; // name of the galice file |
49 | |
50 | AliRunLoader* fRunLoader; //! current run loader object |
51 | AliLoader* fITSLoader; //! loader for ITS |
52 | AliTracker* fITSTracker; //! tracker for ITS |
53 | AliLoader* fTPCLoader; //! loader for TPC |
54 | AliTracker* fTPCTracker; //! tracker for TPC |
55 | AliLoader* fTRDLoader; //! loader for TRD |
56 | AliTracker* fTRDTracker; //! tracker for TRD |
57 | AliLoader* fTOFLoader; //! loader for TOF |
58 | AliTracker* fTOFTracker; //! tracker for TOF |
59 | |
60 | ClassDef(AliReconstruction, 1) // class for running the reconstruction |
61 | }; |
62 | |
63 | #endif |