AliPhysics  c2ade29 (c2ade29)
AliMCHFParticleSelector Class Reference

#include <AliMCHFParticleSelector.h>

Inheritance diagram for AliMCHFParticleSelector:

Public Member Functions

 AliMCHFParticleSelector ()
 
 AliMCHFParticleSelector (const char *name)
 
virtual ~AliMCHFParticleSelector ()
 
void SetSpecialPDG (Int_t pdg)
 
void SetRejectQuarkNotFound (Bool_t c)
 
Bool_t GetRejectQuarkNotFound () const
 
void SetRejectDfromB (Bool_t c)
 
Bool_t GetRejectDfromB () const
 
void SetKeepOnlyDfromB (Bool_t c)
 
Bool_t GetKeepOnlyDfromB () const
 
void SetKeepOnlyD0toKpi (Bool_t c)
 
Bool_t GetKeepOnlyD0toKpi () const
 
void SetKeepOnlyDStartoKpipi (Bool_t c)
 
Bool_t GetKeepOnlyDStartoKpipi () const
 
void SelectCharmtoD0toKpi ()
 
void SelectCharmtoDStartoKpipi ()
 
- Public Member Functions inherited from AliEmcalMCTrackSelector
 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...
 

Protected Member Functions

Bool_t AcceptParticle (AliAODMCParticle *part) const
 Check whether paricle is selected. More...
 
Bool_t IsSpecialPDGDaughter (AliAODMCParticle *part) const
 
Bool_t IsSpecialPDGDaughter (Int_t iPart) const
 
- Protected Member Functions inherited from AliEmcalMCTrackSelector
void UserCreateOutputObjects ()
 Creating user output. More...
 
void UserExec (Option_t *option)
 Main event loop. 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

Int_t fSpecialPDG
 
Bool_t fRejectQuarkNotFound
 
Bool_t fRejectDfromB
 
Bool_t fKeepOnlyDfromB
 
Bool_t fKeepOnlyD0toKpi
 
Bool_t fKeepOnlyDStartoKpipi
 
- Protected Attributes inherited from AliEmcalMCTrackSelector
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...
 
AliNamedArrayIfParticlesMap
 ! 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

 AliMCHFParticleSelector (const AliMCHFParticleSelector &)
 
AliMCHFParticleSelectoroperator= (const AliMCHFParticleSelector &)
 

Additional Inherited Members

