AliPhysics  5364b50 (5364b50)
AliEmcalMCTrackSelector Class Reference

#include <AliEmcalMCTrackSelector.h>

Inheritance diagram for AliEmcalMCTrackSelector:

Public Member Functions

 AliEmcalMCTrackSelector ()
 
 AliEmcalMCTrackSelector (const char *name)
 
virtual ~AliEmcalMCTrackSelector ()
 
void UserCreateOutputObjects ()
 
void UserExec (Option_t *option)
 
void SetOnlyPhysPrim (Bool_t s)
 
void SetChargedMC (Bool_t c=kTRUE)
 
void SetEtaMax (Double_t e)
 
void SetRejectNK (Bool_t r=kTRUE)
 
void SetOnlyHIJING (Bool_t s)
 
void SetParticlesOutName (const char *name)
 
void ConvertMCParticles (AliMCEvent *mcEvent, TClonesArray *partOut, AliNamedArrayI *partMap=0)
 
void CopyMCParticles (TClonesArray *partIn, TClonesArray *partOut, AliNamedArrayI *partMap=0)
 

Static Public Member Functions

static AliEmcalMCTrackSelectorAddTaskMCTrackSelector (TString outname="mcparticles", Bool_t nk=kFALSE, Bool_t ch=kFALSE, Double_t etamax=1, Bool_t physPrim=kTRUE)
 

Protected Member Functions

virtual Bool_t AcceptParticle (AliAODMCParticle *part) const
 

Protected Attributes

TString fParticlesOutName
 
Bool_t fOnlyPhysPrim
 
Bool_t fRejectNK
 
Bool_t fChargedMC
 
Bool_t fOnlyHIJING
 
Double_t fEtaMax
 
TString fParticlesMapName
 
Bool_t fInit
 name of the particle map More...
 
TClonesArray * fParticlesIn
 true = task initialized More...
 
TClonesArray * fParticlesOut
 particle array in (AOD) More...
 
AliNamedArrayIfParticlesMap
 particle array out More...
 
AliVEvent * fEvent
 particle index/label More...
 
AliMCEvent * fMC
 event More...
 
Bool_t fIsESD
 MC event (ESD) More...
 
Bool_t fDisabled
 ESD or AOD analysis. More...
 

Private Member Functions

 AliEmcalMCTrackSelector (const AliEmcalMCTrackSelector &)
 Disable task if a problem occurs at initialization. More...
 
AliEmcalMCTrackSelectoroperator= (const AliEmcalMCTrackSelector &)
 

Detailed Description

Definition at line 13 of file AliEmcalMCTrackSelector.h.

Constructor & Destructor Documentation

AliEmcalMCTrackSelector::AliEmcalMCTrackSelector ( )

Definition at line 23 of file AliEmcalMCTrackSelector.cxx.

Referenced by AddTaskMCTrackSelector().

AliEmcalMCTrackSelector::AliEmcalMCTrackSelector ( const char *  name)

Definition at line 45 of file AliEmcalMCTrackSelector.cxx.

AliEmcalMCTrackSelector::~AliEmcalMCTrackSelector ( )
virtual

Definition at line 67 of file AliEmcalMCTrackSelector.cxx.

AliEmcalMCTrackSelector::AliEmcalMCTrackSelector ( const AliEmcalMCTrackSelector )
private

Disable task if a problem occurs at initialization.

Member Function Documentation

Bool_t AliEmcalMCTrackSelector::AcceptParticle ( AliAODMCParticle *  part) const
protectedvirtual

Reimplemented in AliMCHFParticleSelector.

Definition at line 238 of file AliEmcalMCTrackSelector.cxx.

Referenced by ConvertMCParticles(), CopyMCParticles(), and SetParticlesOutName().

AliEmcalMCTrackSelector * AliEmcalMCTrackSelector::AddTaskMCTrackSelector ( TString  outname = "mcparticles",
Bool_t  nk = kFALSE,
Bool_t  ch = kFALSE,
Double_t  etamax = 1,
Bool_t  physPrim = kTRUE 
)
static

Definition at line 260 of file AliEmcalMCTrackSelector.cxx.

Referenced by SetParticlesOutName().

void AliEmcalMCTrackSelector::ConvertMCParticles ( AliMCEvent *  mcEvent,
TClonesArray *  partOut,
AliNamedArrayI partMap = 0 
)

