AliPhysics  8bb951a (8bb951a)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliHFAODMCParticleContainer Class Reference

Select MC particles based on specific prescriptions of HF analysis. More...

#include <AliHFAODMCParticleContainer.h>

Inheritance diagram for AliHFAODMCParticleContainer:

Public Member Functions

 AliHFAODMCParticleContainer ()
 This is the default constructor, used for ROOT I/O purposes. More...
 
 AliHFAODMCParticleContainer (const char *name)
 
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 ()
 
void SetKeepOnlyDStartoKpipi ()
 
void SetRejectedOriginMap (UInt_t m)
 
void SetAcceptedDecayMap (UInt_t m)
 
void SelectCharmtoD0toKpi ()
 Automatically sets parameters to select only the decay chain c->D0->Kpi. More...
 
void SelectCharmtoDStartoKpipi ()
 Automatically sets parameters to select only the decay chain c->D*->Kpipi. More...
 
Bool_t AcceptMCParticle (AliAODMCParticle *vp)
 
Bool_t AcceptMCParticle (Int_t i)
 

Protected Member Functions

Bool_t IsSpecialPDGDaughter (AliAODMCParticle *part) const
 
Bool_t IsSpecialPDGDaughter (Int_t iPart) const
 

Protected Attributes

Int_t fSpecialPDG
 include particles with this PDG code even if they are not primary particles (and exclude their daughters) More...
 
UInt_t fRejectedOrigin
 Bit mask with D meson origins that are rejected. More...
 
UInt_t fAcceptedDecay
 Bit mask with D meson decays that are accepted. More...
 

Private Member Functions

 AliHFAODMCParticleContainer (const AliHFAODMCParticleContainer &)
 
AliHFAODMCParticleContaineroperator= (const AliHFAODMCParticleContainer &)
 

Detailed Description

Select MC particles based on specific prescriptions of HF analysis.

This class derives from AliParticleContainer. It allows to select MC particles based on specific prescriptions of HF analysis. In particular it will select physical primary particles, exceot for specific D mesons, where the D meson itself will be selected whereas its daughter rejected.

Author
Salvatore Aiola salva.nosp@m.tore.nosp@m..aiol.nosp@m.a@ce.nosp@m.rn.ch, Yale University
Date
Feb 8, 2016

Definition at line 34 of file AliHFAODMCParticleContainer.h.

Constructor & Destructor Documentation

AliHFAODMCParticleContainer::AliHFAODMCParticleContainer ( )

This is the default constructor, used for ROOT I/O purposes.

Definition at line 27 of file AliHFAODMCParticleContainer.cxx.

AliHFAODMCParticleContainer::AliHFAODMCParticleContainer ( const char *  name)

This is the standard named constructor.

Parameters
nameName of the particle collection

Definition at line 39 of file AliHFAODMCParticleContainer.cxx.

AliHFAODMCParticleContainer::AliHFAODMCParticleContainer ( const AliHFAODMCParticleContainer )
private

Member Function Documentation

Bool_t AliHFAODMCParticleContainer::AcceptMCParticle ( AliAODMCParticle *  vp)

Calls the base class method (needed to avoid shadowing).

Parameters
Pointerto an AliVParticle object.

Definition at line 72 of file AliHFAODMCParticleContainer.cxx.

Bool_t AliHFAODMCParticleContainer::AcceptMCParticle ( Int_t  i)

First check whether the particle is a "special" PDG particle (in which case the particle is accepted) or a daughter of a "special" PDG particle (in which case the particle is rejected); then calls the base class AcceptParticle(Int_t i) method.

Parameters
iIndex of the particle to be checked.
Returns
kTRUE if the particle is accepted, kFALSE otherwise.

Definition at line 85 of file AliHFAODMCParticleContainer.cxx.

Bool_t AliHFAODMCParticleContainer::GetKeepOnlyDfromB ( ) const
inline

Definition at line 48 of file AliHFAODMCParticleContainer.h.

Bool_t AliHFAODMCParticleContainer::GetRejectDfromB ( ) const
inline

Definition at line 45 of file AliHFAODMCParticleContainer.h.

Bool_t AliHFAODMCParticleContainer::GetRejectQuarkNotFound ( ) const
inline

Definition at line 42 of file AliHFAODMCParticleContainer.h.

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

Check if particle it's a daughter of a "special" PDG particle: AOD mode

Parameters
partPointer to a valid AliAODMCParticle object
Returns
kTRUE if it is a daughter of the "special" PDG particle, kFALSE otherwise

Definition at line 133 of file AliHFAODMCParticleContainer.cxx.

Referenced by AcceptMCParticle().

Bool_t AliHFAODMCParticleContainer::IsSpecialPDGDaughter ( Int_t  iPart) const
protected
AliHFAODMCParticleContainer& AliHFAODMCParticleContainer::operator= ( const AliHFAODMCParticleContainer )
private
void AliHFAODMCParticleContainer::SelectCharmtoD0toKpi ( )

Automatically sets parameters to select only the decay chain c->D0->Kpi.

Definition at line 50 of file AliHFAODMCParticleContainer.cxx.

void AliHFAODMCParticleContainer::SelectCharmtoDStartoKpipi ( )

Automatically sets parameters to select only the decay chain c->D*->Kpipi.

Definition at line 60 of file AliHFAODMCParticleContainer.cxx.

void AliHFAODMCParticleContainer::SetAcceptedDecayMap ( UInt_t  m)
inline

Definition at line 54 of file AliHFAODMCParticleContainer.h.

void AliHFAODMCParticleContainer::SetKeepOnlyD0toKpi ( )
inline

Definition at line 50 of file AliHFAODMCParticleContainer.h.

Referenced by SelectCharmtoD0toKpi().

void AliHFAODMCParticleContainer::SetKeepOnlyDfromB ( Bool_t  c)
inline
void AliHFAODMCParticleContainer::SetKeepOnlyDStartoKpipi ( )
inline

Definition at line 51 of file AliHFAODMCParticleContainer.h.

Referenced by SelectCharmtoDStartoKpipi().

void AliHFAODMCParticleContainer::SetRejectDfromB ( Bool_t  c)
inline
void AliHFAODMCParticleContainer::SetRejectedOriginMap ( UInt_t  m)
inline

Definition at line 53 of file AliHFAODMCParticleContainer.h.

void AliHFAODMCParticleContainer::SetRejectQuarkNotFound ( Bool_t  c)
inline
void AliHFAODMCParticleContainer::SetSpecialPDG ( Int_t  pdg)
inline

Member Data Documentation

UInt_t AliHFAODMCParticleContainer::fAcceptedDecay
protected

Bit mask with D meson decays that are accepted.

Definition at line 68 of file AliHFAODMCParticleContainer.h.

Referenced by AcceptMCParticle(), SetAcceptedDecayMap(), SetKeepOnlyD0toKpi(), and SetKeepOnlyDStartoKpipi().

UInt_t AliHFAODMCParticleContainer::fRejectedOrigin
protected
Int_t AliHFAODMCParticleContainer::fSpecialPDG
protected

include particles with this PDG code even if they are not primary particles (and exclude their daughters)

Definition at line 66 of file AliHFAODMCParticleContainer.h.

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


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