AliRoot Core  3dc7879 (3dc7879)
AliMultiEventInputHandler Class Reference

Multi VEvent Input Handler realisation of the AliVEventHandler interface. More...

#include <AliMultiEventInputHandler.h>

Inheritance diagram for AliMultiEventInputHandler:

Public Member Functions

 AliMultiEventInputHandler ()
 
 AliMultiEventInputHandler (Int_t size, Int_t format=1)
 
 AliMultiEventInputHandler (const char *name, const char *title, Int_t size, Int_t format=1)
 
virtual ~AliMultiEventInputHandler ()
 
void SetBufferSize (Int_t size)
 
void SetEventPool (AliVEventPool *pool)
 
Int_t GetBufferSize () const
 
Int_t GetNBuffered () const
 
Bool_t IsBufferReady () const
 
Bool_t IsFreshBuffer () const
 
AliVEventPoolGetEventPool () const
 
virtual AliVEventGetEvent () const
 
virtual AliVEventGetEvent (Int_t iev) const
 
AliVEventGetLatestEvent () const
 
Int_t GetFormat ()
 
void EventSkipped ()
 
virtual Bool_t Init (Option_t *)
 
virtual Bool_t Init (TTree *tree, Option_t *)
 
virtual Bool_t FinishEvent ()
 
virtual Bool_t BeginEvent (Long64_t)
 
virtual Bool_t Notify ()
 
virtual Bool_t Notify (const char *)
 
- Public Member Functions inherited from AliInputEventHandler
 AliInputEventHandler ()
 
 AliInputEventHandler (const char *name, const char *title)
 
virtual ~AliInputEventHandler ()
 
virtual void SetInputFileName (const char *fname)
 
virtual const char * GetInputFileName () const
 
virtual void SetOutputFileName (const char *)
 
virtual const char * GetOutputFileName () const
 
virtual Bool_t GetEntry ()
 
virtual Bool_t NeedField () const
 
virtual Bool_t Terminate ()
 
virtual Bool_t TerminateIO ()
 
virtual void SetInputTree (TTree *tree)
 
virtual void SetEventSelection (AliVCuts *cuts)
 
virtual void SetUserCallSelectionMask (Bool_t flag=kTRUE)
 
virtual void SetCheckStatistics (Bool_t flag=kTRUE)
 
virtual void SetNeedField (Bool_t flag=kTRUE)
 
void SetInactiveBranches (const char *branches)
 
void SetActiveBranches (const char *branches)
 
virtual const AliEventTagGetEventTag () const
 
virtual AliRunTagGetRunTag () const
 
virtual TObject * GetStatistics (Option_t *option="") const
 
virtual Option_t * GetAnalysisType () const
 
virtual TTree * GetTree () const
 
virtual AliVCutsGetEventSelection () const
 
virtual Long64_t GetReadEntry () const
 
virtual Bool_t IsCheckStatistics () const
 
virtual Bool_t IsUserCallSelectionMask () const
 
virtual Bool_t NewEvent ()
 
virtual UInt_t IsEventSelected ()
 
virtual AliMCEventMCEvent () const
 
TList * GetUserInfo () const
 
void SetMixingHandler (AliInputEventHandler *mixing)
 
AliInputEventHandlerMixingHandler ()
 
void SetParentHandler (AliInputEventHandler *parent)
 
AliInputEventHandlerParentHandler ()
 
virtual AliPIDResponseGetPIDResponse ()
 
virtual void CreatePIDResponse (Bool_t=kFALSE)
 
- Public Member Functions inherited from AliVEventHandler
 AliVEventHandler ()
 
 AliVEventHandler (const char *name, const char *title)
 
virtual ~AliVEventHandler ()
 
virtual Option_t * GetDataType () const
 
virtual Bool_t GetFillAOD () const
 
virtual Bool_t GetFillExtension () const
 
virtual void SetFillAOD (Bool_t)
 
virtual void SetFillExtension (Bool_t)
 
virtual const char * GetExtraOutputs (Bool_t merge=kFALSE) const
 
Bool_t IsLocked () const
 
void Lock ()
 
void UnLock ()
 
void Changed ()
 
virtual void SetCacheSize (Long64_t)
 
virtual Bool_t InitTaskInputData (AliVEvent *, AliVfriendEvent *, TObjArray *)
 
virtual AliVfriendEventGetVfriendEvent () const
 

Private Member Functions

 AliMultiEventInputHandler (const AliMultiEventInputHandler &handler)
 
AliMultiEventInputHandleroperator= (const AliMultiEventInputHandler &handler)
 

