1 #ifndef ALICONVEVENTCUTS_H 2 #define ALICONVEVENTCUTS_H 7 #include "AliAODTrack.h" 8 #include "AliESDtrack.h" 10 #include "AliMCEvent.h" 11 #include "AliVTrack.h" 12 #include "AliAnalysisCuts.h" 15 #include "TObjArray.h" 16 #include "AliAnalysisUtils.h" 17 #include "AliAnalysisManager.h" 19 #include "AliVCaloTrigger.h" 26 class AliAnalysisCuts;
30 class AliAODMCParticle;
31 class AliEMCALTriggerPatchInfo;
356 if(value)AliInfo(
"enabled trigger mimicking") ; }
358 if(value)AliInfo(
"enabled trigger overlap rejection") ; }
371 if(!pPbOrPbp.CompareTo(
"pPb")) etaShift = -0.465 ;
372 else if(!pPbOrPbp.CompareTo(
"Pbp")) etaShift = 0.465 ;
376 TString pathC=
"$ALICE_PHYSICS/PWGGA/GammaConv/InterpValuesAndFlattening.root",
379 AliInfo(Form(
"enabled centrality flattening with weights from file: %s",pathC.Data()));
385 Bool_t etareweight=kFALSE,
386 Bool_t k0sreweight=kFALSE,
387 TString path=
"$ALICE_PHYSICS/PWGGA/GammaConv/MCSpectraInput.root",
395 AliInfo(Form(
"enabled reweighting for: pi0 : %i, eta: %i, K0s: %i",pi0reweight, etareweight, k0sreweight));
408 TString pathC=
"$ALICE_PHYSICS/PWGGA/GammaConv/MultiplicityInput.root",
413 AliInfo(Form(
"enabled multiplicity weights from file: %s",pathC.Data()));
420 TString path=
"$ALICE_PHYSICS/PWGGA/GammaConv/MCGammaSpectraInput.root",
422 TString histoDataNameGamma =
"")
424 AliInfo(Form(
"enabled pT reweighting for: Gamma : %i ", gammareweight));
432 AliInfo(Form(
"maximum factor between pt hard and jet put to: %2.2f",
fMaxFacPtHard));
481 TClonesArray*
GetArrayFromEvent(AliVEvent* event,
const char *name,
const char *clname=0);
489 TString TriggerClassName =
"AliVEvent::kAny" ) {
504 AliMCEvent *fMCEvent);
521 AliVEvent *event = 0x0,
561 AliAODMCParticle* AODMCParticle,
570 TClonesArray *aodmcArray,
PeriodVar
Collection of supported periods.
void SetPeriodEnum(TString periodName)
LHC18x Pythia8 MB productions nom B anchored to LHC18x.
TH1D * hReweightMCHistPi0
histogram input for reweighting Pi0
Bool_t GetIsFromPileupSPD()
Bool_t MimicTrigger(AliVEvent *event, Bool_t isMC)
Int_t IsParticleFromBGEvent(Int_t index, AliMCEvent *mcEvent, AliVEvent *event=0x0, Int_t debug=0)
Cut functions.
Bool_t IsJetJetMCEventAccepted(AliMCEvent *mcEvent, Double_t &weight, AliVEvent *event=0x0)
TString fCorrTaskSetting
Name of Corr Task Setting.
Int_t * GetAcceptedHeaderEnd()
anchored LHC16r pass 1 - general purpose DPMJET
anchored LHC16s pass 1 - jet-jet MC in EPOSLHC
TF1 * fFPileUpRejectV0MTPCout
Pol1 function to compute the cut.
Bool_t SetCentralityMax(Int_t centralityBin)
TH2F * hSPDClusterTrackletBackground
SPD tracklets vs SPD clusters for background-correction.
Int_t SecondaryClassificationPhoton(TParticle *particle, AliMCEvent *mcEvent, Bool_t isConversion)
Bool_t SetMultiplicityMethod(Int_t multiplicityMethod)
Bool_t fDoReweightHistoMCEta
Flag for reweighting Eta input with histogram.
TH1F * hVertexZ
vertex z distribution for selected events
anchored LHC15n pass3 - general purpose Pythia6
anchored LHC13[d-e] pass 2 - JJ
Bool_t fRemovePileUpSPD
flag specifies if SPD pileup cuts are applied
anchored LHC15n pass4 - general purpose Pythia8
LHC18x Pythia8 MB productions low B anchored to LHC18c.
Int_t IsSpecialSubTrigger()
TH1D * hReweightMultMC
histogram input for reweighting Pi0
void PrintCutsWithValues()
Int_t GetSignalRejection()
Int_t fnHeaders
Number of Headers.
TString fCaloTriggersName
name of calo triggers collection
MC for Xe-Xe 5.44 TeV HIJING.
anchored LHC16rs pass 1 - general purpose DPMJET
anchored LHC11c pass 1 - GJ
LHC15o low IR firstPhysics.
void LoadGammaPtReweightingHistosMCFromFile()
TList * GetCutHistograms()
anchored LHC17p/q pass 1 - general purpose w/GEANT3,
Int_t fModCentralityClass
allows to select smaller centrality classes
void SetLightOutput(Bool_t flag)
anchored LHC16i,j,k,l,o,p JetJet - EMCal triggered
TH1F * hNPileupVertices
number of SPD pileup vertices
AliVCaloTrigger * fCaloTriggers
! calo triggers
anchored LHC16qt pass 1 - jet-jet MC in EPOSLHC
LHC17o Strangeness enhanced.
PeriodVar GetPeriodEnum()
Bool_t fMimicTrigger
enable trigger mimiking
Int_t fUseSphericity
flag that specifies the sphericityCut
Bool_t SetSelectSpecialTrigger(Int_t selectSpecialTrigger)
void SetPeriodEnumExplicit(PeriodVar periodEnum)
Double_t fEventPlaneAngle
EventPlaneAngle.
anchored to LHC15o - gamma-jets Pythia events embedded in HI MC events
Bool_t fDoEtaShift
Flag for Etashift.
anchored LHC16l pass 1 - heavy flavour MC Pythia6
MC for Xe-Xe 5.44 TeV HIJING.
TString fCaloTriggerPatchInfoName
trigger patch info array name
anchored LHC15f pass2 - HF-forced MC for HFE analyses
void SetAcceptedHeader(TList *HeaderList)
void DoEtaShift(Bool_t doEtaShift)
anchored LHC16s pass 1 - general purpose
Int_t * GetAcceptedHeaderStart()
TString fPathTrFGammaReweighting
Path for file used in gamma reweighting.
ULong_t fTriggersEMCAL
list of fired EMCAL triggers
Bool_t fDoReweightHistoMCK0s
Flag for reweighting K0s input with histogram.
anchored LHC17p/q pass 1 - general purpose w/GEANT4,
Int_t fSpecialTrigger
flag
UInt_t fOfflineTriggerMask
Task processes collision candidates only.
anchored LHC16d pass 1 nom B- field - for MBW Phojet
AliConvEventCuts(const char *name="EventCuts", const char *title="Event Cuts")
Bool_t GetUseSphericityTrue()
Double_t fMaxVertexZ
max z offset of vertex
void SetTriggerOverlapRejecion(Bool_t value)
anchored LHC15o pass1 - jet-jet 10-50%
TString fSpecialTriggerName
Bool_t IsPileUpV0MTPCout(AliVEvent *event)
TH1F * fHistoEventCuts
bookkeeping for event selection cuts
anchored LHC17p/q pass 1 - general purpose w/GEANT3,
Int_t GetNumberOfContributorsVtx(AliVEvent *event)
EnergyVar GetEnergyEnum()
Bool_t HasTriggerType(TriggerTypeEMCAL t)
anchored LHC15o pass3 - gen. purpose Pyt6wpileup
anchored LHC16s pass 1 - general purpose EPOSLHC
anchored LHC16r pass 1 - general purpose DPMJET
Int_t GetPastFutureHighBC()
anchored LHC15n pass2 - general purpose Pythia6
TH1D * hReweightMCHistGamma
histogram MC input for reweighting Gamma
void SetPreSelectionCutFlag(Bool_t preSelFlag)
AliEMCALTriggerPatchInfo * GetMainTriggerPatch()
Int_t fMultiplicityMethod
selected multiplicity method
void SetUseWeightFlatCentralityFromFile(Int_t doFlattening=1, TString pathC="$ALICE_PHYSICS/PWGGA/GammaConv/InterpValuesAndFlattening.root", TString histoCentNotFlat="")
TH1D * hReweightMCHistK0s
histogram input for reweighting K0s
anchored LHC16f pass 1 low B-field - Pythia8 JJ
anchored LHC15o pass1 - HF added hadronic decays 0-10%
anchored LHC13g pass 1 - JJ
TString fNameHistoReweightingK0s
Histogram name for reweighting K0s.
Int_t fCentralityMin
centrality selection lower bin value
anchored LHC15n pass4 - jet-jet MC Pythia8 reproduction
TF1 * fFitDataPi0
fit to pi0 spectrum in Data
Float_t fMaxFacPtHard
maximum factor between maximum jet pt and pt hard generated
Float_t GetPtHard(AliMCEvent *mcEvent, AliVEvent *event=0x0)
anchored LHC16s pass 1 - general purpose EPOSLHC
Float_t fMaxFacPtHardSingleParticle
maximum factor between maximum single particle pt (pi0/eta) and pt hard generated ...
Bool_t VertexZCut(AliVEvent *event)
anchored LHC15o pass1 - general purpose 50-90%
AliEMCALTriggerPatchInfo * fMainTriggerPatchEMCAL
main trigger patch, will be cached after first call
anchored LHC15n pass2 - gen. purpose Pyt6wpileup
void InitCutHistograms(TString name="", Bool_t preCut=kTRUE)
Bool_t fUseSphericityTrue
switch for true sphericity cuts
void SetMaxFacPtHard(Float_t value)
void SetAddedSignalPDGCode(Int_t addedSignalPDGcode)
anchored LHC13g pass 1 - JJ
void GetNotRejectedParticles(Int_t rejection, TList *HeaderList, AliVEvent *event)
void SetCaloTriggersName(const char *n)
Bool_t SetRejectExtraSignalsCut(Int_t extraSignal)
anchored LHC16s pass 1 - general purpose DPMJET
anchored LHC13[b-c] pass 2
static const char * fgkCutNames[kNCuts]
Float_t GetWeightForGamma(Int_t index, AliMCEvent *mcEvent, AliVEvent *event=0x0)
anchored LHC16qt pass 1 - general purpose EPOSLHC
Int_t fDetectorCentrality
centrality detecotor V0M or CL1
anchored LHC11d pass 1 - JJ
anchored LHC11c pass 1 - JJ
void SetDebugLevel(Int_t value)
void LoadWeightingMultiplicityFromFile()
Bool_t fDoReweightHistoMCPi0
Flag for reweighting Pi0 input with histogram.
anchored LHC17p only low Intensity Phojet 5 TeV
TH1F * hPileupVertexToPrimZTrackletvsHits
distance of SPD pileup vertex to prim vertex in z for Tracklet vs Hits flagged events ...
anchored LHC15o pass1 - jet-jet 0-10%
Int_t IsEventAcceptedByCut(AliConvEventCuts *ReaderCuts, AliVEvent *event, AliMCEvent *mcEvent, Int_t isHeavyIon, Bool_t isEMCALAnalysis)
anchored LHC17p/q pass 1 - jet-jet MC w/GEANT3,
TString * GetFoundHeader()
anchored LHC16d,e,g,h,j,o,p pass 1 - heavy flavour MC Pythia6
Int_t fCentralityMax
centrality selection upper bin value
Bool_t SetIsHeavyIon(Int_t isHeavyIon)
Bool_t IsTriggerSelected(AliVEvent *event, Bool_t isMC)
TH1D * hReweightDataHistGamma
histogram data input for reweighting Gamma
TString fPathReweightingMult
Path for file used in multiplicity reweighting.
LHC15o low IR firstPhysics.
Int_t fDebugLevel
debug level for interactive debugging
Bool_t IsConversionPrimaryESD(AliMCEvent *mcEvent, Long_t eventpos, Double_t prodVtxX, Double_t prodVtxY, Double_t prodVtxZ)
anchored LHC11a pass 2 - JJ
TString fPathWeightsFlatCent
Float_t GetWeightForMeson(Int_t index, AliMCEvent *mcEvent, AliVEvent *event=0x0)
anchored LHC15o pass1 - general purpose DPMJET
pp 13 TeV nominal B field
TString fNameHistoReweightingGamma
Histogram name for reweighting Gamma.
Bool_t fEnableVertexCut
enable vertex cut
LHC17x Pythia8 MB productions nom B anchored to LHC17x.
TString fPathTrFReweighting
Path for file used in reweighting.
virtual Bool_t IsSelected(TObject *)
Int_t fSpecialSubTrigger
flag
void GetXSectionAndNTrials(AliMCEvent *mcEvent, Float_t &XSection, Float_t &NTrials, AliVEvent *event=0x0)
Float_t GetCentrality(AliVEvent *event)
TString fNameDataHistoReweightingGamma
Histogram Data name for reweighting Gamma.
TH1F * hTriggerClass
fired offline trigger class
Bool_t SetSelectSubTriggerClass(Int_t selectSpecialSubTriggerClass)
Int_t fPastFutureRejectionHigh
sets bunch crossing event rejection in future. If both are 0, the cut is not applied ...
Float_t GetWeightForCentralityFlattening(AliVEvent *event=0x0)
anchored LHC13[b-c] pass 2 - JJ
anchored LHC11[c-d] pass 1 - JJ
void SetV0ReaderName(TString name)
anchored LHC15o pass1 - jet-jet 50-90%
Bool_t IsCentralitySelected(AliVEvent *event, AliMCEvent *mcEvent)
anchored LHC10[b-g] pass 4
anchored LHC15f pass2 - HF-forced MC for HFCJ analyses
anchored LHC15o pass1 - LF added (multi-)strange 0-10%
anchored LHC11d pass 1 - GJ
anchored LHC15f pass2 - HF-forced MC for D2H analyses
anchored LHC12[a-h] pass 2
Bool_t fDoMultiplicityWeighting
Flag for multiplicity weighting.
Int_t GetAcceptedHeaderStart(Int_t headernumber)
void SetUseReweightingWithHistogramFromFile(Bool_t pi0reweight=kTRUE, Bool_t etareweight=kFALSE, Bool_t k0sreweight=kFALSE, TString path="$ALICE_PHYSICS/PWGGA/GammaConv/MCSpectraInput.root", TString histoNamePi0="", TString histoNameEta="", TString histoNameK0s="", TString fitNamePi0="", TString fitNameEta="", TString fitNameK0s="")
TString fNameFitDataPi0
Fit name for fit to spectrum of pi0s in Data.
anchored LHC16f pass 1 low B-field - general purpose Pythia8
pp 7 TeV (LHC10c incl 900 GeV)
void SetEtaShift(TString pPbOrPbp)
anchored LHC15n pass3 - general purpose Pythia8
void SetCorrectionTaskSetting(TString setting)
anchored LHC15o pass1 - general purpose
Int_t fDoPileUpRejectV0MTPCout
reject event if # TPCout tracks does not follow expected V0M mult
anchored LHC16x pass 1 nom B-field - general purpose EPOS
anchored LHC11d pass 1 - JJ
anchored LHC15o pass3 - gen. purpose Pyt6wopileup
anchored LHC16qt pass 1 - general purpose DPMJET
Bool_t EventIsSelected(AliVEvent *fInputEvent, AliMCEvent *fMCEvent)
anchored LHC15o pass1 - general purpose 10-50%
TString * GetAcceptedHeaderNames()
TString fNameHistoNotFlatCentrality
TClonesArray * fTriggerPatchInfo
! trigger patch info array
anchored LHC13[d-e] pass 2 - GJ
TObjString * fCutString
cut number used for analysis
LHC17k Strangeness enhanced.
anchored LHC12[a-h] pass 2 - JJ
TH1D * hReweightMultData
histogram input for reweighting Eta
TString fSpecialSubTriggerName
anchored LHC16r pass 1 - jet-jet MC in EPOSLHC
EnergyVar
Supported collision systems.
Int_t fAddedSignalPDGCode
void GetCorrectEtaShiftFromPeriod()
anchored LHC13[b-c] pass 2
TH1F * hTriggerClassesCorrelated
selected trigger class correlation with others
anchored LHC16r pass 1 - general purpose EPOSLHC
Bool_t fRejectTriggerOverlap
enable trigger overlap rejections
anchored LHC13[b-c] pass 2 - JJ
Double_t fSecProdBoundary
3D radius of production (cm) for primary-secodary distinction
Float_t GetWeightForMultiplicity(Int_t mult)
Int_t fPastFutureRejectionLow
sets bunch crossing event rejection in past
anchored LHC13[d-e] pass 2 - JJ
void SelectSpecialTrigger(UInt_t offlineTriggerMask=AliVEvent::kAny, TString TriggerClassName="AliVEvent::kAny")
PeriodVar fPeriodEnum
period selector
anchored LHC12[a-h] pass 1
void SetUseGammaPtReweightingWithHistogramFromFile(Bool_t gammareweight=kTRUE, TString path="$ALICE_PHYSICS/PWGGA/GammaConv/MCGammaSpectraInput.root", TString histoNameGamma="", TString histoDataNameGamma="")
anchored LHC11a pass 4 - JJ
void SelectCollisionCandidates(UInt_t offlineTriggerMask=AliVEvent::kAny)
Bool_t InitializeCutsFromCutString(const TString analysisCutSelection)
anchored LHC13g pass 1 - JJ
anchored LHC15o pass1 - general purpose EPOS-LHC
Int_t GetNAcceptedHeaders()
LHC17l Strangeness enhanced.
TH1F * fHistoPastFutureBits
bookkeeping for event selection cuts
TH2F * hSPDClusterTrackletBackgroundBefore
SPD tracklets vs SPD clusters for background-correction before cut.
Bool_t fRemovePileUp
flag specifies if any pileup cut is applied
ULong_t fTriggersEMCALSelected
list of accepted triggers
Bool_t fHasV0AND
V0AND Offline Trigger.
TH1D * hCentralityNotFlat
centrality distribution loaded for cent. flattening
void SetUseSphericityTrue(Bool_t flag)
anchored LHC11[c-d] pass 1 - JJ
Int_t GetMultiplicityMethod()
Bool_t fDoReweightHistoMCGamma
Flag for reweighting Gamma input with histogram.
AliAnalysisUtils * fUtils
TString fNameHistoReweightingMultMC
Histogram name for reweighting Eta.
Bool_t fTriggerSelectedManually
TH1F * hCentrality
centrality distribution for selected events
TString fNameHistoReweightingEta
Histogram name for reweighting Eta.
void SetCaloTriggerPatchInfoName(const char *n)
anchored LHC16l pass 1 - heavy flavour MC Pythia6
anchored LHC16k pass 1 - heavy flavour MC Pythia6
anchored LHC13[b-c] pass 2
void SetUseWeightMultiplicityFromFile(Int_t doWeighting=0, TString pathC="$ALICE_PHYSICS/PWGGA/GammaConv/MultiplicityInput.root", TString nameHistoMultData="", TString nameHistoMultMC="")
void SetEtaShift(Double_t etaShift)
anchored LHC16qt pass 1 - general purpose DPMJET
anchored LHC16q,t pass 1 - heavy flavour MC Hijing, fast only
TList * GetAcceptedHeader()
Int_t GetPastFutureLowBC()
anchored LHC15o pass1 - general purpose 0-10%
Int_t fRejectExtraSignals
TH1F * hPileupVertexToPrimZ
distance of SPD pileup vertex to prim vertex in z
Class handling all kinds of selection cuts for Gamma Conversion analysis.
anchored LHC16s pass 1 - general purpose DPMJET
anchored LHC16r pass 1 - general purpose
void LoadWeightingFlatCentralityFromFile()
Bool_t SetCutIds(TString cutString)
Bool_t SetCentralityMin(Int_t centralityBin)
Int_t GetAcceptedHeaderEnd(Int_t headernumber)
void SetFillCutHistograms(TString name="", Bool_t preCut=kTRUE)
anchored LHC16i,j,o,p pass 1 - heavy flavour MC Pythia6
Bool_t fIsSDDFired
SDD FIRED to select with SDD events.
anchored LHC16r pass 1 - general purpose EPOSLHC
anchored LHC15o pass1 - HF added electron decays 0-10%
TString fNameHistoReweightingMultData
Histogram name for reweighting Pi0.
TString fNameHistoReweightingPi0
Histogram name for reweighting Pi0.
pp 13 TeV nominal B field
LHC17x Pythia8 MB productions low B anchored to LHC17g.
TF1 * fFitDataEta
fit to eta spectrum in Data
Int_t SecondaryClassificationPhotonAOD(AliAODMCParticle *particle, TClonesArray *aodmcArray, Bool_t isConversion)
TString GetSpecialTriggerName()
void LoadReweightingHistosMCFromFile()
anchored LHC11a pass 4 - JJ
TH1F * hPileupVertexToPrimZSPDPileup
distance of SPD pileup vertex to prim vertex in z for SPD pileup flagged events
anchored LHC16x pass 1 nom B-field - general purpose Pythia8
anchored LHC16d,e,g,h,j,o,p pass 1 - heavy flavour MC Pythia6
TF1 * fFitDataK0s
fit to K0s spectrum in Data
anchored LHC16i,j,k,l,o,p GammaJet - EMCal triggered
Bool_t fDoLightOutput
switch for running light output, kFALSE -> normal mode, kTRUE -> light mode
Float_t fMaxPtJetMC
maximum jet pt in event
LHC17x Phojet MB productions nom B anchored to LHC17x.
void SetTriggerMimicking(Bool_t value)
Int_t * fNotRejectedStart
Int_t fEventQuality
EventQuality.
Bool_t IsConversionPrimaryAOD(AliVEvent *event, AliAODMCParticle *AODMCParticle, Double_t prodVtxX, Double_t prodVtxY, Double_t prodVtxZ)
TH1F * hTriggerClassSelected
selected fired offline trigger class
anchored LHC15n pass2 - general purpose Pythia8
TH1D * hReweightMCHistEta
histogram input for reweighting Eta
anchored LHC16x pass 1 nom B-field - Pythia8 JJ
virtual ~AliConvEventCuts()
LHC15o low IR firstPhysics.
EnergyVar fEnergyEnum
energy selector
Int_t fIsHeavyIon
flag for heavy ion
Bool_t fEMCALTrigInitialized
EMCAL triggers initialized.
Int_t fNSpecialSubTriggerOptions
Bool_t IsOutOfBunchPileupPastFuture(AliVEvent *event)
TString * fGeneratorNames
anchored LHC16q,t pass 1 - heavy flavour MC Hijing, fast only
LHC17x Pythia8 MB productions nom B anchored to LHC17x.
anchored LHC15n pass4 - general purpose Pythia8
Bool_t GetDoPileUpRejectV0MTPCout()
Bool_t SetRemovePileUp(Int_t removePileUp)
void InitializeEMCALTrigger(AliVEvent *event)
TClonesArray * GetArrayFromEvent(AliVEvent *event, const char *name, const char *clname=0)
anchored LHC16k pass 1 - heavy flavour MC Pythia6
Bool_t GetUseNewMultiplicityFramework()
Bool_t SetVertexCut(Int_t vertexCut)
anchored LHC15[h,i] pass 2
anchored LHC15n pass2 - gen. purpose Pyt6wopileup
AliConvEventCuts & operator=(const AliConvEventCuts &)
void GetCentralityRange(Double_t range[2])
TString fNameFitDataEta
Fit name for fit to spectrum of etas in Data.
Bool_t SetCut(cutIds cutID, Int_t cut)
anchored LHC15o pass1 - injected signals 0-100%
anchored LHC12[a-h] pass 2
TString fV0ReaderName
Name of V0Reader.
virtual Bool_t IsSelected(TList *)
TString fNameFitDataK0s
Fit name for fit to spectrum of k0s in Data.