X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONVTrackerDataMaker.h;h=bbd783730e546060cc8da9fe469ab1e61938d19f;hb=f24c7cc88103d0edad977095c8dbcb046b8476e2;hp=807ea681b6bdea337410ca516bfa368f2f71ae00;hpb=9016a84e6d7d558ebbbd3ad2ce2fa817c5e86940;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONVTrackerDataMaker.h b/MUON/AliMUONVTrackerDataMaker.h index 807ea681b6b..bbd783730e5 100644 --- a/MUON/AliMUONVTrackerDataMaker.h +++ b/MUON/AliMUONVTrackerDataMaker.h @@ -6,7 +6,7 @@ // $Id$ -/// \ingroup graphics +/// \ingroup rec /// \class AliMUONVTrackerDataMaker /// \brief Producer of some AliMUONVTrackerData /// @@ -17,6 +17,7 @@ #endif class AliMUONVTrackerData; +class TCollection; class AliMUONVTrackerDataMaker : public TObject { @@ -36,23 +37,35 @@ public: /// Whether we are running (must be false if IsRunnable is false) virtual Bool_t IsRunning() const = 0; + /// Whether we're only handling event-by-event data (i.e. no accumulation) + virtual Bool_t IsEventByEvent() const { return kFALSE; } + + /// Set event-by-event mode + virtual void SetEventByEvent(Bool_t /*flag*/) { } + /// Set the running state (no effect if not runnable) virtual void SetRunning(Bool_t flag) = 0; - /// Advance to next event (no effect if not runnable) - virtual Bool_t NextEvent() = 0; + /// Process current event + virtual Bool_t ProcessEvent() = 0; + + /// Advance to next event and process it (no effect if not runnable) + virtual Bool_t NextEvent() { return ProcessEvent(); } /// Rewind events (no effect if not runnable) virtual void Rewind() = 0; - /// Whether we're owner of our data - virtual void SetOwner(Bool_t flag) = 0; - /// Set our source URI virtual void SetSource(const char* source) = 0; /// Get our source URI virtual TString Source() const = 0; + + /// Get the number of events we have seen (but not necessarily used...) + virtual Int_t NumberOfEvents() const = 0; + + /// Merge + virtual Long64_t Merge(TCollection* list) = 0; ClassDef(AliMUONVTrackerDataMaker,1) // Producer of AliMUONVTrackerData };