AliPhysics  1168478 (1168478)
 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 SetRejectISR (Bool_t b)
 
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...
 
virtual Bool_t AcceptMCParticle (const AliAODMCParticle *vp, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptMCParticle (Int_t i, UInt_t &rejectionReason) const
 
Bool_t IsSpecialPDGFound () const
 
void SetHistOrigin (TH1 *h)
 
- Public Member Functions inherited from AliMCParticleContainer
 AliMCParticleContainer ()
 
 AliMCParticleContainer (const char *name)
 
virtual ~AliMCParticleContainer ()
 
virtual Bool_t ApplyMCParticleCuts (const AliAODMCParticle *vp, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptObject (Int_t i, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptObject (const TObject *obj, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptParticle (Int_t i, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptParticle (const AliVParticle *vp, UInt_t &rejectionReason) const
 
virtual AliAODMCParticle * GetMCParticleWithLabel (Int_t lab) const
 
virtual AliAODMCParticle * GetAcceptMCParticleWithLabel (Int_t lab)
 
virtual AliAODMCParticle * GetLeadingMCParticle (const char *opt="")
 
virtual AliAODMCParticle * GetMCParticle (Int_t i=-1) const
 
virtual AliAODMCParticle * GetAcceptMCParticle (Int_t i=-1) const
 
virtual AliAODMCParticle * GetNextAcceptMCParticle ()
 
virtual AliAODMCParticle * GetNextMCParticle ()
 
virtual AliVParticle * GetParticle (Int_t i=-1) const
 
virtual AliVParticle * GetAcceptParticle (Int_t i=-1) const
 
virtual AliVParticle * GetNextAcceptParticle ()
 
virtual AliVParticle * GetNextParticle ()
 
void SetMCFlag (UInt_t m)
 
void SelectPhysicalPrimaries (Bool_t s)
 
const char * GetTitle () const
 
const
AliMCParticleIterableContainer 
all () const
 
const
AliMCParticleIterableContainer 
accepted () const
 
const
AliMCParticleIterableMomentumContainer 
all_momentum () const
 
const
AliMCParticleIterableMomentumContainer 
accepted_momentum () const
 
- Public Member Functions inherited from AliParticleContainer
 AliParticleContainer ()
 
 AliParticleContainer (const char *name)
 
virtual ~AliParticleContainer ()
 
virtual TObjectoperator[] (int index) const
 
virtual Bool_t ApplyParticleCuts (const AliVParticle *vp, UInt_t &rejectionReason) const
 
virtual Bool_t ApplyKinematicCuts (const AliTLorentzVector &mom, UInt_t &rejectionReason) const
 
Double_t GetParticlePtCut () const
 
Double_t GetParticleEtaMin () const
 
Double_t GetParticleEtaMax () const
 
Double_t GetParticlePhiMin () const
 
Double_t GetParticlePhiMax () const
 
void SetParticlePtCut (Double_t cut)
 
void SetParticleEtaLimits (Double_t min, Double_t max)
 
void SetParticlePhiLimits (Double_t min, Double_t max)
 
virtual AliVParticle * GetLeadingParticle (const char *opt="")
 
virtual Bool_t GetMomentumFromParticle (TLorentzVector &mom, const AliVParticle *part, Double_t mass) const
 
virtual Bool_t GetMomentumFromParticle (TLorentzVector &mom, const AliVParticle *part) const
 
virtual Bool_t GetMomentum (TLorentzVector &mom, Int_t i) const
 
virtual Bool_t GetAcceptMomentum (TLorentzVector &mom, Int_t i) const
 
virtual Bool_t GetNextMomentum (TLorentzVector &mom)
 
virtual Bool_t GetNextAcceptMomentum (TLorentzVector &mom)
 
Int_t GetNParticles () const
 
Int_t GetNAcceptedParticles () const
 
void SetMinDistanceTPCSectorEdge (Double_t min)
 
void SetCharge (EChargeCut_t c)
 
void SelectHIJING (Bool_t s)
 
void SetGeneratorIndex (Short_t i)
 
void SetArray (const AliVEvent *event)
 
const char * GetTitle () const
 
const AliParticleIterableContainer all () const
 
const AliParticleIterableContainer accepted () const
 
const
AliParticleIterableMomentumContainer 
all_momentum () const
 
const
AliParticleIterableMomentumContainer 
accepted_momentum () const
 

Protected Member Functions

Bool_t IsSpecialPDGDaughter (const AliAODMCParticle *part) const
 
Bool_t IsSpecialPDG (const AliAODMCParticle *part, TH1 *histOrigin=0) const
 
- Protected Member Functions inherited from AliMCParticleContainer
virtual TString GetDefaultArrayName (const AliVEvent *const ev) 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...
 
Bool_t fRejectISR
 Reject initial state radiation. More...
 
TH1fHistOrigin
 ! Book-keeping histogram with origin of special PDG particles More...
 
- Protected Attributes inherited from AliMCParticleContainer
UInt_t fMCFlag
 select MC particles with flags More...
 
- Protected Attributes inherited from AliParticleContainer
Double_t fMinDistanceTPCSectorEdge
 require minimum distance to edge of TPC sector edge More...
 
EChargeCut_t fChargeCut
 select particles according to their charge More...
 
Short_t fGeneratorIndex
 select MC particles with generator index (default = -1 = switch off selection) More...
 

Private Member Functions

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

Additional Inherited Members

- Public Types inherited from AliParticleContainer
enum  EChargeCut_t {
  kNoChargeCut, kCharged, kNeutral, kPositiveCharge,
  kNegativeCharge
}
 
- Static Public Member Functions inherited from AliParticleContainer
static const
AliEmcalContainerIndexMap
< TClonesArray, AliVParticle > & 
GetEmcalContainerIndexMap ()
 Get the EMCal container utils associated with particle containers. More...
 
- Static Protected Attributes inherited from AliParticleContainer
static
AliEmcalContainerIndexMap
< TClonesArray, AliVParticle > 
fgEmcalContainerIndexMap
 ! Mapping from containers to indices More...
 

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 41 of file AliHFAODMCParticleContainer.cxx.

AliHFAODMCParticleContainer::AliHFAODMCParticleContainer ( const AliHFAODMCParticleContainer )
private

Member Function Documentation

Bool_t AliHFAODMCParticleContainer::AcceptMCParticle ( const AliAODMCParticle *  vp,
UInt_t rejectionReason 
) const
virtual

First check whether the particle is a daughter of a "special" PDG particle (in which case the particle is rejected); if the particle itself is "special" PDG particle, skips the regular MC particle cuts and apply only the general particle and kinematic cuts.

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

Reimplemented from AliMCParticleContainer.

Definition at line 80 of file AliHFAODMCParticleContainer.cxx.

Bool_t AliHFAODMCParticleContainer::AcceptMCParticle ( Int_t  i,
UInt_t rejectionReason 
) const
virtual

First check whether the particle is a daughter of a "special" PDG particle (in which case the particle is rejected); if the particle itself is "special" PDG particle, skips the regular MC particle cuts and apply only the general particle and kinematic cuts.

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

Reimplemented from AliMCParticleContainer.

Definition at line 108 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::IsSpecialPDG ( const AliAODMCParticle *  part,
TH1 histOrigin = 0 
) 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 158 of file AliHFAODMCParticleContainer.cxx.

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

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

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

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

Definition at line 135 of file AliHFAODMCParticleContainer.cxx.

Referenced by AcceptMCParticle().

Bool_t AliHFAODMCParticleContainer::IsSpecialPDGFound ( ) const

Checks whether the special PDG particle is found in the container

Returns
kTRUE if the special PDG particle is found

Definition at line 200 of file AliHFAODMCParticleContainer.cxx.

Referenced by AliAnalysisTaskDmesonJets::AnalysisEngine::RunParticleLevelAnalysis().

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

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

Definition at line 54 of file AliHFAODMCParticleContainer.cxx.

void AliHFAODMCParticleContainer::SelectCharmtoDStartoKpipi ( )

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

Definition at line 64 of file AliHFAODMCParticleContainer.cxx.

void AliHFAODMCParticleContainer::SetAcceptedDecayMap ( UInt_t  m)
inline
void AliHFAODMCParticleContainer::SetHistOrigin ( TH1 h)
inline

Definition at line 66 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
void AliHFAODMCParticleContainer::SetRejectISR ( Bool_t  b)
inline
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 74 of file AliHFAODMCParticleContainer.h.

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

TH1* AliHFAODMCParticleContainer::fHistOrigin
protected

! Book-keeping histogram with origin of special PDG particles

Definition at line 76 of file AliHFAODMCParticleContainer.h.

Referenced by AcceptMCParticle(), and SetHistOrigin().

UInt_t AliHFAODMCParticleContainer::fRejectedOrigin
protected
Bool_t AliHFAODMCParticleContainer::fRejectISR
protected

Reject initial state radiation.

Definition at line 75 of file AliHFAODMCParticleContainer.h.

Referenced by IsSpecialPDG(), and SetRejectISR().

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 72 of file AliHFAODMCParticleContainer.h.

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


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