1 #ifndef ALIANALYSISTASKSELC2V0BACHELOR_H 2 #define ALIANALYSISTASKSELC2V0BACHELOR_H 24 #include "AliAnalysisTaskSE.h" 25 #include "AliAODEvent.h" 27 #include "AliAODTrack.h" 36 class AliAODRecoCascade;
58 TClonesArray *mcArray,
Int_t originLc);
61 TClonesArray *mcArray,
134 TClonesArray *mcArray);
211 std::vector<std::vector< std::vector< TVector * > > >
fReservoirP;
Double_t GetPtMaxToFillTheTree()
void SetUseTPCPIDtoFillTree(Bool_t a)
Float_t fBzkG
primary vertex
void FillTheTree(AliAODRecoCascadeHF *part, AliRDHFCutsLctoV0 *cutsAnal, TClonesArray *mcArray, Int_t isLc, Int_t originLc)
Bool_t fIsEventSelected
flag to activate protection against AOD-dAOD mismatch.
AliAnalysisTaskSELc2V0bachelor & operator=(const AliAnalysisTaskSELc2V0bachelor &source)
void SetAdditionalChecks(Bool_t additionalChecks)
set flag for additional checks
Double_t Det(Double_t a00, Double_t a01, Double_t a10, Double_t a11) const
Double_t fPtMaxToFillTheTree
0.
Bool_t fAdditionalChecks
magnetic field value [kG]
Double_t GetMaxAngleForRot()
void TrackRotation(AliRDHFCutsLctoV0 *cutsAnal, AliAODRecoCascadeHF *part, TString appendthis)
Double_t GetMinAngleForRot()
void FillLc2pK0Sspectrum(AliAODRecoCascadeHF *part, Int_t isLc, Int_t &nSelectedAnal, AliRDHFCutsLctoV0 *cutsAnal, TClonesArray *mcArray, Int_t originLc)
histos
void DefineGeneralHistograms()
void SetDoSingleAnalysisForSystK0SP(Int_t a)
TTree * fVariablesTree
flag to decide whether to write the candidate variables on a tree variables
void SetUseOnTheFlyV0(Bool_t a)
void SetPtMaxToFillTheTree(Double_t pTmax=999.)
Int_t fDoSingleAnalysisForSystK0SP
void MakeSingleAnalysisForSystK0SP(AliAODEvent *aodEvent, TClonesArray *mcArray, AliRDHFCutsLctoV0 *cutsAnal)
Bool_t GetUseOnTheFlyV0()
void SetMC(Bool_t theMCon)
set MC usage
Double_t GetAlpha(Double_t xyz[3], Double_t pxpypz[3])
void SetMinAngleForRot(Double_t min=5.*TMath::Pi()/6.)
Bool_t fReconstructSecVtx
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
void SetCheckOrigin(Bool_t origin)
Int_t GetDoSingleAnalysisForSystK0SP()
Bool_t GetAdditionalChecks() const
Bool_t fWriteVariableTree
flag for event selected
Double_t fPtMinToFillTheTree
=9;
TList * fOutputPIDBachTR
flag to check track rotation
void FillMixedBackground(std::vector< TVector * > mixTypePVars, AliAODEvent *aod, AliRDHFCutsLctoV0 *cutsAnal)
TString part
use mixed event to constrain combinatorial background
AliNormalizationCounter * fCounter
Event counter for sub sample test.
void DoRotationFromTrack(AliAODEvent *aodEvent, TClonesArray *mcArray, AliRDHFCutsLctoV0 *cutsAnal)
Int_t fGenerateBGEventFromTracks
Analyze p,K,D for syst (0:off, 1:on, 2:only single ana)
Double_t fCentBins[100]
number of centrality bins
Int_t fNRotations
=mLcPDG+0.250;
std::vector< Bool_t > fReservoirsReady
! Vector storing if the reservoirs are ready
AliAnalysisTaskSELc2V0bachelor()
Bool_t GetFillSubSampleHist() const
Double_t fMaxAngleForRot
=5*TMath::Pi()/6;
Int_t MatchToMC(AliAODRecoCascadeHF *lc2bacV0, Int_t *pdgDgLc2bacV0, Int_t *pdgDgV0, TClonesArray *mcArray)
Bool_t fUseOnTheFlyV0
Cuts - sent to output slot 3.
Bool_t fUseTPCPIDtoFillTree
void DefineTreeVariables()
TList * fOutputAll
User output slot 1 // general histos.
Double_t GetPtMinToFillTheTree()
Int_t fNzVtxBins
maximum number of events to be used in event mixing
void ReconstructSecVtx(Bool_t dummy=kTRUE)
Bool_t GetUseTPCPIDtoFillTree() const
Int_t fEventCounter
Histogram to check selected events.
void CheckEventSelection(AliAODEvent *aodEvent)
virtual void Terminate(Option_t *option)
TList * fOutputPIDBach
User output slot 4 // histos without pid and cut on V0.
Bool_t fFillSubSampleHist
flag to fill additional histograms
void SetSign(Char_t sign)
set MC usage
void SetPtMinToFillTheTree(Double_t pTmin=0.)
Int_t SearchLcDaughter(TClonesArray *arrayMC, Int_t iii)
Double_t fMinMass
=7*TMath::Pi()/6;
TH1F * fCEvents
User output slot 5 // histos with PID on Bachelor.
Double_t fMaxMass
=mLcPDG-0.250;
void DefineSignalHistosSeparatedPerOrigin()
virtual void UserExec(Option_t *option)
void SetFillSubSampleHist(Bool_t subChecks)
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)
std::vector< Int_t > fNextResVec
pool index
Int_t MatchToMClabelC(AliAODRecoCascadeHF *candidate, TClonesArray *mcArray)
Bool_t fTrackRotation
flag to fill subsample histograms
void MakeAnalysisForLc2prK0S(AliAODEvent *aodEvent, TClonesArray *arrayLctopK0S, TClonesArray *mcArray, Int_t &nSelectedAnal, AliRDHFCutsLctoV0 *cutsAnal)
Float_t * fCandidateVariables
! variables to be written to the tree
Int_t fNumberOfEventsForMixing
flag for (1) event mixing or (2) track rotation from tracks
void SetGenerateBGEventFromTracks(Int_t a)
Double_t fZvtxBins[100]
number of z vrtx bins
AliRDHFCutsLctoV0 * fAnalCuts
AliNormalizationCounter on output slot 2.
void FillArmPodDistribution(AliAODRecoDecay *vZero, TString histoTitle, Bool_t isCandidateSelectedCuts, Bool_t isBachelorID)
void CheckCandidatesAtDifferentLevels(AliAODRecoCascadeHF *part, AliRDHFCutsLctoV0 *cutsAnal)
void SetAODMismatchProtection(Int_t opt=1)
Bool_t GetCheckOrigin() const
Int_t GetPoolIndex(Double_t zvert, Double_t mult)
Double_t fMinAngleForRot
User output slot 6 // histos with PID on Bachelor and track rotation.
void CheckEventSelectionWithCandidates(AliAODEvent *aodEvent)
TList * fOutput
Use MC info.
std::vector< std::vector< std::vector< TVector * > > > fReservoirP
! reservoir
Bool_t GetReconstructSecVtx() const
void DoEventMixing(AliAODEvent *aodEvent, TClonesArray *mcArray, AliRDHFCutsLctoV0 *cutsAnal)
void SetNRotations(Int_t nRot=9)
void FillAnalysisHistograms(AliAODRecoCascadeHF *part, AliRDHFCutsLctoV0 *cutsAnal, TString appendthis)
void SetMaxAngleForRot(Double_t max=7.*TMath::Pi()/6.)
Int_t fAODProtection
flag to analyze also on-the-fly V0 candidates
virtual void UserCreateOutputObjects()
Implementation of interface methods.
Int_t fPoolIndex
number of pools
virtual ~AliAnalysisTaskSELc2V0bachelor()