Definition at line 152 of file AliEmcalMCTrackSelector.cxx.

Referenced by SetParticlesOutName(), and UserExec().

void AliEmcalMCTrackSelector::CopyMCParticles ( TClonesArray *  partIn,
TClonesArray *  partOut,
AliNamedArrayI partMap = 0 
)

Definition at line 199 of file AliEmcalMCTrackSelector.cxx.

Referenced by SetParticlesOutName(), and UserExec().

AliEmcalMCTrackSelector& AliEmcalMCTrackSelector::operator= ( const AliEmcalMCTrackSelector )
private
void AliEmcalMCTrackSelector::SetChargedMC ( Bool_t  c = kTRUE)
inline

Definition at line 23 of file AliEmcalMCTrackSelector.h.

Referenced by AddTaskMCTrackSelector().

void AliEmcalMCTrackSelector::SetEtaMax ( Double_t  e)
inline

Definition at line 24 of file AliEmcalMCTrackSelector.h.

Referenced by AddTaskMCTrackSelector().

void AliEmcalMCTrackSelector::SetOnlyHIJING ( Bool_t  s)
inline

Definition at line 26 of file AliEmcalMCTrackSelector.h.

void AliEmcalMCTrackSelector::SetOnlyPhysPrim ( Bool_t  s)
inline

Definition at line 22 of file AliEmcalMCTrackSelector.h.

Referenced by AddTaskMCTrackSelector().

void AliEmcalMCTrackSelector::SetParticlesOutName ( const char *  name)
inline

Definition at line 27 of file AliEmcalMCTrackSelector.h.

Referenced by AddTaskMCTrackSelector().

void AliEmcalMCTrackSelector::SetRejectNK ( Bool_t  r = kTRUE)
inline

Definition at line 25 of file AliEmcalMCTrackSelector.h.

Referenced by AddTaskMCTrackSelector().

void AliEmcalMCTrackSelector::UserCreateOutputObjects ( )

Definition at line 73 of file AliEmcalMCTrackSelector.cxx.

void AliEmcalMCTrackSelector::UserExec ( Option_t option)

Definition at line 79 of file AliEmcalMCTrackSelector.cxx.

Member Data Documentation

Bool_t AliEmcalMCTrackSelector::fChargedMC
protected
Bool_t AliEmcalMCTrackSelector::fDisabled
protected

ESD or AOD analysis.

Definition at line 50 of file AliEmcalMCTrackSelector.h.

Referenced by UserExec().

Double_t AliEmcalMCTrackSelector::fEtaMax
protected
AliVEvent* AliEmcalMCTrackSelector::fEvent
protected

particle index/label

Definition at line 47 of file AliEmcalMCTrackSelector.h.

Referenced by UserExec().

Bool_t AliEmcalMCTrackSelector::fInit
protected

name of the particle map

Definition at line 43 of file AliEmcalMCTrackSelector.h.

Referenced by UserExec().

Bool_t AliEmcalMCTrackSelector::fIsESD
protected

MC event (ESD)

Definition at line 49 of file AliEmcalMCTrackSelector.h.

Referenced by AliMCHFParticleSelector::AcceptParticle(), and UserExec().

AliMCEvent* AliEmcalMCTrackSelector::fMC
protected
Bool_t AliEmcalMCTrackSelector::fOnlyHIJING
protected
Bool_t AliEmcalMCTrackSelector::fOnlyPhysPrim
protected
TClonesArray* AliEmcalMCTrackSelector::fParticlesIn
protected
AliNamedArrayI* AliEmcalMCTrackSelector::fParticlesMap
protected

particle array out

Definition at line 46 of file AliEmcalMCTrackSelector.h.

Referenced by UserExec().

TString AliEmcalMCTrackSelector::fParticlesMapName
protected

Definition at line 42 of file AliEmcalMCTrackSelector.h.

Referenced by UserExec().

TClonesArray* AliEmcalMCTrackSelector::fParticlesOut
protected

particle array in (AOD)

Definition at line 45 of file AliEmcalMCTrackSelector.h.

Referenced by UserExec().

TString AliEmcalMCTrackSelector::fParticlesOutName
protected

Definition at line 36 of file AliEmcalMCTrackSelector.h.

Referenced by SetParticlesOutName(), and UserExec().

Bool_t AliEmcalMCTrackSelector::fRejectNK
protected

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