AliPhysics  b76e98e (b76e98e)
AliFMDMCHitHandler Class Reference

#include <AliFMDMCHitHandler.h>

Inheritance diagram for AliFMDMCHitHandler:

Public Member Functions

 AliFMDMCHitHandler (const char *name="FMD", const char *clsName="AliFMDHit", AliMCEventHandler *parent=0)
 
virtual ~AliFMDMCHitHandler ()
 
AliMCEventHandler * GetParent ()
 
virtual TTreeGetTree () const
 
TClonesArray * GetArray ()
 
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 AliFMDMCHitHandlerCreate (const char *name="FMD", const char *what="Hits")
 
static TClonesArray * GetParticleArray (AliFMDMCHitHandler *handler, Int_t particle)
 

Protected Member Functions

 AliFMDMCHitHandler (const AliFMDMCHitHandler &o)
 
AliFMDMCHitHandleroperator= (const AliFMDMCHitHandler &o)
 
TStringGetParentPath () const
 

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 AliFMDMCHitHandler.h.

Constructor & Destructor Documentation

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

Constructor

Parameters
nameName
clsNameClass name of hits
parentParent event handler

Definition at line 17 of file AliFMDMCHitHandler.cxx.

Referenced by Create().

virtual AliFMDMCHitHandler::~AliFMDMCHitHandler ( )
inlinevirtual

Destructor

Definition at line 36 of file AliFMDMCHitHandler.h.

AliFMDMCHitHandler::AliFMDMCHitHandler ( const AliFMDMCHitHandler o)
inlineprotected

Copy constructor

Parameters
oObject to copy from

Definition at line 172 of file AliFMDMCHitHandler.h.

Member Function Documentation

Bool_t AliFMDMCHitHandler::BeginEvent ( Long64_t  entry)
virtual

Called at the beginning of an event

Parameters
entryEntry in tree
Returns
true on success

Definition at line 108 of file AliFMDMCHitHandler.cxx.

Referenced by Init().

AliFMDMCHitHandler * AliFMDMCHitHandler::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 270 of file AliFMDMCHitHandler.cxx.

Referenced by GetArray().

Bool_t AliFMDMCHitHandler::FinishEvent ( )
virtual

Called at the end of an event

Returns
true on success

Definition at line 158 of file AliFMDMCHitHandler.cxx.

Referenced by Notify().

TClonesArray* AliFMDMCHitHandler::GetArray ( )
inline

Get array of hits

Returns
Array of hits

Definition at line 145 of file AliFMDMCHitHandler.h.

Referenced by GetParticleArray().

AliMCEventHandler* AliFMDMCHitHandler::GetParent ( )
inline

Get the parent handler

Returns
Parent handler

Definition at line 133 of file AliFMDMCHitHandler.h.

Referenced by GetParticleArray().

TString * AliFMDMCHitHandler::GetParentPath ( ) const
protected

Get the parent path

Returns
Parent path

Definition at line 42 of file AliFMDMCHitHandler.cxx.

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

TClonesArray * AliFMDMCHitHandler::GetParticleArray ( AliFMDMCHitHandler 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 300 of file AliFMDMCHitHandler.cxx.

Referenced by GetArray().

virtual TTree* AliFMDMCHitHandler::GetTree ( ) const
inlinevirtual

Get the tree

Returns
The connected hits tree

Definition at line 139 of file AliFMDMCHitHandler.h.

Referenced by GetParticleArray().

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

Intialize

Parameters
tNot used
oNot used
Returns
always true

Definition at line 49 of file AliFMDMCHitHandler.h.

Bool_t AliFMDMCHitHandler::Init ( Option_t opt)
virtual

Initialize the input

Parameters
optOptions
Returns
true on success

Definition at line 53 of file AliFMDMCHitHandler.cxx.

Bool_t AliFMDMCHitHandler::LoadEvent ( Int_t  iev)
virtual

Load an event

Parameters
ievEvent number
Returns
true on success

Definition at line 233 of file AliFMDMCHitHandler.cxx.

Referenced by BeginEvent(), and Notify().

virtual Bool_t AliFMDMCHitHandler::Notify ( )
inlinevirtual

Called when the input file is changed

Returns
true on success

Definition at line 71 of file AliFMDMCHitHandler.h.

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

Called when the input file is changed

Parameters
pathNew path
Returns
true on success

Definition at line 146 of file AliFMDMCHitHandler.cxx.

Bool_t AliFMDMCHitHandler::OpenFile ( Int_t  ev)
virtual

Open a file

Parameters
evevent number
Returns
true on success

Definition at line 206 of file AliFMDMCHitHandler.cxx.

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

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

Assignment operator

Parameters
oObject to assign from
Returns
reference to this object

Definition at line 194 of file AliFMDMCHitHandler.h.

void AliFMDMCHitHandler::ResetIO ( )
virtual

Reset the I/O

Definition at line 189 of file AliFMDMCHitHandler.cxx.

Referenced by Notify().

virtual void AliFMDMCHitHandler::SetNumberOfEventsInContainer ( Int_t  nev)
inlinevirtual

Set the number of events in the container

Parameters
nevNumber of events

Definition at line 116 of file AliFMDMCHitHandler.h.

Bool_t AliFMDMCHitHandler::Terminate ( )
virtual

Called at the end of a job

Returns
true on success

Definition at line 168 of file AliFMDMCHitHandler.cxx.

Referenced by Notify().

Bool_t AliFMDMCHitHandler::TerminateIO ( )
virtual

Called at the end of a sub-job

Returns
true on success

Definition at line 178 of file AliFMDMCHitHandler.cxx.

Referenced by Notify().

Member Data Documentation

TClonesArray* AliFMDMCHitHandler::fArray
protected

Definition at line 213 of file AliFMDMCHitHandler.h.

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

TDirectory* AliFMDMCHitHandler::fDir
protected

Definition at line 212 of file AliFMDMCHitHandler.h.

Referenced by LoadEvent().

Int_t AliFMDMCHitHandler::fEvent
protected

Definition at line 217 of file AliFMDMCHitHandler.h.

Referenced by BeginEvent(), and Init().

TFile* AliFMDMCHitHandler::fFile
protected

Definition at line 210 of file AliFMDMCHitHandler.h.

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

TString AliFMDMCHitHandler::fFileBase
protected

Definition at line 220 of file AliFMDMCHitHandler.h.

Referenced by Init(), and OpenFile().

Int_t AliFMDMCHitHandler::fFileNumber
protected

Definition at line 218 of file AliFMDMCHitHandler.h.

Referenced by Init(), and LoadEvent().

Int_t AliFMDMCHitHandler::fNEvents
protected

Definition at line 214 of file AliFMDMCHitHandler.h.

Referenced by BeginEvent(), and Init().

Int_t AliFMDMCHitHandler::fNEventsInContainer
protected

Definition at line 216 of file AliFMDMCHitHandler.h.

Referenced by SetNumberOfEventsInContainer().

Int_t AliFMDMCHitHandler::fNEventsPerFile
protected

Definition at line 215 of file AliFMDMCHitHandler.h.

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

AliMCEventHandler* AliFMDMCHitHandler::fParent
protected

Definition at line 209 of file AliFMDMCHitHandler.h.

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

TTree* AliFMDMCHitHandler::fTree
protected

Definition at line 211 of file AliFMDMCHitHandler.h.

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

TString AliFMDMCHitHandler::fTreeName
protected

Definition at line 219 of file AliFMDMCHitHandler.h.

Referenced by Init(), and LoadEvent().


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