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