![]() |
AliPhysics
06e4d4b (06e4d4b)
|
Class to select particles in MC events. Salvatore Aiola, Yale Univeristy. More...
#include <AliEmcalMCTrackSelector.h>
Public Member Functions | |
AliEmcalMCTrackSelector () | |
Dummy constructor. More... | |
AliEmcalMCTrackSelector (const char *name) | |
Main constructor. More... | |
virtual | ~AliEmcalMCTrackSelector () |
Destructor. More... | |
void | SetOnlyPhysPrim (Bool_t s) |
Select only physical primary particles. More... | |
void | SetChargedMC (Bool_t c=kTRUE) |
Select only charged particles. More... | |
void | SetEtaMax (Double_t e) |
Set the eta acceptance. More... | |
void | SetRejectNK (Bool_t r=kTRUE) |
Reject neutrons and K0long particles. More... | |
void | SetRejectPhotonMother (bool doReject) |
Reject photon in case it is the mother of another photon. More... | |
void | SetOnlyHIJING (Bool_t s) |
void | SetParticlesOutName (const char *name) |
Set the name of the output container. More... | |
Static Public Member Functions | |
static AliEmcalMCTrackSelector * | AddTaskMCTrackSelector (TString outname="mcparticles", Bool_t nk=kFALSE, Bool_t ch=kFALSE, Double_t etamax=1, Bool_t physPrim=kTRUE) |
Create new AliEmcalMCTrackSelector task and add it to the analysis manager. More... | |
Protected Member Functions | |
void | UserCreateOutputObjects () |
Creating user output. More... | |
void | UserExec (Option_t *option) |
Main event loop. More... | |
virtual Bool_t | AcceptParticle (AliAODMCParticle *part) const |
Check whether paricle is selected. More... | |
void | ConvertMCParticles (AliMCEvent *mcEvent, TClonesArray *partOut, AliNamedArrayI *partMap=0) |
Convert MC particles in MC AOD articles (for ESD analysis). More... | |
void | CopyMCParticles (TClonesArray *partIn, TClonesArray *partOut, AliNamedArrayI *partMap=0) |
Convert standard MC AOD particles in a new array, and filter if requested (for AOD analysis). More... | |
Protected Attributes | |
TString | fParticlesOutName |
name of output particle array More... | |
Bool_t | fOnlyPhysPrim |
true = only physical primary particles More... | |
Bool_t | fRejectNK |
true = reject K_0^L and neutrons More... | |
Bool_t | fChargedMC |
true = only charged particles More... | |
Bool_t | fOnlyHIJING |
true = only HIJING particles More... | |
Bool_t | fRejectPhotonMothers |
Reject photons that are mothers of other photons. More... | |
Double_t | fEtaMax |
maximum eta to accept particles More... | |
TString | fParticlesMapName |
! name of the particle map More... | |
Bool_t | fInit |
! true = task initialized More... | |
TClonesArray * | fParticlesIn |
! particle array in (AOD) More... | |
TClonesArray * | fParticlesOut |
! particle array out More... | |
AliNamedArrayI * | fParticlesMap |
! particle index/label More... | |
AliVEvent * | fEvent |
! event More... | |
AliMCEvent * | fMC |
! MC event (ESD) More... | |
Bool_t | fIsESD |
! ESD or AOD analysis More... | |
Bool_t | fDisabled |
! Disable task if a problem occurs at initialization More... | |
Private Member Functions | |
AliEmcalMCTrackSelector (const AliEmcalMCTrackSelector &) | |
AliEmcalMCTrackSelector & | operator= (const AliEmcalMCTrackSelector &) |
Class to select particles in MC events. Salvatore Aiola, Yale Univeristy.
Definition at line 46 of file AliEmcalMCTrackSelector.h.
AliEmcalMCTrackSelector::AliEmcalMCTrackSelector | ( | ) |
Dummy constructor.
Definition at line 45 of file AliEmcalMCTrackSelector.cxx.
Referenced by AddTaskMCTrackSelector().
AliEmcalMCTrackSelector::AliEmcalMCTrackSelector | ( | const char * | name | ) |
Main constructor.
name | Name of the task |
Definition at line 66 of file AliEmcalMCTrackSelector.cxx.
|
inlinevirtual |
Destructor.
Definition at line 64 of file AliEmcalMCTrackSelector.h.
|
private |
|
protectedvirtual |
Check whether paricle is selected.
Acceptance criteria:
part | Particle to be checked |
Reimplemented in AliMCHFParticleSelector.
Definition at line 297 of file AliEmcalMCTrackSelector.cxx.
Referenced by ConvertMCParticles(), CopyMCParticles(), and UserCreateOutputObjects().
|
static |
Create new AliEmcalMCTrackSelector task and add it to the analysis manager.
outname | name of the output contaienr |
nk | Reject neutrons and K0long |
ch | Select only charged particles |
etamax | Max eta acceptance |
physPrim | Require physical primary particles |
Definition at line 316 of file AliEmcalMCTrackSelector.cxx.
Referenced by SetParticlesOutName().
|
protected |
Convert MC particles in MC AOD articles (for ESD analysis).
mcEvent | Input event |
partOut | Output particle container with selected particles |
partMap |
Definition at line 157 of file AliEmcalMCTrackSelector.cxx.
Referenced by UserCreateOutputObjects(), and UserExec().
|
protected |
Convert standard MC AOD particles in a new array, and filter if requested (for AOD analysis).
partIn | Input particle container |
partOut | Output particle container with selected particles |
partMap | Index map between particles in input and output container |
Definition at line 237 of file AliEmcalMCTrackSelector.cxx.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
|
inline |
Select only charged particles.
c | If true only charged particles are selected |
Definition at line 76 of file AliEmcalMCTrackSelector.h.
Referenced by AddTaskMCTrackSelector().
|
inline |
Set the eta acceptance.
e | Maximum eta acceptance |
Definition at line 82 of file AliEmcalMCTrackSelector.h.
Referenced by AddTaskMCTrackSelector().
|
inline |
Definition at line 102 of file AliEmcalMCTrackSelector.h.
|
inline |
Select only physical primary particles.
s | If true only physical primary particles are used |
Definition at line 70 of file AliEmcalMCTrackSelector.h.
Referenced by AddTaskMCTrackSelector().
|
inline |
Set the name of the output container.
This container is attached to the input event with the corresponding name. This name has to be used in the user tasks to connect the MC particle container to the particles selected by this instance of the task.
name | Name of the output container attached to the input event |
Definition at line 113 of file AliEmcalMCTrackSelector.h.
Referenced by AddTaskMCTrackSelector().
|
inline |
Reject neutrons and K0long particles.
r | If true neutrons and K0long particles are rejected |
Definition at line 88 of file AliEmcalMCTrackSelector.h.
Referenced by AddTaskMCTrackSelector().
|
inline |
Reject photon in case it is the mother of another photon.
In order to mimic processes PYTHIA8 puts mothers and daugthers of the process on the stack, which can lead in case of photons to double counting. Photon mothers that are duaghters of photon mothers need to be rejected.
doReject | If true photons are rejected if they are mothers of other photons |
Definition at line 100 of file AliEmcalMCTrackSelector.h.
|
inlineprotected |
Creating user output.
Not used in this task
Definition at line 135 of file AliEmcalMCTrackSelector.h.
|
protected |
Main event loop.
Run selection of particles and convert them to AliAODMCParticles and copy them to the output container. Set AliEmcalMCTrackSelector::AccpetParticle for the definition of selected particles.
option | Not used |
Definition at line 87 of file AliEmcalMCTrackSelector.cxx.
Referenced by UserCreateOutputObjects().
|
protected |
true = only charged particles
Definition at line 183 of file AliEmcalMCTrackSelector.h.
Referenced by AliMCHFParticleSelector::AcceptParticle(), AcceptParticle(), and SetChargedMC().
|
protected |
! Disable task if a problem occurs at initialization
Definition at line 195 of file AliEmcalMCTrackSelector.h.
Referenced by UserExec().
|
protected |
maximum eta to accept particles
Definition at line 186 of file AliEmcalMCTrackSelector.h.
Referenced by AliMCHFParticleSelector::AcceptParticle(), AcceptParticle(), and SetEtaMax().
|
protected |
|
protected |
! true = task initialized
Definition at line 188 of file AliEmcalMCTrackSelector.h.
Referenced by UserExec().
|
protected |
! ESD or AOD analysis
Definition at line 194 of file AliEmcalMCTrackSelector.h.
Referenced by AliMCHFParticleSelector::AcceptParticle(), and UserExec().
|
protected |
! MC event (ESD)
Definition at line 193 of file AliEmcalMCTrackSelector.h.
Referenced by AliMCHFParticleSelector::AcceptParticle(), AliMCHFParticleSelector::IsSpecialPDGDaughter(), and UserExec().
|
protected |
true = only HIJING particles
Definition at line 184 of file AliEmcalMCTrackSelector.h.
Referenced by AliMCHFParticleSelector::AcceptParticle(), AcceptParticle(), and SetOnlyHIJING().
|
protected |
true = only physical primary particles
Definition at line 181 of file AliEmcalMCTrackSelector.h.
Referenced by AliMCHFParticleSelector::AcceptParticle(), AcceptParticle(), and SetOnlyPhysPrim().
|
protected |
! particle array in (AOD)
Definition at line 189 of file AliEmcalMCTrackSelector.h.
Referenced by AliMCHFParticleSelector::AcceptParticle(), AliMCHFParticleSelector::IsSpecialPDGDaughter(), and UserExec().
|
protected |
! particle index/label
Definition at line 191 of file AliEmcalMCTrackSelector.h.
Referenced by UserExec().
|
protected |
! name of the particle map
Definition at line 187 of file AliEmcalMCTrackSelector.h.
Referenced by UserExec().
|
protected |
! particle array out
Definition at line 190 of file AliEmcalMCTrackSelector.h.
Referenced by UserExec().
|
protected |
name of output particle array
Definition at line 180 of file AliEmcalMCTrackSelector.h.
Referenced by SetParticlesOutName(), and UserExec().
|
protected |
true = reject K_0^L and neutrons
Definition at line 182 of file AliEmcalMCTrackSelector.h.
Referenced by AliMCHFParticleSelector::AcceptParticle(), AcceptParticle(), and SetRejectNK().
|
protected |
Reject photons that are mothers of other photons.
Definition at line 185 of file AliEmcalMCTrackSelector.h.
Referenced by ConvertMCParticles(), CopyMCParticles(), and SetRejectPhotonMother().