X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONTrackerDataMaker.h;h=30b95c183e04818540ba57b5a8e3464e61d87cb0;hb=fd245273e3e399717bfce498e96d6a4d122671f4;hp=2a07df9e1d2502ff254cd7ebca7ded2383efc730;hpb=64c2397e2d714a7b28efda2f2c5c283f19e40a4e;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONTrackerDataMaker.h b/MUON/AliMUONTrackerDataMaker.h index 2a07df9e1d2..30b95c183e0 100644 --- a/MUON/AliMUONTrackerDataMaker.h +++ b/MUON/AliMUONTrackerDataMaker.h @@ -61,6 +61,9 @@ public: /// Get our accumulated data AliMUONVTrackerData* Data() const { return fAccumulatedData; } + /// Whether or not we're the owner of our fAccumulatedData + void SetOwnerOfData(Bool_t flag) { fIsOwnerOfAccumulatedData = flag; } + /// Whether we're only handling event-by-event data (i.e. no accumulation) Bool_t IsEventByEvent() const { return fIsEventByEvent; } @@ -92,13 +95,29 @@ public: /// Number of events seen Int_t NumberOfEvents() const { return fNumberOfEvents; } - + + /// Number of physics events seen + Int_t NumberOfPhysicsEvents() const { return fNumberOfPhysicsEvents; } + + /// Number of good physics events seen + Int_t NumberOfGoodPhysicsEvents() const { return fNumberOfGoodPhysicsEvents; } + Long64_t Merge(TCollection* li); void SetRawReader(AliRawReader* rawReader); + /// Set the error logger void EnableErrorLogger(AliMUONLogger* logger) { fLogger = logger; } + /// Whether last decoded event was empty + Bool_t LastEventWasEmpty() const { return fLastEventWasEmpty; } + + /// Whether or not we should try to recover corrupted raw data + void SetTryRecover(Bool_t flag) { fTryRecover = flag; } + + /// Set the event range to consider + void SetEventRange(Int_t first, Int_t last) { fFirstEvent=first; fLastEvent=last; } + private: /// not implemented AliMUONTrackerDataMaker(const AliMUONTrackerDataMaker& rhs); @@ -114,7 +133,8 @@ private: private: AliRawReader* fRawReader; //!< reader of the data (owner or not) - AliMUONVTrackerData* fAccumulatedData; ///< data (owner) + AliMUONVTrackerData* fAccumulatedData; ///< data (owner or not) + Bool_t fIsOwnerOfAccumulatedData; ///< owner or not of fAccumulatedData AliMUONVStore* fOneEventData; ///< data for a single event (owner) AliMUONDigitCalibrator* fDigitCalibrator; //!< digit calibrator (if calibrating) AliMUONCalibrationData* fCalibrationData; ///< calibration data (if calibrating) @@ -127,8 +147,14 @@ private: Bool_t fIsEventByEvent; ///< we only keep one event's data (no accumulation) static Int_t fgkCounter; ///< to count the number of instances AliMUONLogger* fLogger; ///< error logger (not owner) - - ClassDef(AliMUONTrackerDataMaker,2) // Producer of AliMUONVTrackerData from raw + Bool_t fLastEventWasEmpty; ///< whether last decoded event was empty + Int_t fNumberOfPhysicsEvents; ///< number of physics events seen + Int_t fNumberOfGoodPhysicsEvents; ///< number of errors with no (fatal) readout error + Bool_t fTryRecover; ///< whether we should try to recover corrupted raw data + Int_t fFirstEvent; ///< first event to consider + Int_t fLastEvent; ///< last event to consider + + ClassDef(AliMUONTrackerDataMaker,5) // Producer of AliMUONVTrackerData from raw }; #endif