Line data Source code
1 : #ifndef ALITOFRECONSTRUCTOR_H
2 : #define ALITOFRECONSTRUCTOR_H
3 :
4 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 : * See cxx source for full Copyright notice */
6 :
7 : /* $Id$ */
8 :
9 : ///////////////////////////////////////////////////////////////////////////////
10 : // //
11 : // class for TOF reconstruction //
12 : // //
13 : ///////////////////////////////////////////////////////////////////////////////
14 :
15 : #include "AliReconstructor.h"
16 : #include "AliTOFRecoParam.h"
17 : #include "AliTOFClusterFinder.h"
18 : #include "AliTOFClusterFinderV1.h"
19 :
20 : class TTree;
21 :
22 : class AliESDEvent;
23 : class AliRawReader;
24 : class AliTOFcalib;
25 : class AliESDpid;
26 :
27 : //class AliTOFT0maker;
28 :
29 : class AliTOFReconstructor: public AliReconstructor {
30 : public:
31 : AliTOFReconstructor();
32 : virtual ~AliTOFReconstructor();
33 :
34 : virtual void Reconstruct(AliRawReader* rawReader,
35 : TTree* clusterTree) const;
36 : virtual void Reconstruct(TTree* digitsTree, TTree* clusterTree) const;
37 :
38 : virtual void ConvertDigits(AliRawReader* reader, TTree* digitsTree) const;
39 :
40 : virtual AliTracker* CreateTracker() const;
41 :
42 : virtual void FillESD(AliRawReader*, TTree*clustersTree, AliESDEvent* esd) const
43 8 : {FillESD((TTree*)NULL,clustersTree,esd);}
44 : virtual void FillESD(TTree *, TTree *, AliESDEvent * /*esdEvent*/) const;
45 :
46 134 : static const AliTOFRecoParam* GetRecoParam() { return dynamic_cast<const AliTOFRecoParam*>(AliReconstructor::GetRecoParam(3)); } // getting RecoParam obj
47 0 : static void SetExtraTolerance(double v) {fgExtraTolerance = v;}
48 48 : static Double_t GetExtraTolerance() {return fgExtraTolerance;}
49 :
50 : virtual void FillEventTimeWithTOF(AliESDEvent *event, AliESDpid *esdPID);
51 : virtual void GetPidSettings(AliESDpid *esdPID);
52 :
53 : private:
54 : AliTOFReconstructor(const AliTOFReconstructor &); //Not implemented
55 : AliTOFReconstructor& operator=(const AliTOFReconstructor &); //Not implemented
56 :
57 : AliTOFcalib *fTOFcalib; // pointer to TOF calib class
58 : //AliTOFT0maker *fTOFT0maker; // pointer to TOF T0 maker class
59 :
60 : Int_t fNumberOfTofClusters; // Number of TOF Clusters
61 : Int_t fNumberOfTofTrgPads; // Number of TOF trigger pads
62 :
63 : AliTOFClusterFinder *fClusterFinder;
64 : AliTOFClusterFinderV1 *fClusterFinderV1;
65 : static Double_t fgExtraTolerance; // extra tolerance on DCut for miscalibrated TPC reco
66 :
67 : static Int_t fgCTPtriggerLatency;
68 :
69 160 : ClassDef(AliTOFReconstructor, 5) // class for the TOF reconstruction
70 : };
71 :
72 : #endif
|