![]() |
AliPhysics
720d1f3 (720d1f3)
|
Struct that encapsulates analysis parameters. More...
#include <AliAnalysisTaskDmesonJets.h>
Public Types | |
typedef std::pair< AliJetInfo *, Double_t > | jet_distance_pair |
Static Public Member Functions | |
static std::pair < AliAnalysisTaskDmesonJets::EMesonOrigin_t, AliAODMCParticle * > | CheckOrigin (const AliAODMCParticle *part, TClonesArray *mcArray, Bool_t firstParton=kFALSE) |
static EMesonDecayChannel_t | CheckDecayChannel (const AliAODMCParticle *part, TClonesArray *mcArray) |
Public Attributes | |
std::map< AliAODMCParticle *, Short_t > | fFirstPartons |
! set of the first partons in the shower that produced each D meson More... | |
std::map< AliAODMCParticle *, Short_t > | fLastPartons |
! set of the last partons in the shower that produced each D meson More... | |
Protected Member Functions | |
void | RunAnalysis () |
Run the analysis. More... | |
Protected Attributes | |
ECandidateType_t | fCandidateType |
Candidate type. More... | |
TString | fCandidateName |
Candidate name. More... | |
UInt_t | fCandidatePDG |
Candidate PDG. More... | |
UChar_t | fNDaughters |
Number of daughters. More... | |
TArrayI | fPDGdaughters |
List of the PDG code of the daughters. More... | |
TString | fBranchName |
AOD branch where the D meson candidate are found. More... | |
EMCMode_t | fMCMode |
MC mode: No MC (data and MC detector level), background-only (MC), signal-only (MC), MC truth (particle level) More... | |
Int_t | fNMassBins |
Mass number of bins. More... | |
Double_t | fMinMass |
Min mass in histogram axis. More... | |
Double_t | fMaxMass |
Max mass in histogram axis. More... | |
AliRDHFCuts * | fRDHFCuts |
D meson candidates cuts. More... | |
UInt_t | fRejectedOrigin |
Bit mask with D meson origins that are rejected (used for MC analysis, i.e. signal-only, background-only and particle-level) More... | |
UInt_t | fAcceptedDecay |
Bit mask with D meson decays that are accepted (only used for particle-level analysis) More... | |
Bool_t | fInhibit |
Inhibit the task. More... | |
std::vector< AliHFJetDefinition > | fJetDefinitions |
Jet definitions. More... | |
Float_t | fPtBinWidth |
Histogram pt bin width. More... | |
Float_t | fMaxPt |
Histogram pt limit. More... | |
TRandom * | fRandomGen |
! Random number generator More... | |
Double_t | fTrackEfficiency |
! Artificial tracking inefficiency (0...1) -> set automatically at ExecOnce by AliAnalysisTaskDmesonJets More... | |
Int_t | fDataSlotNumber |
! Data slot where the tree output is posted More... | |
TTree * | fTree |
! Output tree More... | |
AliDmesonInfoSummary * | fCurrentDmesonJetInfo |
! Current D meson jet info More... | |
AliJetInfoSummary ** | fCurrentJetInfo |
! Current jet info More... | |
std::map< int, AliDmesonJetInfo > | fDmesonJets |
! Array containing the D meson jets More... | |
TClonesArray * | fCandidateArray |
! D meson candidate array More... | |
AliHFAODMCParticleContainer * | fMCContainer |
! MC particle container More... | |
std::vector< AliTrackContainer * > | fTrackContainers |
! Track containers More... | |
std::vector < AliClusterContainer * > | fClusterContainers |
! Cluster containers More... | |
AliAODEvent * | fAodEvent |
! AOD event More... | |
AliFJWrapper * | fFastJetWrapper |
! Fastjet wrapper More... | |
THistManager * | fHistManager |
! Histograms More... | |
Private Member Functions | |
void | AddInputVectors (AliEmcalContainer *cont, Int_t offset, TH2 *rejectHist=0, Double_t eff=0.) |
void | SetCandidateProperties (Double_t range) |
AliAODMCParticle * | MatchToMC () const |
void | RunDetectorLevelAnalysis () |
Run a detector level analysis. More... | |
void | RunParticleLevelAnalysis () |
Run a particle level analysis. More... | |
Bool_t | ExtractRecoDecayAttributes (const AliAODRecoDecayHF2Prong *Dcand, AliDmesonJetInfo &DmesonJet, UInt_t i) |
Bool_t | ExtractD0Attributes (const AliAODRecoDecayHF2Prong *Dcand, AliDmesonJetInfo &DmesonJet, UInt_t i) |
Bool_t | ExtractDstarAttributes (const AliAODRecoCascadeHF *DstarCand, AliDmesonJetInfo &DmesonJet, UInt_t i) |
Bool_t | FindJet (AliAODRecoDecayHF2Prong *Dcand, AliDmesonJetInfo &DmesonJet, AliHFJetDefinition &jetDef) |
Friends | |
class | AliAnalysisTaskDmesonJets |
bool | operator< (const AnalysisEngine &lhs, const AnalysisEngine &rhs) |
bool | operator> (const AnalysisEngine &lhs, const AnalysisEngine &rhs) |
bool | operator<= (const AnalysisEngine &lhs, const AnalysisEngine &rhs) |
bool | operator>= (const AnalysisEngine &lhs, const AnalysisEngine &rhs) |
bool | operator== (const AnalysisEngine &lhs, const AnalysisEngine &rhs) |
bool | operator!= (const AnalysisEngine &lhs, const AnalysisEngine &rhs) |
Struct that encapsulates analysis parameters.
This struct encapsulates analysis parameters for the D meson jet analysis.
Definition at line 368 of file AliAnalysisTaskDmesonJets.h.
typedef std::pair<AliJetInfo*, Double_t> AliAnalysisTaskDmesonJets::AnalysisEngine::jet_distance_pair |
Definition at line 370 of file AliAnalysisTaskDmesonJets.h.
AliAnalysisTaskDmesonJets::AnalysisEngine::AnalysisEngine | ( | ) |
This is the default constructor, used for ROOT I/O purposes.
Definition at line 659 of file AliAnalysisTaskDmesonJets.cxx.
AliAnalysisTaskDmesonJets::AnalysisEngine::AnalysisEngine | ( | ECandidateType_t | type, |
EMCMode_t | MCmode, | ||
AliRDHFCuts * | cuts = 0 , |
||
Int_t | nMassBins = 80 , |
||
Double_t | range = 0.50 |
||
) |
This is the standard constructor.
type | One of the enum constants of ECandidateType_t |
bkgMode | One of the enum constants of EMCMode_t |
cuts | D meson cuts (if null, it will use standard cuts) |
nMassBins | Number of bins in the mass axis |
range | Range of the mass axis (will be centered around the PDG mass) |
Definition at line 703 of file AliAnalysisTaskDmesonJets.cxx.
AliAnalysisTaskDmesonJets::AnalysisEngine::AnalysisEngine | ( | const AnalysisEngine & | source | ) |
Copy constructor
source | Reference to a valid AnalysisEngine to copy from. |
Definition at line 744 of file AliAnalysisTaskDmesonJets.cxx.
|
virtual |
Definition at line 783 of file AliAnalysisTaskDmesonJets.cxx.
|
private |
Adds all the particles contained in the container into the fastjet wrapper
cont | Pointer to a valid AliEmcalContainer object |
Definition at line 1452 of file AliAnalysisTaskDmesonJets.cxx.
AliAnalysisTaskDmesonJets::AliHFJetDefinition * AliAnalysisTaskDmesonJets::AnalysisEngine::AddJetDefinition | ( | EJetType_t | type, |
Double_t | r, | ||
EJetAlgo_t | algo, | ||
ERecoScheme_t | reco | ||
) |
Add a new jet definition If the jet definition is already present, it does nothing.
type | Jet type |
r | Jet radius |
algo | Jet algorithm |
reco | Recombination scheme |
Definition at line 954 of file AliAnalysisTaskDmesonJets.cxx.
Referenced by AliAnalysisTaskDmesonJets::AddAnalysisEngine().
AliAnalysisTaskDmesonJets::AliHFJetDefinition * AliAnalysisTaskDmesonJets::AnalysisEngine::AddJetDefinition | ( | const AliHFJetDefinition & | def | ) |
Add a new jet definition If the jet definition is already present, it does nothing.
def | Reference to a AliJetDefinition object |
Definition at line 925 of file AliAnalysisTaskDmesonJets.cxx.
void AliAnalysisTaskDmesonJets::AnalysisEngine::AdoptRDHFCuts | ( | AliRDHFCuts * | cuts | ) |
Adopt the cuts (this class owns the cuts object, which will be destroyed when needed).
Pointer | to a AliRDHFCuts object. |
Definition at line 863 of file AliAnalysisTaskDmesonJets.cxx.
|
inline |
Definition at line 415 of file AliAnalysisTaskDmesonJets.h.
void AliAnalysisTaskDmesonJets::AnalysisEngine::BuildHnSparse | ( | UInt_t | enabledAxis | ) |
Allocate a THnSparse histogram
param | Analysis parameters used to properly set some of the axis |
Definition at line 1619 of file AliAnalysisTaskDmesonJets.cxx.
TTree * AliAnalysisTaskDmesonJets::AnalysisEngine::BuildTree | ( | const char * | taskName | ) |
Builds the tree where the output will be posted
Definition at line 1584 of file AliAnalysisTaskDmesonJets.cxx.
|
static |
Checks the decay channel of a D meson
part | Pointer to an AliAODMCParticle object for which decay channel is requested |
mcArray | Pointer to a TClonesArray object where to look for particles |
Definition at line 1193 of file AliAnalysisTaskDmesonJets.cxx.
Referenced by AliHFAODMCParticleContainer::IsSpecialPDG().
|
static |
Checks the origin of a D meson
part | Pointer to an AliAODMCParticle object for which originating quark is required |
mcArray | Pointer to a TClonesArray object where to look for particles |
Definition at line 1246 of file AliAnalysisTaskDmesonJets.cxx.
Referenced by AliHFAODMCParticleContainer::IsSpecialPDG().
|
private |
Extract attributes of the D0 meson candidate.
Dcand | Pointer to a AliAODRecoDecayHF2Prong representing the D0 meson candidate |
DmesonJet | Reference to an AliDmesonJetInfo object where the D0 meson candidate information will be copied |
i | Either 0 or 1, for the two possible mass hypothesis assignments |
Definition at line 1027 of file AliAnalysisTaskDmesonJets.cxx.
|
private |
Extract attributes of the D* meson candidate.
DstarCand | Pointer to a AliAODRecoCascadeHF representing the D* meson candidate |
DmesonJet | Reference to an AliDmesonJetInfo object where the D* meson candidate information will be copied |
i | Either 0 or 1, for the two possible mass hypothesis assignments (since there is only one mass hypothesis for D*, returns kFALSE for i > 0) |
Definition at line 1137 of file AliAnalysisTaskDmesonJets.cxx.
|
private |
Extract attributes of the D meson candidate.
Dcand | Pointer to a AliAODRecoDecayHF2Prong representing the D meson candidate |
DmesonJet | Reference to an AliDmesonJetInfo object where the D meson candidate information will be copied |
i | Either 0 or 1, for the two possible mass hypothesis assignments |
Definition at line 1007 of file AliAnalysisTaskDmesonJets.cxx.
Post the output with D meson jets found in the current event
Definition at line 1952 of file AliAnalysisTaskDmesonJets.cxx.
Bool_t AliAnalysisTaskDmesonJets::AnalysisEngine::FillHnSparse | ( | THnSparse * | h, |
const AliDmesonJetInfo & | DmesonJet, | ||
std::string | n | ||
) |
Fill a THnSparse using information from a AliDmesonJetInfo object
h | Valid pointer to a THnSparse object |
DmesonJet | Const reference to an AliDmesonJetInfo object |
n | Jet name |
Definition at line 1996 of file AliAnalysisTaskDmesonJets.cxx.
Fills QA histograms. This method is not used by the AliAnalysisTaskDmesonJets task, but can be used by derived tasks that have a custom implementation to fill the output objects.
Definition at line 1864 of file AliAnalysisTaskDmesonJets.cxx.
Post the output with D meson jets found in the current event
Definition at line 1770 of file AliAnalysisTaskDmesonJets.cxx.
|
private |
Find the jet that contains a D meson candidate. The jet finding algorithm is always anti-kt Tracks and clusters are accessed through fTrackContainer and fClusterContainer
Dcand | Valid pointer to a D meson candidate object |
DmesonJet | Reference to a AliDmesonJetInfo object where the result will be stored |
r | Jet radius |
Definition at line 1371 of file AliAnalysisTaskDmesonJets.cxx.
std::vector< AliAnalysisTaskDmesonJets::AliHFJetDefinition >::iterator AliAnalysisTaskDmesonJets::AnalysisEngine::FindJetDefinition | ( | const AliHFJetDefinition & | eng | ) |
Look for a jet definition that is equal
def | Reference to a jet definition object |
Definition at line 966 of file AliAnalysisTaskDmesonJets.cxx.
|
inline |
Definition at line 391 of file AliAnalysisTaskDmesonJets.h.
|
inline |
Definition at line 396 of file AliAnalysisTaskDmesonJets.h.
|
inline |
Definition at line 416 of file AliAnalysisTaskDmesonJets.h.
Referenced by AliAnalysisTaskDmesonJets::PostDataFromAnalysisEngine().
|
inline |
Definition at line 405 of file AliAnalysisTaskDmesonJets.h.
|
inline |
Definition at line 401 of file AliAnalysisTaskDmesonJets.h.
|
inline |
Definition at line 395 of file AliAnalysisTaskDmesonJets.h.
const char * AliAnalysisTaskDmesonJets::AnalysisEngine::GetName | ( | ) | const |
Generate a name for this analysis parameter set
i | Index of the jet radius array. |
Definition at line 894 of file AliAnalysisTaskDmesonJets.cxx.
Referenced by AliAnalysisTaskDmesonJets::AddAnalysisEngine().
const char * AliAnalysisTaskDmesonJets::AnalysisEngine::GetName | ( | const AliHFJetDefinition & | jetDef | ) | const |
Generate a name for this analysis parameter set
i | Index of the jet radius array. |
Definition at line 882 of file AliAnalysisTaskDmesonJets.cxx.
|
inline |
Definition at line 411 of file AliAnalysisTaskDmesonJets.h.
Referenced by AliAnalysisTaskDmesonJets::PostDataFromAnalysisEngine().
void AliAnalysisTaskDmesonJets::AnalysisEngine::Init | ( | const AliEMCALGeometry *const | geom, |
Int_t | runNumber | ||
) |
Initialize the analysis engine.
Definition at line 810 of file AliAnalysisTaskDmesonJets.cxx.
Bool_t AliAnalysisTaskDmesonJets::AnalysisEngine::IsAnyJetInAcceptance | ( | const AliDmesonJetInfo & | dMesonJet | ) | const |
Checks whether any of the D meson jets is in the acceptance
Const | reference to a valid AliDmesonJetInfo object |
Definition at line 800 of file AliAnalysisTaskDmesonJets.cxx.
|
inline |
Definition at line 424 of file AliAnalysisTaskDmesonJets.h.
|
private |
AliAnalysisTaskDmesonJets::AnalysisEngine & AliAnalysisTaskDmesonJets::AnalysisEngine::operator= | ( | const AnalysisEngine & | source | ) |
Assignement operator
source | Reference to a valid AnalysisEngine to copy from. |
Definition at line 791 of file AliAnalysisTaskDmesonJets.cxx.
|
protected |
Run the analysis.
Definition at line 1284 of file AliAnalysisTaskDmesonJets.cxx.
|
private |
Run a detector level analysis.
Definition at line 1299 of file AliAnalysisTaskDmesonJets.cxx.
|
private |
Run a particle level analysis.
Definition at line 1474 of file AliAnalysisTaskDmesonJets.cxx.
|
inline |
Definition at line 389 of file AliAnalysisTaskDmesonJets.h.
|
private |
Sets the D meson candidate properties.
range | Range of the mass axis (will be centered around the PDG mass) |
Definition at line 817 of file AliAnalysisTaskDmesonJets.cxx.
Referenced by AnalysisEngine().
|
inline |
Definition at line 382 of file AliAnalysisTaskDmesonJets.h.
Definition at line 385 of file AliAnalysisTaskDmesonJets.h.
|
inline |
Definition at line 383 of file AliAnalysisTaskDmesonJets.h.
|
inline |
Definition at line 384 of file AliAnalysisTaskDmesonJets.h.
void AliAnalysisTaskDmesonJets::AnalysisEngine::SetRDHFCuts | ( | AliRDHFCuts * | cuts | ) |
Set the cuts (creates a copy, so the original object is not owned by this class).
Pointer | to a AliRDHFCuts object. |
Definition at line 872 of file AliAnalysisTaskDmesonJets.cxx.
Referenced by AliAnalysisTaskDmesonJets::AddAnalysisEngine(), and AnalysisEngine().
|
inline |
Definition at line 388 of file AliAnalysisTaskDmesonJets.h.
|
inline |
Definition at line 414 of file AliAnalysisTaskDmesonJets.h.
|
friend |
Definition at line 472 of file AliAnalysisTaskDmesonJets.h.
|
friend |
Definition at line 432 of file AliAnalysisTaskDmesonJets.h.
|
friend |
Compares 2 analysis engines. The ordering is based on the candidate type first and then on the MC mode.
lhs | Reference to the first AnalysisEngine object |
rhs | Reference to the second AnalysisEngine object |
Definition at line 978 of file AliAnalysisTaskDmesonJets.cxx.
|
friend |
Definition at line 428 of file AliAnalysisTaskDmesonJets.h.
|
friend |
Compares 2 analysis engines. Two analysis engines are considerate equal if they have both the same candidate type and MC mode.
lhs | Reference to the first AnalysisEngine object |
rhs | Reference to the second AnalysisEngine object |
Definition at line 993 of file AliAnalysisTaskDmesonJets.cxx.
|
friend |
Definition at line 427 of file AliAnalysisTaskDmesonJets.h.
|
friend |
Definition at line 429 of file AliAnalysisTaskDmesonJets.h.
|
protected |
Bit mask with D meson decays that are accepted (only used for particle-level analysis)
Definition at line 452 of file AliAnalysisTaskDmesonJets.h.
Referenced by SetAcceptedDecayMap().
|
protected |
! AOD event
Definition at line 468 of file AliAnalysisTaskDmesonJets.h.
|
protected |
AOD branch where the D meson candidate are found.
Definition at line 445 of file AliAnalysisTaskDmesonJets.h.
|
protected |
! D meson candidate array
Definition at line 464 of file AliAnalysisTaskDmesonJets.h.
|
protected |
Candidate name.
Definition at line 441 of file AliAnalysisTaskDmesonJets.h.
Referenced by GetCandidateName().
|
protected |
Candidate PDG.
Definition at line 442 of file AliAnalysisTaskDmesonJets.h.
|
protected |
Candidate type.
Definition at line 440 of file AliAnalysisTaskDmesonJets.h.
Referenced by GetCandidateType(), operator<(), operator==(), and SetCandidateType().
|
protected |
! Cluster containers
Definition at line 467 of file AliAnalysisTaskDmesonJets.h.
|
protected |
! Current D meson jet info
Definition at line 461 of file AliAnalysisTaskDmesonJets.h.
|
protected |
! Current jet info
Definition at line 462 of file AliAnalysisTaskDmesonJets.h.
|
protected |
! Data slot where the tree output is posted
Definition at line 459 of file AliAnalysisTaskDmesonJets.h.
Referenced by AssignDataSlot(), and GetDataSlotNumber().
|
protected |
! Array containing the D meson jets
Definition at line 463 of file AliAnalysisTaskDmesonJets.h.
Referenced by GetDmesons().
|
protected |
! Fastjet wrapper
Definition at line 469 of file AliAnalysisTaskDmesonJets.h.
std::map<AliAODMCParticle*, Short_t> AliAnalysisTaskDmesonJets::AnalysisEngine::fFirstPartons |
! set of the first partons in the shower that produced each D meson
Definition at line 434 of file AliAnalysisTaskDmesonJets.h.
|
protected |
! Histograms
Definition at line 470 of file AliAnalysisTaskDmesonJets.h.
|
protected |
Inhibit the task.
Definition at line 453 of file AliAnalysisTaskDmesonJets.h.
Referenced by IsInhibit().
|
protected |
Jet definitions.
Definition at line 454 of file AliAnalysisTaskDmesonJets.h.
Referenced by AliAnalysisTaskDmesonJets::AddAnalysisEngine(), and GetJetDefinitions().
std::map<AliAODMCParticle*, Short_t> AliAnalysisTaskDmesonJets::AnalysisEngine::fLastPartons |
! set of the last partons in the shower that produced each D meson
Definition at line 435 of file AliAnalysisTaskDmesonJets.h.
|
protected |
Max mass in histogram axis.
Definition at line 449 of file AliAnalysisTaskDmesonJets.h.
Referenced by SetMassRange().
|
protected |
Histogram pt limit.
Definition at line 456 of file AliAnalysisTaskDmesonJets.h.
|
protected |
! MC particle container
Definition at line 465 of file AliAnalysisTaskDmesonJets.h.
|
protected |
MC mode: No MC (data and MC detector level), background-only (MC), signal-only (MC), MC truth (particle level)
Definition at line 446 of file AliAnalysisTaskDmesonJets.h.
Referenced by GetMCMode(), operator<(), operator==(), and SetMCMode().
|
protected |
Min mass in histogram axis.
Definition at line 448 of file AliAnalysisTaskDmesonJets.h.
Referenced by SetMassRange().
|
protected |
Number of daughters.
Definition at line 443 of file AliAnalysisTaskDmesonJets.h.
|
protected |
Mass number of bins.
Definition at line 447 of file AliAnalysisTaskDmesonJets.h.
Referenced by SetNMassBins().
|
protected |
List of the PDG code of the daughters.
Definition at line 444 of file AliAnalysisTaskDmesonJets.h.
|
protected |
Histogram pt bin width.
Definition at line 455 of file AliAnalysisTaskDmesonJets.h.
|
protected |
! Random number generator
Definition at line 457 of file AliAnalysisTaskDmesonJets.h.
|
protected |
D meson candidates cuts.
Definition at line 450 of file AliAnalysisTaskDmesonJets.h.
Referenced by AliAnalysisTaskDmesonJets::AddAnalysisEngine(), and AnalysisEngine().
|
protected |
Bit mask with D meson origins that are rejected (used for MC analysis, i.e. signal-only, background-only and particle-level)
Definition at line 451 of file AliAnalysisTaskDmesonJets.h.
Referenced by SetRejectedOriginMap().
|
protected |
! Track containers
Definition at line 466 of file AliAnalysisTaskDmesonJets.h.
|
protected |
! Artificial tracking inefficiency (0...1) -> set automatically at ExecOnce by AliAnalysisTaskDmesonJets
Definition at line 458 of file AliAnalysisTaskDmesonJets.h.
Referenced by SetTrackEfficiency().
|
protected |