Private Attributes

Int_t fBufferSize
 Size of the buffer. More...
 
Int_t fFormat
 0: ESD 1: AOD More...
 
Int_t fNBuffered
 Number of events actually buffered. More...
 
Int_t fIndex
 Pointer to most recent event. More...
 
Int_t fCurrentBin
 Current bin from the pool. More...
 
Int_t fCurrentEvt
 Current event. More...
 
Bool_t fInit
 Current event. More...
 
AliVEventPoolfEventPool
 Pointer to the pool. More...
 
AliVEvent ** fEventBuffer
 ! The event buffer More...
 
Bool_t fEventSkipped
 User requires event to be skip. More...
 

Additional Inherited Members

- Public Types inherited from AliInputEventHandler
enum  EInputHandlerFlags { kUserCallSelectionMask = BIT(14), kCheckStatistics = BIT(15), kNeedField = BIT(16) }
 
- Public Types inherited from AliVEventHandler
enum  EEventHandlerFlags { kHandlerLocked = BIT(14) }
 
- Protected Member Functions inherited from AliInputEventHandler
void SwitchOffBranches () const
 
void SwitchOnBranches () const
 
- Protected Attributes inherited from AliInputEventHandler
TTree * fTree
 
TString fBranches
 Pointer to the tree. More...
 
TString fBranchesOn
 
TString fInputFileName
 
Bool_t fNewEvent
 
AliVCutsfEventCuts
 
UInt_t fIsSelectedResult
 
AliInputEventHandlerfMixingHandler
 
AliInputEventHandlerfParentHandler
 
TList * fUserInfo
 

Detailed Description

Multi VEvent Input Handler realisation of the AliVEventHandler interface.

This class handles multiple events for mixing.

Author
Andreas Morsch, CERN

Definition at line 17 of file AliMultiEventInputHandler.h.

Constructor & Destructor Documentation

AliMultiEventInputHandler::AliMultiEventInputHandler ( )

Definition at line 31 of file AliMultiEventInputHandler.cxx.

Referenced by Notify().

AliMultiEventInputHandler::AliMultiEventInputHandler ( Int_t  size,
Int_t  format = 1 
)

constructor

Definition at line 48 of file AliMultiEventInputHandler.cxx.

AliMultiEventInputHandler::AliMultiEventInputHandler ( const char *  name,
const char *  title,
Int_t  size,
Int_t  format = 1 
)

Constructor

Definition at line 66 of file AliMultiEventInputHandler.cxx.

AliMultiEventInputHandler::~AliMultiEventInputHandler ( )
virtual

Destructor

Definition at line 84 of file AliMultiEventInputHandler.cxx.

AliMultiEventInputHandler::AliMultiEventInputHandler ( const AliMultiEventInputHandler handler)
private

Member Function Documentation

Bool_t AliMultiEventInputHandler::BeginEvent ( Long64_t  )
virtual

Actions before analysis of each event

Reset the number of events buffered for this bin to 0

Reimplemented from AliInputEventHandler.

Definition at line 137 of file AliMultiEventInputHandler.cxx.

Referenced by Init().

void AliMultiEventInputHandler::EventSkipped ( )
inline

Definition at line 35 of file AliMultiEventInputHandler.h.

Referenced by AliAnalysisTaskME::Exec().

Bool_t AliMultiEventInputHandler::FinishEvent ( )
virtual

Connect the next event in the buffer to the tree

Reimplemented from AliInputEventHandler.

Definition at line 160 of file AliMultiEventInputHandler.cxx.

Referenced by Init().

Int_t AliMultiEventInputHandler::GetBufferSize ( ) const
inline

Definition at line 26 of file AliMultiEventInputHandler.h.

Referenced by AliAnalysisTaskPhiCorr::UserExec().

virtual AliVEvent* AliMultiEventInputHandler::GetEvent ( ) const
inlinevirtual

Reimplemented from AliInputEventHandler.

Definition at line 31 of file AliMultiEventInputHandler.h.

Referenced by AliAnalysisTaskME::GetEvent().

AliVEvent * AliMultiEventInputHandler::GetEvent ( Int_t  iev) const
virtual

Get event number iev from buffer

Definition at line 194 of file AliMultiEventInputHandler.cxx.

AliVEventPool* AliMultiEventInputHandler::GetEventPool ( ) const
inline

Definition at line 30 of file AliMultiEventInputHandler.h.

Referenced by AliAnalysisTaskME::ConnectInputData().

Int_t AliMultiEventInputHandler::GetFormat ( )
inline

