]>
Commit | Line | Data |
---|---|---|
8741815f | 1 | #ifndef ALIMUONTRACKERCALIBRATEDDATAMAKER_H |
2 | #define ALIMUONTRACKERCALIBRATEDDATAMAKER_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 | ||
4ef00a18 | 9 | /// \ingroup rec |
8741815f | 10 | /// \class AliMUONTrackerCalibratedDataMaker |
11 | /// \brief Creator of calibrated AliMUONVTrackerData from AliRawReader | |
12 | /// | |
13 | // Author Laurent Aphecetche, Subatech | |
14 | ||
15 | #ifndef ALIMUONVTRACKERDATAMAKER_H | |
16 | # include "AliMUONVTrackerDataMaker.h" | |
17 | #endif | |
18 | #ifndef ROOT_TString | |
19 | # include "TString.h" | |
20 | #endif | |
21 | ||
22 | class AliRawReader; | |
23 | class AliMUONCalibrationData; | |
24 | class AliMUONDigitCalibrator; | |
25 | class AliMUONDigitMaker; | |
26 | class AliMUONVTrackerData; | |
27 | class AliMUONVStore; | |
28 | class AliMUONVDigitStore; | |
29 | ||
30 | class AliMUONTrackerCalibratedDataMaker : public AliMUONVTrackerDataMaker | |
31 | { | |
32 | public: | |
515cc5b5 | 33 | |
34 | AliMUONTrackerCalibratedDataMaker(TRootIOCtor* ioCtor); | |
35 | ||
36 | AliMUONTrackerCalibratedDataMaker(Int_t runNumber, | |
37 | AliRawReader* reader, | |
38 | const char* cdbpath=0x0, | |
39 | const char* calibMode=0x0, | |
40 | Bool_t histogram=kFALSE, | |
41 | Double_t xmin=0.0, | |
42 | Double_t xmax=4096.0, | |
43 | Bool_t useHPdecoder=kTRUE); | |
44 | ||
10eb3d17 | 45 | AliMUONTrackerCalibratedDataMaker(AliRawReader* reader = 0x0, |
46 | const char* cdbpath=0x0, | |
47 | const char* calibMode=0x0, | |
48 | Bool_t histogram=kFALSE, | |
49 | Double_t xmin=0.0, | |
515cc5b5 | 50 | Double_t xmax=4096.0, |
51 | Bool_t useHPdecoder=kTRUE); | |
52 | ||
8741815f | 53 | virtual ~AliMUONTrackerCalibratedDataMaker(); |
54 | ||
55 | /// Whether we have a valid raw reader | |
56 | Bool_t IsValid() const { return fRawReader != 0x0; } | |
57 | ||
58 | /// Our data | |
59 | AliMUONVTrackerData* Data() const { return fAccumulatedData; } | |
60 | ||
61 | /// We can be run | |
62 | virtual Bool_t IsRunnable() const { return kTRUE; } | |
63 | ||
64 | /// Whether we are running or not | |
65 | virtual Bool_t IsRunning() const { return fIsRunning; } | |
66 | ||
67 | /// Set the running status | |
68 | virtual void SetRunning(Bool_t flag) { fIsRunning = flag; } | |
69 | ||
515cc5b5 | 70 | Bool_t ProcessEvent(); |
71 | ||
8741815f | 72 | Bool_t NextEvent(); |
73 | ||
74 | void Print(Option_t* opt="") const; | |
75 | ||
76 | void Rewind(); | |
77 | ||
8741815f | 78 | /// Get our source URI |
79 | virtual TString Source() const { return fSource.Data(); } | |
80 | ||
81 | /// Set our source URI | |
82 | void SetSource(const char* source) { fSource = source; } | |
83 | ||
8741815f | 84 | /// Number of events seen |
85 | Int_t NumberOfEvents() const { return fNumberOfEvents; } | |
86 | ||
49419555 | 87 | virtual Long64_t Merge(TCollection* list); |
88 | ||
515cc5b5 | 89 | void SetRawReader(AliRawReader* rawReader); |
90 | ||
8741815f | 91 | private: |
92 | /// Not implemented | |
93 | AliMUONTrackerCalibratedDataMaker(const AliMUONTrackerCalibratedDataMaker& rhs); | |
94 | /// Not implemented | |
95 | AliMUONTrackerCalibratedDataMaker& operator=(const AliMUONTrackerCalibratedDataMaker& rhs); | |
96 | ||
515cc5b5 | 97 | void Ctor(Int_t runNumber, const char* calibMode, |
98 | Bool_t histogram, Double_t xmin, Double_t xmax); | |
8741815f | 99 | |
100 | private: | |
515cc5b5 | 101 | AliRawReader* fRawReader; //!< reader of the data |
102 | Bool_t fIsOwnerOfRawReader; //!< whether we must delete fRawReader or not | |
49419555 | 103 | AliMUONVTrackerData* fAccumulatedData; ///< data (owner) |
8741815f | 104 | AliMUONVStore* fOneEventData; ///< data for one event (owner) |
8741815f | 105 | TString fSource; ///< where the data comes from |
106 | Bool_t fIsRunning; ///< whether we are running or are paused | |
49419555 | 107 | AliMUONDigitCalibrator* fDigitCalibrator; //!< digit calibrator (if calibrating data) |
8741815f | 108 | AliMUONCalibrationData* fCalibrationData; ///< calibration data (if calibrating data) |
8741815f | 109 | TString fCDBPath; ///< OCDB path (if calibrating data) |
110 | Int_t fNumberOfEvents; ///< number of events seen | |
515cc5b5 | 111 | Bool_t fUseHPDecoder; ///< whether to use High Performance decoder or not |
8741815f | 112 | static Int_t fgkCounter; ///< to count the number of instances |
113 | ||
515cc5b5 | 114 | ClassDef(AliMUONTrackerCalibratedDataMaker,3) // Producer of calibrated AliMUONVTrackerData from raw data |
8741815f | 115 | }; |
116 | ||
117 | #endif |