X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ANALYSIS%2FEventMixing%2FAliMixEventInputHandler.h;h=8fb4920c6f6839891af59a2b523a0aed9d367dc2;hb=35e08f928f172abada88b01753cc4b8e7040922f;hp=b17de59b7232c879b8428a7c2594a564f84d09e9;hpb=7b686344daf861ec27794e1ed78a2cc3505f33f5;p=u%2Fmrichter%2FAliRoot.git diff --git a/ANALYSIS/EventMixing/AliMixEventInputHandler.h b/ANALYSIS/EventMixing/AliMixEventInputHandler.h index b17de59b723..8fb4920c6f6 100644 --- a/ANALYSIS/EventMixing/AliMixEventInputHandler.h +++ b/ANALYSIS/EventMixing/AliMixEventInputHandler.h @@ -3,7 +3,7 @@ // // Mixing input handler prepare N events before UserExec // TODO example -// author: +// author: // Martin Vala (martin.vala@cern.ch) // @@ -21,45 +21,45 @@ class AliMixInputHandlerInfo; class AliMixEventInputHandler : public AliInputEventHandler { public: - AliMixEventInputHandler(const Int_t size=1); - virtual ~AliMixEventInputHandler() {;}; - - // From the interface - virtual Bool_t Init(Option_t* opt /*opt*/); - virtual Bool_t Init(TTree* tree, Option_t* /*opt*/); - virtual Bool_t BeginEvent(Long64_t entry /*entry*/); - virtual Bool_t GetEntry(); - virtual Bool_t FinishEvent(); - virtual Bool_t Notify(); - virtual Bool_t Notify(const char *path); + AliMixEventInputHandler(const Int_t size=1); + virtual ~AliMixEventInputHandler() {;}; - - void SetInputHandlerForMixing(const AliInputEventHandler * const inHandler); - void SetEventPool(AliMixEventPool * const evPool) {fEventPool = evPool;} - - AliInputEventHandler * InputEventHandler(const Int_t index); - AliMixEventPool *GetEventPool() const { return fEventPool;} - Int_t BufferSize() const {return fBufferSize;} - Int_t MixedEventNumber() const {return fMixEventNumber;} - Long64_t EntryAll() const { return fEntryCounter;} + // From the interface + virtual Bool_t Init(Option_t *opt /*opt*/); + virtual Bool_t Init(TTree *tree, Option_t* /*opt*/); + virtual Bool_t BeginEvent(Long64_t entry /*entry*/); + virtual Bool_t GetEntry(); + virtual Bool_t FinishEvent(); + virtual Bool_t Notify(); + virtual Bool_t Notify(const char *path); + + + void SetInputHandlerForMixing(const AliInputEventHandler *const inHandler); + void SetEventPool(AliMixEventPool *const evPool) {fEventPool = evPool;} + + AliInputEventHandler *InputEventHandler(const Int_t index); + AliMixEventPool *GetEventPool() const { return fEventPool;} + Int_t BufferSize() const {return fBufferSize;} + Int_t MixedEventNumber() const {return fMixEventNumber;} + Long64_t EntryAll() const { return fEntryCounter;} protected: - - Int_t fBufferSize; // Size of the buffer - TObjArray fInputHandlers; // buffer of input handlers - TObjArray fMixTrees; // buffer of input handlers - TArrayI fTreeMap; // tree map - AliMixInputHandlerInfo *fMixIntupHandlerInfoTmp; //! mix input handler info full chain - Long64_t fEntryCounter; // entry counter - AliMixEventPool *fEventPool; // event pool - - Int_t fMixEventNumber; // number mix - + + Int_t fBufferSize; // Size of the buffer + TObjArray fInputHandlers; // buffer of input handlers + TObjArray fMixTrees; // buffer of input handlers + TArrayI fTreeMap; // tree map + AliMixInputHandlerInfo *fMixIntupHandlerInfoTmp; //! mix input handler info full chain + Long64_t fEntryCounter; // entry counter + AliMixEventPool *fEventPool; // event pool + + Int_t fMixEventNumber; // number mix + private: - AliMixEventInputHandler(const AliMixEventInputHandler& handler); - AliMixEventInputHandler& operator=(const AliMixEventInputHandler& handler); + AliMixEventInputHandler(const AliMixEventInputHandler &handler); + AliMixEventInputHandler &operator=(const AliMixEventInputHandler &handler); - ClassDef(AliMixEventInputHandler, 1) + ClassDef(AliMixEventInputHandler, 1) }; #endif