]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliReconstruction.h
few changes by Thomas Kuhr
[u/mrichter/AliRoot.git] / STEER / AliReconstruction.h
CommitLineData
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>
59697224 10#include <TObjArray.h>
596a855f 11
12class AliRunLoader;
13class AliLoader;
2257f27e 14class AliVertexer;
596a855f 15class AliTracker;
16class AliESD;
e583c30d 17class TFile;
596a855f 18
19
20class AliReconstruction: public TNamed {
21public:
e583c30d 22 AliReconstruction(const char* gAliceFilename = "galice.root",
23 const char* name = "AliReconstruction",
596a855f 24 const char* title = "reconstruction");
25 AliReconstruction(const AliReconstruction& rec);
26 AliReconstruction& operator = (const AliReconstruction& rec);
27 virtual ~AliReconstruction();
28
29 void SetGAliceFile(const char* fileName);
30
59697224 31 void SetRunLocalReconstruction(const char* detectors) {
32 fRunLocalReconstruction = detectors;};
2257f27e 33 void SetRunVertexFinder(Bool_t run) {fRunVertexFinder = run;};
596a855f 34 void SetRunTracking(Bool_t run) {fRunTracking = run;};
35 void SetFillESD(const char* detectors) {fFillESD = detectors;};
36
24f7a148 37 void SetStopOnError(Bool_t stopOnError)
38 {fStopOnError = stopOnError;}
39 void SetCheckPointLevel(Int_t checkPointLevel)
40 {fCheckPointLevel = checkPointLevel;}
41
596a855f 42 virtual Bool_t Run();
43
44private:
59697224 45 Bool_t RunLocalReconstruction(const TString& detectors);
2257f27e 46 Bool_t RunVertexFinder(AliESD*& esd);
24f7a148 47 Bool_t RunTracking(AliESD*& esd);
48 Bool_t FillESD(AliESD*& esd, const TString& detectors);
596a855f 49
e583c30d 50 Bool_t IsSelected(TString detName, TString& detectors) const;
2257f27e 51 Bool_t CreateVertexer();
24f7a148 52 Bool_t CreateTrackers();
e583c30d 53 void CleanUp(TFile* file = NULL);
54
24f7a148 55 Bool_t ReadESD(AliESD*& esd, const char* recStep) const;
56 void WriteESD(AliESD* esd, const char* recStep) const;
57
59697224 58 TString fRunLocalReconstruction; // run the local reconstruction for these detectors
2257f27e 59 Bool_t fRunVertexFinder; // run the vertex finder
596a855f 60 Bool_t fRunTracking; // run the barrel tracking
61 TString fFillESD; // fill ESD for these detectors
596a855f 62 TString fGAliceFileName; // name of the galice file
e583c30d 63 Bool_t fStopOnError; // stop or continue on errors
24f7a148 64 Int_t fCheckPointLevel; // level of ESD check points
596a855f 65
66 AliRunLoader* fRunLoader; //! current run loader object
67 AliLoader* fITSLoader; //! loader for ITS
2257f27e 68 AliVertexer* fITSVertexer; //! vertexer for ITS
596a855f 69 AliTracker* fITSTracker; //! tracker for ITS
70 AliLoader* fTPCLoader; //! loader for TPC
71 AliTracker* fTPCTracker; //! tracker for TPC
72 AliLoader* fTRDLoader; //! loader for TRD
73 AliTracker* fTRDTracker; //! tracker for TRD
74 AliLoader* fTOFLoader; //! loader for TOF
75 AliTracker* fTOFTracker; //! tracker for TOF
76
59697224 77 TObjArray fReconstructors; //! array of reconstructor objects
78
596a855f 79 ClassDef(AliReconstruction, 1) // class for running the reconstruction
80};
81
82#endif