1 #ifndef ALIMUONTRACKERRAWDATAMAKER_H
2 #define ALIMUONTRACKERRAWDATAMAKER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONTrackerRawDataMaker
11 /// \brief Creator of AliMUONVTrackerData from AliRawReader
13 // Author Laurent Aphecetche, Subatech
15 #ifndef ALIMUONVTRACKERDATAMAKER_H
16 # include "AliMUONVTrackerDataMaker.h"
23 class AliMUONCalibrationData;
24 class AliMUONDigitCalibrator;
25 class AliMUONDigitMaker;
26 class AliMUONVTrackerData;
28 class AliMUONVDigitStore;
30 class AliMUONTrackerRawDataMaker : public AliMUONVTrackerDataMaker
33 AliMUONTrackerRawDataMaker(AliRawReader* reader = 0x0, const char* cdbpath=0x0);
34 virtual ~AliMUONTrackerRawDataMaker();
36 /// Whether we have a valid raw reader
37 Bool_t IsValid() const { return fRawReader != 0x0; }
40 AliMUONVTrackerData* Data() const { return fAccumulatedData; }
43 virtual Bool_t IsRunnable() const { return kTRUE; }
45 /// Whether we are running or not
46 virtual Bool_t IsRunning() const { return fIsRunning; }
48 /// Set the running status
49 virtual void SetRunning(Bool_t flag) { fIsRunning = flag; }
53 void Print(Option_t* opt="") const;
57 /// Tell if we are owner of our data or not
58 void SetOwner(Bool_t flag) { fIsOwner = flag; }
60 /// Get our source URI
61 virtual TString Source() const { return fSource.Data(); }
63 /// Set our source URI
64 void SetSource(const char* source) { fSource = source; }
66 /// Get our digit store
67 AliMUONVDigitStore* DigitStore() const { return fDigitStore; }
71 AliMUONTrackerRawDataMaker(const AliMUONTrackerRawDataMaker& rhs);
73 AliMUONTrackerRawDataMaker& operator=(const AliMUONTrackerRawDataMaker& rhs);
78 AliRawReader* fRawReader; ///< reader of the data (owner)
79 AliMUONVTrackerData* fAccumulatedData; ///< data (owner if fIsOwner==kTRUE)
80 AliMUONVStore* fOneEventData; ///< data for one event (owner)
81 Bool_t fIsOwner; ///< whether we are owner of our data or not
82 TString fSource; ///< where the data comes from
83 Bool_t fIsRunning; ///< whether we are running or are paused
84 AliMUONDigitMaker* fDigitMaker; ///< digit maker
85 AliMUONDigitCalibrator* fDigitCalibrator; ///< digit calibrator (if calibrating data)
86 AliMUONCalibrationData* fCalibrationData; ///< calibration data (if calibrating data)
87 AliMUONVDigitStore* fDigitStore; ///< digit store (if calibrating data)
88 TString fCDBPath; ///< OCDB path (if calibrating data)
89 static Int_t fgkCounter; ///< to count the number of instances
91 ClassDef(AliMUONTrackerRawDataMaker,1) // Producer of AliMUONVTrackerData from raw data