AliPhysics  e9ca8a5 (e9ca8a5)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMCAuxHandler Class Reference

#include <AliMCAuxHandler.h>

Inheritance diagram for AliMCAuxHandler:

Public Member Functions

 AliMCAuxHandler (const char *name="FMD", const char *clsName="AliFMDHit", AliMCEventHandler *parent=0)
 
virtual ~AliMCAuxHandler ()
 
AliMCEventHandler * GetParent ()
 
virtual TTreeGetTree () const
 
TClonesArray * GetArray () const
 
Int_t GetNEntry () const
 
TClonesArray * GetEntryArray (Int_t entry)
 
Interface member functions
virtual Bool_t Init (TTree *t, Option_t *o)
 
virtual Bool_t Init (Option_t *opt)
 
virtual Bool_t BeginEvent (Long64_t entry)
 
virtual Bool_t Notify ()
 
virtual Bool_t Notify (const char *path)
 
virtual Bool_t FinishEvent ()
 
virtual Bool_t Terminate ()
 
virtual Bool_t TerminateIO ()
 
virtual void ResetIO ()
 
virtual Bool_t LoadEvent (Int_t iev)
 
virtual void SetNumberOfEventsInContainer (Int_t nev)
 
virtual Bool_t OpenFile (Int_t ev)
 

Static Public Member Functions

static AliMCAuxHandlerCreate (const char *name="FMD", const char *what="Hits")
 
static TClonesArray * GetParticleArray (AliMCAuxHandler *handler, Int_t particle)
 

Protected Member Functions

 AliMCAuxHandler (const AliMCAuxHandler &o)
 
AliMCAuxHandleroperator= (const AliMCAuxHandler &o)
 
TStringGetParentPath () const
 
 ClassDef (AliMCAuxHandler, 1)
 

Protected Attributes

AliMCEventHandler * fParent
 
TFile * fFile
 
TTreefTree
 
TDirectory * fDir
 
TClonesArray * fArray
 
Int_t fNEvents
 
Int_t fNEventsPerFile
 
Int_t fNEventsInContainer
 
Int_t fEvent
 
Int_t fFileNumber
 
TString fTreeName
 
TString fFileBase
 

Detailed Description

This class defines an input handler for simulated data which will connect the FMD Hit tree. It is intended to be added to the global MC input handler using AliMCEventHandler::AddSubsidiaryHandler

Definition at line 22 of file AliMCAuxHandler.h.

Constructor & Destructor Documentation

AliMCAuxHandler::AliMCAuxHandler ( const char *  name = "FMD",
const char *  clsName = "AliFMDHit",
AliMCEventHandler *  parent = 0 
)

Constructor

Parameters
nameName
clsNameClass name of hits
parentParent event handler

Referenced by Create().

virtual AliMCAuxHandler::~AliMCAuxHandler ( )
inlinevirtual

Destructor

Definition at line 36 of file AliMCAuxHandler.h.

AliMCAuxHandler::AliMCAuxHandler ( const AliMCAuxHandler o)
inlineprotected

Copy constructor

Parameters
oObject to copy from

Definition at line 186 of file AliMCAuxHandler.h.

Member Function Documentation

Bool_t AliMCAuxHandler::BeginEvent ( Long64_t  entry)
virtual

Called at the beginning of an event

Parameters
entryEntry in tree
Returns
true on success

Definition at line 121 of file AliMCAuxHandler.cxx.

AliMCAuxHandler::ClassDef ( AliMCAuxHandler  ,
 
)
protected
AliMCAuxHandler * AliMCAuxHandler::Create ( const char *  name = "FMD",
const char *  what = "Hits" 
)
static

Static member function to create and attach this handler

Parameters
nameName of the handler
whatWhat to get
Returns
Newly allocated handler or null

Definition at line 315 of file AliMCAuxHandler.cxx.

Referenced by AliFMDMCHitEnergyFitterTask::Book().

Bool_t AliMCAuxHandler::FinishEvent ( )
virtual

Called at the end of an event

Returns
true on success

Definition at line 173 of file AliMCAuxHandler.cxx.

TClonesArray* AliMCAuxHandler::GetArray ( ) const
inline

Get array of hits

Returns
Array of hits

Definition at line 145 of file AliMCAuxHandler.h.

Referenced by GetParticleArray().

TClonesArray * AliMCAuxHandler::GetEntryArray ( Int_t  entry)

Get array of track-refs for an entry

Parameters
entryEntry number
Returns
Array

Definition at line 296 of file AliMCAuxHandler.cxx.

Referenced by AliFMDMCHitEnergyFitter::Event().

Int_t AliMCAuxHandler::GetNEntry ( ) const

Get the number of entries

Returns
Entries in array

Definition at line 288 of file AliMCAuxHandler.cxx.

Referenced by AliFMDMCHitEnergyFitter::Event().

AliMCEventHandler* AliMCAuxHandler::GetParent ( )
inline

Get the parent handler

Returns
Parent handler

Definition at line 133 of file AliMCAuxHandler.h.

Referenced by GetParticleArray().

TString * AliMCAuxHandler::GetParentPath ( ) const
protected

Get the parent path

Returns
Parent path