Definition at line 34 of file AliMultiEventInputHandler.h.

AliVEvent* AliMultiEventInputHandler::GetLatestEvent ( ) const
inline

Definition at line 33 of file AliMultiEventInputHandler.h.

Referenced by GetEvent().

Int_t AliMultiEventInputHandler::GetNBuffered ( ) const
inline

Definition at line 27 of file AliMultiEventInputHandler.h.

virtual Bool_t AliMultiEventInputHandler::Init ( Option_t *  )
inlinevirtual

Reimplemented from AliInputEventHandler.

Definition at line 37 of file AliMultiEventInputHandler.h.

Bool_t AliMultiEventInputHandler::Init ( TTree *  tree,
Option_t *   
)
virtual

Initialisation necessary for each new tree

Reimplemented from AliInputEventHandler.

Definition at line 90 of file AliMultiEventInputHandler.cxx.

Bool_t AliMultiEventInputHandler::IsBufferReady ( ) const
inline

Definition at line 28 of file AliMultiEventInputHandler.h.

Referenced by AliAnalysisTaskME::Exec().

Bool_t AliMultiEventInputHandler::IsFreshBuffer ( ) const
inline

Definition at line 29 of file AliMultiEventInputHandler.h.

Referenced by AliAnalysisTaskME::Exec().

virtual Bool_t AliMultiEventInputHandler::Notify ( )
inlinevirtual

Reimplemented from AliInputEventHandler.

Definition at line 41 of file AliMultiEventInputHandler.h.

Bool_t AliMultiEventInputHandler::Notify ( const char *  )
virtual

Connect to new tree

Reimplemented from AliInputEventHandler.

Definition at line 120 of file AliMultiEventInputHandler.cxx.

AliMultiEventInputHandler& AliMultiEventInputHandler::operator= ( const AliMultiEventInputHandler handler)
private

Referenced by Notify().

void AliMultiEventInputHandler::SetBufferSize ( Int_t  size)
inline

Definition at line 24 of file AliMultiEventInputHandler.h.

void AliMultiEventInputHandler::SetEventPool ( AliVEventPool pool)
inline

Member Data Documentation

Int_t AliMultiEventInputHandler::fBufferSize
private

Size of the buffer.

Definition at line 47 of file AliMultiEventInputHandler.h.

Referenced by FinishEvent(), GetBufferSize(), GetEvent(), Init(), IsBufferReady(), IsFreshBuffer(), and SetBufferSize().

Int_t AliMultiEventInputHandler::fCurrentBin
private

Current bin from the pool.

Definition at line 51 of file AliMultiEventInputHandler.h.

Referenced by BeginEvent().

Int_t AliMultiEventInputHandler::fCurrentEvt
private

Current event.

Definition at line 52 of file AliMultiEventInputHandler.h.

Referenced by FinishEvent(), and Notify().

AliVEvent** AliMultiEventInputHandler::fEventBuffer
private

! The event buffer

Definition at line 55 of file AliMultiEventInputHandler.h.

Referenced by BeginEvent(), FinishEvent(), GetEvent(), GetLatestEvent(), Init(), and Notify().

AliVEventPool* AliMultiEventInputHandler::fEventPool
private

Pointer to the pool.

Definition at line 54 of file AliMultiEventInputHandler.h.

Referenced by BeginEvent(), GetEventPool(), and SetEventPool().

Bool_t AliMultiEventInputHandler::fEventSkipped
private

User requires event to be skip.

Definition at line 56 of file AliMultiEventInputHandler.h.

Referenced by EventSkipped(), and FinishEvent().

Int_t AliMultiEventInputHandler::fFormat
private

0: ESD 1: AOD

Definition at line 48 of file AliMultiEventInputHandler.h.

Referenced by BeginEvent(), GetFormat(), and Init().

Int_t AliMultiEventInputHandler::fIndex
private

Pointer to most recent event.

Definition at line 50 of file AliMultiEventInputHandler.h.

Referenced by BeginEvent(), FinishEvent(), GetEvent(), GetLatestEvent(), Init(), and IsFreshBuffer().

Bool_t AliMultiEventInputHandler::fInit
private

Current event.

Definition at line 53 of file AliMultiEventInputHandler.h.

Referenced by Init(), and Notify().

Int_t AliMultiEventInputHandler::fNBuffered
private

Number of events actually buffered.

Definition at line 49 of file AliMultiEventInputHandler.h.

Referenced by BeginEvent(), FinishEvent(), GetNBuffered(), Init(), and IsBufferReady().


The documentation for this class was generated from the following files: