![]() |
AliPhysics
66e96a0 (66e96a0)
|
#include <AliAnalysisTaskSELc2V0bachelor.h>
Public Member Functions | |
AliAnalysisTaskSELc2V0bachelor () | |
AliAnalysisTaskSELc2V0bachelor (const Char_t *name, AliRDHFCutsLctoV0 *cuts, Bool_t useOnTheFly=kFALSE, Bool_t writeVariableTree=kTRUE, Bool_t additionalChecks=kFALSE, Bool_t trackRotation=kFALSE, Bool_t useTPCpid=kFALSE, Char_t sign=2, Bool_t checkOrigin=kFALSE) | |
virtual | ~AliAnalysisTaskSELc2V0bachelor () |
virtual void | UserCreateOutputObjects () |
Implementation of interface methods. More... | |
virtual void | Init () |
virtual void | LocalInit () |
virtual void | UserExec (Option_t *option) |
virtual void | Terminate (Option_t *option) |
void | FillLc2pK0Sspectrum (AliAODRecoCascadeHF *part, Int_t isLc, Int_t &nSelectedAnal, AliRDHFCutsLctoV0 *cutsAnal, TClonesArray *mcArray, Int_t originLc) |
histos More... | |
void | MakeAnalysisForLc2prK0S (AliAODEvent *aodEvent, TClonesArray *arrayLctopK0S, TClonesArray *mcArray, Int_t &nSelectedAnal, AliRDHFCutsLctoV0 *cutsAnal) |
void | SetMC (Bool_t theMCon) |
set MC usage More... | |
Bool_t | GetMC () const |
void | SetAdditionalChecks (Bool_t additionalChecks) |
set flag for additional checks More... | |
Bool_t | GetAdditionalChecks () const |
void | FillArmPodDistribution (AliAODRecoDecay *vZero, TString histoTitle, Bool_t isCandidateSelectedCuts, Bool_t isBachelorID) |
void | SetUseOnTheFlyV0 (Bool_t a) |
Bool_t | GetUseOnTheFlyV0 () |
Int_t | MatchToMClabelC (AliAODRecoCascadeHF *candidate, TClonesArray *mcArray) |
void | SetNRotations (Int_t nRot=9) |
Int_t | GetNRotations () |
void | SetPtMinToFillTheTree (Double_t pTmin=0.) |
void | SetPtMaxToFillTheTree (Double_t pTmax=999.) |
Double_t | GetPtMinToFillTheTree () |
Double_t | GetPtMaxToFillTheTree () |
void | SetMinAngleForRot (Double_t min=5.*TMath::Pi()/6.) |
void | SetMaxAngleForRot (Double_t max=7.*TMath::Pi()/6.) |
Double_t | GetMinAngleForRot () |
Double_t | GetMaxAngleForRot () |
void | SetUseTPCPIDtoFillTree (Bool_t a) |
Bool_t | GetUseTPCPIDtoFillTree () const |
void | SetSign (Char_t sign) |
set MC usage More... | |
Char_t | GetSign () const |
void | SetCheckOrigin (Bool_t origin) |
Bool_t | GetCheckOrigin () const |
Private Member Functions | |
void | CheckEventSelection (AliAODEvent *aodEvent) |
void | CheckEventSelectionWithCandidates (AliAODEvent *aodEvent) |
void | CheckCandidatesAtDifferentLevels (AliAODRecoCascadeHF *part, AliRDHFCutsLctoV0 *cutsAnal) |
void | FillTheTree (AliAODRecoCascadeHF *part, AliRDHFCutsLctoV0 *cutsAnal, TClonesArray *mcArray, Int_t isLc, Int_t originLc) |
void | DefineTreeVariables () |
Int_t | MatchToMC (AliAODRecoCascadeHF *lc2bacV0, Int_t *pdgDgLc2bacV0, Int_t *pdgDgV0, TClonesArray *mcArray) |
Int_t | SearchLcDaughter (TClonesArray *arrayMC, Int_t iii) |
void | DefineGeneralHistograms () |
void | DefineK0SHistos () |
void | DefineSignalHistosSeparatedPerOrigin () |
void | FillAnalysisHistograms (AliAODRecoCascadeHF *part, AliRDHFCutsLctoV0 *cutsAnal, TString appendthis) |
void | TrackRotation (AliRDHFCutsLctoV0 *cutsAnal, AliAODRecoCascadeHF *part, TString appendthis) |
AliAnalysisTaskSELc2V0bachelor (const AliAnalysisTaskSELc2V0bachelor &source) | |
AliAnalysisTaskSELc2V0bachelor & | operator= (const AliAnalysisTaskSELc2V0bachelor &source) |
Double_t | Det (Double_t a00, Double_t a01, Double_t a10, Double_t a11) const |
Double_t | Det (Double_t a00, Double_t a01, Double_t a02, Double_t a10, Double_t a11, Double_t a12, Double_t a20, Double_t a21, Double_t a22) const |
Double_t | PropagateToDCA (AliAODv0 *v, AliAODTrack *bachelor, Double_t b, Double_t &xVtxLc, Double_t &yVtxLc, Double_t &zVtxLc, Double_t &pxVtxLc, Double_t &pyVtxLc, Double_t &pzVtxLc) |
Double_t | GetAlpha (Double_t xyz[3], Double_t pxpypz[3]) |
Int_t | SearchForCommonMother (TClonesArray *mcArray, Int_t dgLabels[10], Int_t ndg, Int_t &ndgCk, Int_t *pdgDg, Int_t &labelMother, Int_t &nDauCand) const |
Private Attributes | |
Bool_t | fUseMCInfo |
TList * | fOutput |
Use MC info. More... | |
TList * | fOutputAll |
User output slot 1 // general histos. More... | |
TList * | fOutputPIDBach |
User output slot 4 // histos without pid and cut on V0. More... | |
TH1F * | fCEvents |
User output slot 5 // histos with PID on Bachelor. More... | |
AliNormalizationCounter * | fCounter |
Histogram to check selected events. More... | |
AliRDHFCutsLctoV0 * | fAnalCuts |
AliNormalizationCounter on output slot 2. More... | |
Bool_t | fUseOnTheFlyV0 |
Cuts - sent to output slot 3. More... | |
Bool_t | fIsEventSelected |
flag to analyze also on-the-fly V0 candidates More... | |
Bool_t | fWriteVariableTree |
flag for event selected More... | |
TTree * | fVariablesTree |
flag to decide whether to write the candidate variables on a tree variables More... | |
Float_t * | fCandidateVariables |
! variables to be written to the tree More... | |
AliAODVertex * | fVtx1 |
Float_t | fBzkG |
primary vertex More... | |
Bool_t | fAdditionalChecks |
magnetic field value [kG] More... | |
Bool_t | fTrackRotation |
flag to fill additional histograms More... | |
TList * | fOutputPIDBachTR |
flag to check track rotation More... | |
Double_t | fMinAngleForRot |
User output slot 6 // histos with PID on Bachelor and track rotation. More... | |
Double_t | fMaxAngleForRot |
=5*TMath::Pi()/6; More... | |
Double_t | fMinMass |
=7*TMath::Pi()/6; More... | |
Double_t | fMaxMass |
=mLcPDG-0.250; More... | |
Int_t | fNRotations |
=mLcPDG+0.250; More... | |
Double_t | fPtMinToFillTheTree |
=9; More... | |
Double_t | fPtMaxToFillTheTree |
0. More... | |
Bool_t | fUseTPCPIDtoFillTree |
Char_t | fSign |
kFALSE More... | |
Bool_t | fCheckOrigin |
Definition at line 36 of file AliAnalysisTaskSELc2V0bachelor.h.
AliAnalysisTaskSELc2V0bachelor::AliAnalysisTaskSELc2V0bachelor | ( | ) |
Default ctor
Definition at line 83 of file AliAnalysisTaskSELc2V0bachelor.cxx.
AliAnalysisTaskSELc2V0bachelor::AliAnalysisTaskSELc2V0bachelor | ( | const Char_t * | name, |
AliRDHFCutsLctoV0 * | cuts, | ||
Bool_t | useOnTheFly = kFALSE , |
||
Bool_t | writeVariableTree = kTRUE , |
||
Bool_t | additionalChecks = kFALSE , |
||
Bool_t | trackRotation = kFALSE , |
||
Bool_t | useTPCpid = kFALSE , |
||
Char_t | sign = 2 , |
||
Bool_t | checkOrigin = kFALSE |
||
) |
Constructor. Initialization of Inputs and Outputs
Definition at line 122 of file AliAnalysisTaskSELc2V0bachelor.cxx.
|
virtual |
destructor
Definition at line 187 of file AliAnalysisTaskSELc2V0bachelor.cxx.
|
private |
|
private |
This is to check candidates at different levels
Definition at line 2545 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by FillLc2pK0Sspectrum().
|
private |
To fill control histograms
Definition at line 2088 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by UserExec().
|
private |
To fill control histograms
Definition at line 2216 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by UserExec().
|
private |
This is to define general histograms
Definition at line 3193 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by UserCreateOutputObjects().
|
private |
Definition at line 845 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by UserCreateOutputObjects().
|
private |
Definition at line 3982 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by UserCreateOutputObjects().
|
private |
This is to define tree variables
Definition at line 3071 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by UserCreateOutputObjects().
|
private |
This function calculates locally a 2x2 determinant. This is a copy of the AliCascadeVertexer::Det(...) method
Definition at line 3663 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by Det(), and PropagateToDCA().
|
private |
This function calculates locally a 3x3 determinant This is a copy of the AliCascadeVertexer::Det(...) method
Definition at line 3673 of file AliAnalysisTaskSELc2V0bachelor.cxx.
|
private |
Definition at line 3384 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by FillLc2pK0Sspectrum().
void AliAnalysisTaskSELc2V0bachelor::FillArmPodDistribution | ( | AliAODRecoDecay * | vZero, |
TString | histoTitle, | ||
Bool_t | isCandidateSelectedCuts, | ||
Bool_t | isBachelorID | ||
) |
This is to fill Armenteros Podolanski plots
Definition at line 2524 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by FillLc2pK0Sspectrum().
void AliAnalysisTaskSELc2V0bachelor::FillLc2pK0Sspectrum | ( | AliAODRecoCascadeHF * | part, |
Int_t | isLc, | ||
Int_t & | nSelectedAnal, | ||
AliRDHFCutsLctoV0 * | cutsAnal, | ||
TClonesArray * | mcArray, | ||
Int_t | originLc | ||
) |
histos
Fill histos for Lc -> K0S+proton
Definition at line 609 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by MakeAnalysisForLc2prK0S().
|
private |
This is to fill tree
Definition at line 2624 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by FillLc2pK0Sspectrum().
|
inline |
Definition at line 68 of file AliAnalysisTaskSELc2V0bachelor.h.
|
private |
To estimate alpha according to what done in the AliExternalTrackParam::Set(...) method
Definition at line 3624 of file AliAnalysisTaskSELc2V0bachelor.cxx.
|
inline |
Definition at line 99 of file AliAnalysisTaskSELc2V0bachelor.h.
|
inline |
Definition at line 89 of file AliAnalysisTaskSELc2V0bachelor.h.
|
inline |
Definition at line 64 of file AliAnalysisTaskSELc2V0bachelor.h.
|
inline |
Definition at line 88 of file AliAnalysisTaskSELc2V0bachelor.h.
|
inline |
Definition at line 79 of file AliAnalysisTaskSELc2V0bachelor.h.
|
inline |
Definition at line 84 of file AliAnalysisTaskSELc2V0bachelor.h.
|
inline |
Definition at line 83 of file AliAnalysisTaskSELc2V0bachelor.h.
|
inline |
Definition at line 96 of file AliAnalysisTaskSELc2V0bachelor.h.
|
inline |
Definition at line 73 of file AliAnalysisTaskSELc2V0bachelor.h.
|
inline |
Definition at line 92 of file AliAnalysisTaskSELc2V0bachelor.h.
|
virtual |
Initialization
Definition at line 230 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by LocalInit().
|
inlinevirtual |
Definition at line 49 of file AliAnalysisTaskSELc2V0bachelor.h.
void AliAnalysisTaskSELc2V0bachelor::MakeAnalysisForLc2prK0S | ( | AliAODEvent * | aodEvent, |
TClonesArray * | arrayLctopK0S, | ||
TClonesArray * | mcArray, | ||
Int_t & | nSelectedAnal, | ||
AliRDHFCutsLctoV0 * | cutsAnal | ||
) |
make the analysis
Definition at line 470 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by UserExec().
|
private |
This is now implemented in AliAODRecoCascadeHF
Definition at line 2287 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Int_t AliAnalysisTaskSELc2V0bachelor::MatchToMClabelC | ( | AliAODRecoCascadeHF * | candidate, |
TClonesArray * | mcArray | ||
) |
Check if this candidate is matched to a MC signal Lc -> p K0S + X If no, return -1 If yes, return label (>=0) of the AliAODMCParticle
Definition at line 3684 of file AliAnalysisTaskSELc2V0bachelor.cxx.
|
private |
|
private |
This function returns the DCA between the V0 and the track This is a copy of AliCascadeVertexer::PropagateToDCA(...) method
Definition at line 3529 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by FillTheTree().
|
private |
Check if this candidate is matched to a MC signal If no, return 0 If yes, return pdgCode of particle
Definition at line 3735 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by FillTheTree().
|
private |
This is to check Lc dinasty
Definition at line 2367 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by CheckEventSelection().
|
inline |
set flag for additional checks
Definition at line 67 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by AddTaskLc2V0bachelor().
|
inline |
Definition at line 98 of file AliAnalysisTaskSELc2V0bachelor.h.
|
inline |
Definition at line 87 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by AddTaskLc2V0bachelor().
|
inline |
set MC usage
Definition at line 63 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by AddTaskLc2V0bachelor().
|
inline |
Definition at line 86 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by AddTaskLc2V0bachelor().
|
inline |
Definition at line 78 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by AddTaskLc2V0bachelor().
|
inline |
Definition at line 82 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by AddTaskLc2V0bachelor().
|
inline |
Definition at line 81 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by AddTaskLc2V0bachelor().
|
inline |
set MC usage
Definition at line 95 of file AliAnalysisTaskSELc2V0bachelor.h.
|
inline |
Definition at line 72 of file AliAnalysisTaskSELc2V0bachelor.h.
|
inline |
Definition at line 91 of file AliAnalysisTaskSELc2V0bachelor.h.
|
virtual |
Definition at line 373 of file AliAnalysisTaskSELc2V0bachelor.cxx.
|
private |
Definition at line 3834 of file AliAnalysisTaskSELc2V0bachelor.cxx.
Referenced by FillLc2pK0Sspectrum().
|
virtual |
Implementation of interface methods.
output
Definition at line 421 of file AliAnalysisTaskSELc2V0bachelor.cxx.
|
virtual |
user exec
Definition at line 245 of file AliAnalysisTaskSELc2V0bachelor.cxx.
|
private |
magnetic field value [kG]
Definition at line 155 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by CheckEventSelection(), CheckEventSelectionWithCandidates(), DefineGeneralHistograms(), DefineTreeVariables(), FillLc2pK0Sspectrum(), FillTheTree(), GetAdditionalChecks(), and SetAdditionalChecks().
|
private |
AliNormalizationCounter on output slot 2.
Definition at line 146 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by CheckEventSelection(), CheckEventSelectionWithCandidates(), DefineGeneralHistograms(), Init(), UserExec(), and ~AliAnalysisTaskSELc2V0bachelor().
|
private |
primary vertex
Definition at line 154 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by CheckEventSelection(), FillTheTree(), and UserExec().
|
private |
! variables to be written to the tree
Definition at line 152 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by DefineTreeVariables(), and FillTheTree().
|
private |
User output slot 5 // histos with PID on Bachelor.
Definition at line 144 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by CheckEventSelection(), DefineGeneralHistograms(), MakeAnalysisForLc2prK0S(), and UserExec().
|
private |
Definition at line 169 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by DefineSignalHistosSeparatedPerOrigin(), FillLc2pK0Sspectrum(), GetCheckOrigin(), SetCheckOrigin(), and UserCreateOutputObjects().
|
private |
Histogram to check selected events.
Definition at line 145 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSELc2V0bachelor().
|
private |
flag to analyze also on-the-fly V0 candidates
Definition at line 148 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by CheckEventSelection(), CheckEventSelectionWithCandidates(), Init(), and UserExec().
|
private |
=5*TMath::Pi()/6;
Definition at line 161 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by GetMaxAngleForRot(), SetMaxAngleForRot(), and TrackRotation().
|
private |
=mLcPDG-0.250;
Definition at line 163 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by AliAnalysisTaskSELc2V0bachelor(), and DefineK0SHistos().
|
private |
User output slot 6 // histos with PID on Bachelor and track rotation.
Definition at line 160 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by GetMinAngleForRot(), SetMinAngleForRot(), and TrackRotation().
|
private |
=7*TMath::Pi()/6;
Definition at line 162 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by AliAnalysisTaskSELc2V0bachelor(), and DefineK0SHistos().
|
private |
=mLcPDG+0.250;
Definition at line 164 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by DefineK0SHistos(), GetNRotations(), SetNRotations(), and TrackRotation().
|
private |
Use MC info.
Definition at line 140 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by CheckCandidatesAtDifferentLevels(), CheckEventSelection(), CheckEventSelectionWithCandidates(), DefineGeneralHistograms(), FillLc2pK0Sspectrum(), MakeAnalysisForLc2prK0S(), SearchLcDaughter(), Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSELc2V0bachelor().
|
private |
User output slot 1 // general histos.
Definition at line 141 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by DefineK0SHistos(), DefineSignalHistosSeparatedPerOrigin(), FillAnalysisHistograms(), FillArmPodDistribution(), Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSELc2V0bachelor().
|
private |
User output slot 4 // histos without pid and cut on V0.
Definition at line 142 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by DefineK0SHistos(), DefineSignalHistosSeparatedPerOrigin(), FillAnalysisHistograms(), FillArmPodDistribution(), Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSELc2V0bachelor().
|
private |
flag to check track rotation
Definition at line 158 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by DefineK0SHistos(), Terminate(), TrackRotation(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSELc2V0bachelor().
|
private |
0.
Definition at line 166 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by FillLc2pK0Sspectrum(), GetPtMaxToFillTheTree(), and SetPtMaxToFillTheTree().
|
private |
=9;
Definition at line 165 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by FillLc2pK0Sspectrum(), GetPtMinToFillTheTree(), and SetPtMinToFillTheTree().
|
private |
kFALSE
Definition at line 168 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by AliAnalysisTaskSELc2V0bachelor(), GetSign(), MakeAnalysisForLc2prK0S(), and SetSign().
|
private |
flag to fill additional histograms
Definition at line 157 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by AliAnalysisTaskSELc2V0bachelor(), DefineK0SHistos(), FillLc2pK0Sspectrum(), Terminate(), UserCreateOutputObjects(), and UserExec().
|
private |
Definition at line 139 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by CheckEventSelection(), CheckEventSelectionWithCandidates(), DefineGeneralHistograms(), DefineK0SHistos(), DefineSignalHistosSeparatedPerOrigin(), FillLc2pK0Sspectrum(), FillTheTree(), GetMC(), MakeAnalysisForLc2prK0S(), SetMC(), UserCreateOutputObjects(), and UserExec().
|
private |
Cuts - sent to output slot 3.
Definition at line 147 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by DefineK0SHistos(), DefineSignalHistosSeparatedPerOrigin(), FillLc2pK0Sspectrum(), GetUseOnTheFlyV0(), and SetUseOnTheFlyV0().
|
private |
Definition at line 167 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by FillLc2pK0Sspectrum(), GetUseTPCPIDtoFillTree(), and SetUseTPCPIDtoFillTree().
|
private |
flag to decide whether to write the candidate variables on a tree variables
! tree of the candidate variables after track selection on output slot 4
Definition at line 151 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by DefineTreeVariables(), FillTheTree(), Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSELc2V0bachelor().
|
private |
Definition at line 153 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by CheckEventSelection(), CheckEventSelectionWithCandidates(), FillTheTree(), MakeAnalysisForLc2prK0S(), and UserExec().
|
private |
flag for event selected
Definition at line 150 of file AliAnalysisTaskSELc2V0bachelor.h.
Referenced by AliAnalysisTaskSELc2V0bachelor(), FillLc2pK0Sspectrum(), Terminate(), UserCreateOutputObjects(), and UserExec().