Definition at line 43 of file AliMCAuxHandler.cxx.

Referenced by OpenFile(), and ResetIO().

TClonesArray * AliMCAuxHandler::GetParticleArray ( AliMCAuxHandler handler,
Int_t  particle 
)
static

Static member function to get the kinamtics array

Parameters
handlerUnput handler
particleParticle number
Returns
Array of hits

Definition at line 345 of file AliMCAuxHandler.cxx.

virtual TTree* AliMCAuxHandler::GetTree ( ) const
inlinevirtual

Get the tree

Returns
The connected hits tree

Definition at line 139 of file AliMCAuxHandler.h.

Referenced by GetParticleArray().

virtual Bool_t AliMCAuxHandler::Init ( TTree t,
Option_t o 
)
inlinevirtual

Intialize

Parameters
tNot used
oNot used
Returns
always true

Definition at line 49 of file AliMCAuxHandler.h.

Bool_t AliMCAuxHandler::Init ( Option_t opt)
virtual

Initialize the input

Parameters
optOptions
Returns
true on success

Definition at line 54 of file AliMCAuxHandler.cxx.

Bool_t AliMCAuxHandler::LoadEvent ( Int_t  iev)
virtual

Load an event

Parameters
ievEvent number
Returns
true on success

Definition at line 251 of file AliMCAuxHandler.cxx.

Referenced by BeginEvent().

virtual Bool_t AliMCAuxHandler::Notify ( )
inlinevirtual

Called when the input file is changed

Returns
true on success

Definition at line 71 of file AliMCAuxHandler.h.

Bool_t AliMCAuxHandler::Notify ( const char *  path)
virtual

Called when the input file is changed

Parameters
pathNew path
Returns
true on success

Definition at line 160 of file AliMCAuxHandler.cxx.

Bool_t AliMCAuxHandler::OpenFile ( Int_t  ev)
virtual

Open a file

Parameters
evevent number
Returns
true on success

Definition at line 222 of file AliMCAuxHandler.cxx.

Referenced by Init(), and LoadEvent().

AliMCAuxHandler& AliMCAuxHandler::operator= ( const AliMCAuxHandler o)
inlineprotected

Assignment operator

Parameters
oObject to assign from
Returns
reference to this object

Definition at line 208 of file AliMCAuxHandler.h.

void AliMCAuxHandler::ResetIO ( )
virtual

Reset the I/O

Definition at line 204 of file AliMCAuxHandler.cxx.

virtual void AliMCAuxHandler::SetNumberOfEventsInContainer ( Int_t  nev)
inlinevirtual

Set the number of events in the container

Parameters
nevNumber of events

Definition at line 116 of file AliMCAuxHandler.h.

Bool_t AliMCAuxHandler::Terminate ( )
virtual

Called at the end of a job

Returns
true on success

Definition at line 183 of file AliMCAuxHandler.cxx.

Bool_t AliMCAuxHandler::TerminateIO ( )
virtual

Called at the end of a sub-job

Returns
true on success

Definition at line 193 of file AliMCAuxHandler.cxx.

Member Data Documentation

TClonesArray* AliMCAuxHandler::fArray
protected

Definition at line 227 of file AliMCAuxHandler.h.

Referenced by GetArray(), GetEntryArray(), Init(), and LoadEvent().

TDirectory* AliMCAuxHandler::fDir
protected

Definition at line 226 of file AliMCAuxHandler.h.

Referenced by LoadEvent().

Int_t AliMCAuxHandler::fEvent
protected

Definition at line 231 of file AliMCAuxHandler.h.

Referenced by BeginEvent(), and Init().

TFile* AliMCAuxHandler::fFile
protected

Definition at line 224 of file AliMCAuxHandler.h.

Referenced by LoadEvent(), OpenFile(), operator=(), and ResetIO().

TString AliMCAuxHandler::fFileBase
protected

Definition at line 234 of file AliMCAuxHandler.h.

Referenced by Init(), and OpenFile().

Int_t AliMCAuxHandler::fFileNumber
protected

Definition at line 232 of file AliMCAuxHandler.h.

Referenced by Init(), and LoadEvent().

Int_t AliMCAuxHandler::fNEvents
protected

Definition at line 228 of file AliMCAuxHandler.h.

Referenced by BeginEvent(), and Init().

Int_t AliMCAuxHandler::fNEventsInContainer
protected

Definition at line 230 of file AliMCAuxHandler.h.

Referenced by SetNumberOfEventsInContainer().

Int_t AliMCAuxHandler::fNEventsPerFile
protected

Definition at line 229 of file AliMCAuxHandler.h.

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

AliMCEventHandler* AliMCAuxHandler::fParent
protected

Definition at line 223 of file AliMCAuxHandler.h.

Referenced by BeginEvent(), GetParent(), GetParentPath(), Init(), and operator=().

TTree* AliMCAuxHandler::fTree
protected

Definition at line 225 of file AliMCAuxHandler.h.

Referenced by GetEntryArray(), GetNEntry(), GetTree(), LoadEvent(), and operator=().

TString AliMCAuxHandler::fTreeName
protected

Definition at line 233 of file AliMCAuxHandler.h.

Referenced by Init(), and LoadEvent().


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