- Static Public Member Functions inherited from AliEmcalMCTrackSelector
static AliEmcalMCTrackSelectorAddTaskMCTrackSelector (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...
 

Detailed Description

Definition at line 6 of file AliMCHFParticleSelector.h.

Constructor & Destructor Documentation

AliMCHFParticleSelector::AliMCHFParticleSelector ( )

Definition at line 22 of file AliMCHFParticleSelector.cxx.

AliMCHFParticleSelector::AliMCHFParticleSelector ( const char *  name)

Definition at line 35 of file AliMCHFParticleSelector.cxx.

AliMCHFParticleSelector::~AliMCHFParticleSelector ( )
virtual

Definition at line 48 of file AliMCHFParticleSelector.cxx.

AliMCHFParticleSelector::AliMCHFParticleSelector ( const AliMCHFParticleSelector )
private

Member Function Documentation

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

Check whether paricle is selected.

Acceptance criteria:

  • Physical primary
  • Charged / neutral
  • Is neutron or K0long
  • Eta range
  • Generator index (for HIJING prodctions)
Parameters
partParticle to be checked
Returns
True if the particle is accepted, false otherwise

Reimplemented from AliEmcalMCTrackSelector.

Definition at line 76 of file AliMCHFParticleSelector.cxx.

Referenced by GetKeepOnlyDStartoKpipi().

Bool_t AliMCHFParticleSelector::GetKeepOnlyD0toKpi ( ) const
inline

Definition at line 24 of file AliMCHFParticleSelector.h.

Bool_t AliMCHFParticleSelector::GetKeepOnlyDfromB ( ) const
inline

Definition at line 21 of file AliMCHFParticleSelector.h.

Bool_t AliMCHFParticleSelector::GetKeepOnlyDStartoKpipi ( ) const
inline

Definition at line 27 of file AliMCHFParticleSelector.h.

Bool_t AliMCHFParticleSelector::GetRejectDfromB ( ) const
inline

Definition at line 18 of file AliMCHFParticleSelector.h.

Bool_t AliMCHFParticleSelector::GetRejectQuarkNotFound ( ) const
inline

Definition at line 15 of file AliMCHFParticleSelector.h.

Bool_t AliMCHFParticleSelector::IsSpecialPDGDaughter ( AliAODMCParticle *  part) const
protected

Definition at line 152 of file AliMCHFParticleSelector.cxx.

Referenced by AcceptParticle(), and GetKeepOnlyDStartoKpipi().

Bool_t AliMCHFParticleSelector::IsSpecialPDGDaughter ( Int_t  iPart) const
protected

Definition at line 174 of file AliMCHFParticleSelector.cxx.

AliMCHFParticleSelector& AliMCHFParticleSelector::operator= ( const AliMCHFParticleSelector )
private
void AliMCHFParticleSelector::SelectCharmtoD0toKpi ( )

Definition at line 54 of file AliMCHFParticleSelector.cxx.

Referenced by GetKeepOnlyDStartoKpipi().

void AliMCHFParticleSelector::SelectCharmtoDStartoKpipi ( )

Definition at line 65 of file AliMCHFParticleSelector.cxx.

Referenced by GetKeepOnlyDStartoKpipi().

void AliMCHFParticleSelector::SetKeepOnlyD0toKpi ( Bool_t  c)
inline

Definition at line 23 of file AliMCHFParticleSelector.h.

Referenced by SelectCharmtoD0toKpi(), and SelectCharmtoDStartoKpipi().

void AliMCHFParticleSelector::SetKeepOnlyDfromB ( Bool_t  c)
inline

Definition at line 20 of file AliMCHFParticleSelector.h.

Referenced by SelectCharmtoD0toKpi(), and SelectCharmtoDStartoKpipi().

void AliMCHFParticleSelector::SetKeepOnlyDStartoKpipi ( Bool_t  c)
inline

Definition at line 26 of file AliMCHFParticleSelector.h.

Referenced by SelectCharmtoD0toKpi(), and SelectCharmtoDStartoKpipi().

void AliMCHFParticleSelector::SetRejectDfromB ( Bool_t  c)
inline

Definition at line 17 of file AliMCHFParticleSelector.h.

Referenced by SelectCharmtoD0toKpi(), and SelectCharmtoDStartoKpipi().

void AliMCHFParticleSelector::SetRejectQuarkNotFound ( Bool_t  c)
inline

Definition at line 14 of file AliMCHFParticleSelector.h.

Referenced by SelectCharmtoD0toKpi(), and SelectCharmtoDStartoKpipi().

void AliMCHFParticleSelector::SetSpecialPDG ( Int_t  pdg)
inline

Definition at line 12 of file AliMCHFParticleSelector.h.

Referenced by SelectCharmtoD0toKpi(), and SelectCharmtoDStartoKpipi().

Member Data Documentation

Bool_t AliMCHFParticleSelector::fKeepOnlyD0toKpi
protected
Bool_t AliMCHFParticleSelector::fKeepOnlyDfromB
protected

Definition at line 41 of file AliMCHFParticleSelector.h.

Referenced by AcceptParticle(), GetKeepOnlyDfromB(), and SetKeepOnlyDfromB().

Bool_t AliMCHFParticleSelector::fKeepOnlyDStartoKpipi
protected
Bool_t AliMCHFParticleSelector::fRejectDfromB
protected

Definition at line 40 of file AliMCHFParticleSelector.h.

Referenced by AcceptParticle(), GetRejectDfromB(), and SetRejectDfromB().

Bool_t AliMCHFParticleSelector::fRejectQuarkNotFound
protected
Int_t AliMCHFParticleSelector::fSpecialPDG
protected

Definition at line 38 of file AliMCHFParticleSelector.h.

Referenced by AcceptParticle(), IsSpecialPDGDaughter(), and SetSpecialPDG().


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