ATLAS Offline Software
|
#include <IPileupReweightingTool.h>
Public Member Functions | |
virtual float | getCombinedWeight (const xAOD::EventInfo &eventInfo, bool correctUnrepresented=false)=0 |
Return combined pileup weight. More... | |
virtual float | getCombinedWeight (const xAOD::EventInfo &eventInfo, Double_t x, Double_t y=0., bool correctUnrepresented=false)=0 |
Same as above, but for a 'custom weight' variable. More... | |
virtual float | getCombinedWeight (const xAOD::EventInfo &eventInfo, const TString &trigger, bool mu_dependent=true, bool correctUnrepresented=false)=0 |
get combined weight (i.e. pileup weight) but with a 1./dataWeight factor applied, this if used for 'prescaling' MC More... | |
virtual float | getUnrepresentedDataWeight (const xAOD::EventInfo &eventInfo)=0 |
When using UnrepresentedDataAction=2, you may want to apply this additional weight to ensure sum of weights are preserved. More... | |
virtual float | getDataWeight (const xAOD::EventInfo &eventInfo, const TString &trigger, bool mu_dependent=true)=0 |
Get the dataWeight used to 'unprescale' data collected from a given trigger combination. mu_dependency is recommended to be true. More... | |
virtual float | getPrescaleWeight (const xAOD::EventInfo &eventInfo, const TString &trigger, bool mu_dependent=true)=0 |
Get weight used to 'prescale' Monte Carlo for given trigger comibnation. More... | |
virtual int | getRandomRunNumber (const xAOD::EventInfo &eventInfo, bool mu_dependent=true)=0 |
Get a random run number for this MC event, mu_dependency is recommended ... jetetmiss seem to like it muchly. More... | |
virtual float | getCorrectedMu (const xAOD::EventInfo &eventInfo, bool includedDataScaleFactor=false) |
Get the corrected average mu of a lumiblock ... More... | |
virtual float | getCorrectedAverageInteractionsPerCrossing (const xAOD::EventInfo &eventInfo, bool includedDataScaleFactor=false)=0 |
virtual float | getCorrectedActualInteractionsPerCrossing (const xAOD::EventInfo &eventInfo, bool includedDataScaleFactor=false)=0 |
Get the actual mu of a lumiblock ... More... | |
virtual double | getLumiBlockIntegratedLumi (const xAOD::EventInfo &eventInfo)=0 |
Get the integrated lumi of a lumiblock (in pb-1) More... | |
virtual StatusCode | apply (const xAOD::EventInfo &eventInfo, bool mu_dependent=true)=0 |
Decorates with: MC: PileupWeight (CombinedWeight[*UnrepresentedDataWeight if action=2]), RandomRunNumber, RandomLumiBlockNumber, PRWHash Data: corrected_averageInteractionsPerCrossing mu_dependent says if the mu_dependency should be used for random run numbers or the data weights. More... | |
virtual ULong64_t | getPRWHash (const xAOD::EventInfo &eventInfo)=0 |
return the prw hash used for fast updates of weights at the post-processing level ... see the share/makeWeightTree.C script for usage More... | |
virtual UInt_t | GetRandomLumiBlockNumber (UInt_t runNumber)=0 |
Get a random lumiblock number for the given run number. More... | |
virtual Double_t | GetSumOfEventWeights (Int_t channel)=0 |
possible alternative to using the EventBookkeepers info ... assuming you made your PRW Config file!! More... | |
virtual Double_t | GetNumberOfEvents (Int_t channel)=0 |
virtual Double_t | GetIntegratedLumi (UInt_t start, UInt_t end)=0 |
Get the integrated luminosity (in pb-1) between start and end run (inclusive) More... | |
virtual Double_t | GetIntegratedLumi (const TString &trigger="")=0 |
Total lumi (in pb-1) for a given trigger combination .. leave blank for the unprescaled. More... | |
virtual Double_t | GetIntegratedLumi (Int_t periodNumber, UInt_t start, UInt_t end)=0 |
similar to above, but for only the given mcRunNumber/periodNumber More... | |
virtual Double_t | GetIntegratedLumiFraction (Int_t periodNumber, UInt_t start, UInt_t end)=0 |
return fraction of lumi assigned to periodNumber (or mcRunNumber) that is between start and end data run numbers More... | |
virtual Double_t | GetIntegratedLumiFraction (Int_t periodNumber, Double_t mu, UInt_t start, UInt_t end)=0 |
return fraction of lumi assigned to periodNumber (or mcRunNumber) with given mu, that is between start and end data run numbers More... | |
virtual Int_t | AddPeriod (Int_t periodNumber, UInt_t start, UInt_t end)=0 |
use these methods when generating config files More... | |
virtual Int_t | SetBinning (Int_t nbinsx, Double_t *xbins, Int_t nbinsy=0, Double_t *ybins=0)=0 |
virtual Int_t | SetUniformBinning (Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy=0, Double_t ylow=0, Double_t yup=0)=0 |
virtual Int_t | SetBinning (TH1 *hist)=0 |
virtual int | fill (const xAOD::EventInfo &eventInfo)=0 |
Call this method once per event when in config file generating mode and you want standard mu reweighting. More... | |
virtual int | fill (const xAOD::EventInfo &eventInfo, Double_t x, Double_t y=0.)=0 |
Use this method if you want to do a generic reweighting instead. More... | |
virtual CP::TPileupReweighting * | expert ()=0 |
Get pointer to the underlying tool - expert use only: Will require #include "PileupReweighting/TPileupReweighting.h". More... | |
virtual bool | isAffectedBySystematic (const SystematicVariation &systematic) const =0 |
Declare the interface that this class provides. More... | |
virtual StatusCode | applySystematicVariation (const SystematicSet &systConfig)=0 |
effects: configure this tool for the given list of systematic variations. More... | |
virtual SystematicSet | affectingSystematics () const =0 |
the list of all systematics this tool can be affected by More... | |
virtual SystematicSet | recommendedSystematics () const =0 |
the list of all systematics this tool recommends to use More... | |
virtual void | print () const =0 |
Print the state of the tool. More... | |
Definition at line 28 of file IPileupReweightingTool.h.
|
pure virtual |
use these methods when generating config files
Implemented in CP::PileupReweightingTool.
|
pure virtualinherited |
the list of all systematics this tool can be affected by
Implemented in InDet::InDetTrackSystematicsTool, CP::ElectronChargeEfficiencyCorrectionTool, AsgElectronEfficiencyCorrectionTool, CP::IsolationCorrectionTool, CP::EgammaCalibrationAndSmearingTool, CP::FFJetSmearingTool, SimpleMuonTriggerScaleFactors, SimplePhotonEfficiencyCorrectionTool, PMGTools::PMGTruthWeightTool, AsgPhotonEfficiencyCorrectionTool, ParticleScaleFactorTool, InDet::InDetTrackTruthFilterTool, CP::JetJvtEfficiency, InDet::InDetTrackBiasingTool, InDet::JetTrackFilterTool, InDet::InDetTrackSmearingTool, CP::BaseFakeBkgTool, InDet::InclusiveTrackFilterTool, TrigGlobalEfficiencyCorrectionTool, SimpleElectronEfficiencyCorrectionTool, TauAnalysisTools::DiTauSmearingTool, CP::JetQGTagger, CP::MuonCalibTool, CP::MuonCalibIntScaleSmearTool, CP::MuonCalibIntHighpTSmearTool, CP::MuonCalibIntSagittaTool, BTaggingEfficiencyJsonTool, InDet::IInDetTrackSmearingTool, InDet::IInDetTrackTruthFilterTool, CP::IIsolationCorrectionTool, InDet::IInDetTrackBiasingTool, InDet::IJetTrackFilterTool, BTaggingEfficiencyTool, JetUncertaintiesTool, BTaggingTruthTaggingTool, CP::PileupReweightingTool, met::METSystematicsTool, BTaggingEigenVectorRecompositionTool, TauAnalysisTools::DiTauEfficiencyCorrectionsTool, CP::JetTileCorrectionTool, TauAnalysisTools::CommonSmearingTool, CP::SystematicsTool, TauAnalysisTools::CommonEfficiencyTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, TauAnalysisTools::TauSmearingTool, CP::MuonTriggerScaleFactors, and CP::MuonEfficiencyScaleFactors.
|
pure virtual |
Decorates with: MC: PileupWeight (CombinedWeight[*UnrepresentedDataWeight if action=2]), RandomRunNumber, RandomLumiBlockNumber, PRWHash Data: corrected_averageInteractionsPerCrossing mu_dependent says if the mu_dependency should be used for random run numbers or the data weights.
You will get random run numbers of 0 for events with zero pileup weight
Implemented in CP::PileupReweightingTool.
|
pure virtualinherited |
effects: configure this tool for the given list of systematic variations.
any requested systematics that are not affecting this tool will be silently ignored (unless they cause other errors). failures: systematic unknown failures: requesting multiple variations on the same systematic (e.g. up & down) failures: requesting an unsupported variation on an otherwise supported systematic (e.g. a 2 sigma variation and the tool only supports 1 sigma variations) failures: unsupported combination of supported systematic failures: other tool specific errors
Implemented in CP::ElectronChargeEfficiencyCorrectionTool, CP::MuonCalibTool, CP::MuonCalibIntScaleSmearTool, CP::MuonCalibIntHighpTSmearTool, CP::MuonCalibIntSagittaTool, CP::SystematicsTool, CP::JetTileCorrectionTool, CP::MuonEfficiencyScaleFactors, CP::JetQGTagger, CP::FFJetSmearingTool, CP::IIsolationCorrectionTool, AsgElectronEfficiencyCorrectionTool, CP::IsolationCorrectionTool, CP::EgammaCalibrationAndSmearingTool, AsgPhotonEfficiencyCorrectionTool, ParticleScaleFactorTool, CP::BaseFakeBkgTool, TauAnalysisTools::DiTauSmearingTool, TrigGlobalEfficiencyCorrectionTool, JetUncertaintiesTool, BTaggingTruthTaggingTool, CP::PileupReweightingTool, BTaggingEigenVectorRecompositionTool, TauAnalysisTools::DiTauEfficiencyCorrectionsTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, TauAnalysisTools::TauSmearingTool, CP::MuonTriggerScaleFactors, BTaggingEfficiencyJsonTool, TauAnalysisTools::CommonSmearingTool, TauAnalysisTools::CommonEfficiencyTool, TauAnalysisTools::TauEfficiencyTriggerTool, CP::JetJvtEfficiency, BTaggingEfficiencyTool, met::METSystematicsTool, InDet::IInDetTrackSmearingTool, InDet::IInDetTrackTruthFilterTool, InDet::IInDetTrackBiasingTool, InDet::IJetTrackFilterTool, SimpleMuonTriggerScaleFactors, SimplePhotonEfficiencyCorrectionTool, InDet::InDetTrackTruthFilterTool, InDet::InDetTrackBiasingTool, InDet::JetTrackFilterTool, InDet::InDetTrackSmearingTool, InDet::InclusiveTrackFilterTool, SimpleElectronEfficiencyCorrectionTool, and InDet::InDetTrackSystematicsTool.
|
pure virtual |
Get pointer to the underlying tool - expert use only: Will require #include "PileupReweighting/TPileupReweighting.h".
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Call this method once per event when in config file generating mode and you want standard mu reweighting.
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Use this method if you want to do a generic reweighting instead.
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Return combined pileup weight.
Implemented in CP::PileupReweightingTool.
|
pure virtual |
get combined weight (i.e. pileup weight) but with a 1./dataWeight factor applied, this if used for 'prescaling' MC
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Same as above, but for a 'custom weight' variable.
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Get the actual mu of a lumiblock ...
(BCID-specific mu) The additional flag indicates if the returned value should include the data scale factor or not. Note: if the lumiblock is not present in the input lumicalc file, then -1.0 will be returned
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Implemented in CP::PileupReweightingTool.
|
inlinevirtual |
Get the corrected average mu of a lumiblock ...
(averaging is over all filled BCID in the fill) The additional flag indicates if the returned value should include the data scale factor or not. Note: if the lumiblock is not present in the input lumicalc file, then -1.0 will be returned This method will soon be deprecated in favour of the new naming: getCorrectedAverageInteractionsPerCrossing
Definition at line 61 of file IPileupReweightingTool.h.
|
pure virtual |
Get the dataWeight used to 'unprescale' data collected from a given trigger combination. mu_dependency is recommended to be true.
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Total lumi (in pb-1) for a given trigger combination .. leave blank for the unprescaled.
Implemented in CP::PileupReweightingTool.
|
pure virtual |
similar to above, but for only the given mcRunNumber/periodNumber
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Get the integrated luminosity (in pb-1) between start and end run (inclusive)
Implemented in CP::PileupReweightingTool.
|
pure virtual |
return fraction of lumi assigned to periodNumber (or mcRunNumber) with given mu, that is between start and end data run numbers
Implemented in CP::PileupReweightingTool.
|
pure virtual |
return fraction of lumi assigned to periodNumber (or mcRunNumber) that is between start and end data run numbers
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Get the integrated lumi of a lumiblock (in pb-1)
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Get weight used to 'prescale' Monte Carlo for given trigger comibnation.
Implemented in CP::PileupReweightingTool.
|
pure virtual |
return the prw hash used for fast updates of weights at the post-processing level ... see the share/makeWeightTree.C script for usage
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Get a random lumiblock number for the given run number.
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Get a random run number for this MC event, mu_dependency is recommended ... jetetmiss seem to like it muchly.
Implemented in CP::PileupReweightingTool.
|
pure virtual |
possible alternative to using the EventBookkeepers info ... assuming you made your PRW Config file!!
Implemented in CP::PileupReweightingTool.
|
pure virtual |
When using UnrepresentedDataAction=2, you may want to apply this additional weight to ensure sum of weights are preserved.
Implemented in CP::PileupReweightingTool.
|
pure virtualinherited |
Declare the interface that this class provides.
returns: whether this tool is affected by the given systematics
Implemented in CP::JetQGTagger, CP::ElectronChargeEfficiencyCorrectionTool, CP::MuonCalibTool, CP::MuonCalibIntScaleSmearTool, CP::MuonCalibIntHighpTSmearTool, CP::MuonCalibIntSagittaTool, CP::JetTileCorrectionTool, CP::SystematicsTool, CP::MuonEfficiencyScaleFactors, CP::JetJvtEfficiency, met::METSystematicsTool, AsgElectronEfficiencyCorrectionTool, CP::IsolationCorrectionTool, CP::EgammaCalibrationAndSmearingTool, CP::FFJetSmearingTool, ParticleScaleFactorTool, AsgPhotonEfficiencyCorrectionTool, CP::BaseFakeBkgTool, TrigGlobalEfficiencyCorrectionTool, TauAnalysisTools::DiTauSmearingTool, BTaggingEfficiencyJsonTool, CP::IIsolationCorrectionTool, BTaggingEfficiencyTool, JetUncertaintiesTool, BTaggingTruthTaggingTool, CP::PileupReweightingTool, BTaggingEigenVectorRecompositionTool, TauAnalysisTools::DiTauEfficiencyCorrectionsTool, TauAnalysisTools::CommonSmearingTool, TauAnalysisTools::CommonEfficiencyTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, TauAnalysisTools::TauSmearingTool, CP::MuonTriggerScaleFactors, SimpleMuonTriggerScaleFactors, SimplePhotonEfficiencyCorrectionTool, InDet::InDetTrackTruthFilterTool, InDet::InDetTrackBiasingTool, InDet::JetTrackFilterTool, InDet::InDetTrackSmearingTool, InDet::InclusiveTrackFilterTool, SimpleElectronEfficiencyCorrectionTool, InDet::InDetTrackSystematicsTool, InDet::IInDetTrackSmearingTool, InDet::IInDetTrackTruthFilterTool, InDet::IInDetTrackBiasingTool, and InDet::IJetTrackFilterTool.
|
pure virtualinherited |
Print the state of the tool.
Implemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, asg::AsgTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
|
pure virtualinherited |
the list of all systematics this tool recommends to use
Implemented in CP::ElectronChargeEfficiencyCorrectionTool, AsgElectronEfficiencyCorrectionTool, CP::IsolationCorrectionTool, CP::EgammaCalibrationAndSmearingTool, CP::FFJetSmearingTool, SimpleMuonTriggerScaleFactors, SimplePhotonEfficiencyCorrectionTool, PMGTools::PMGTruthWeightTool, AsgPhotonEfficiencyCorrectionTool, InDet::InDetTrackTruthFilterTool, ParticleScaleFactorTool, CP::JetJvtEfficiency, InDet::InDetTrackBiasingTool, InDet::JetTrackFilterTool, InDet::InDetTrackSmearingTool, CP::BaseFakeBkgTool, InDet::InclusiveTrackFilterTool, TauAnalysisTools::DiTauSmearingTool, TrigGlobalEfficiencyCorrectionTool, SimpleElectronEfficiencyCorrectionTool, CP::JetQGTagger, CP::MuonCalibTool, CP::MuonCalibIntScaleSmearTool, CP::MuonCalibIntHighpTSmearTool, CP::MuonCalibIntSagittaTool, InDet::InDetTrackSystematicsTool, BTaggingEfficiencyJsonTool, InDet::IInDetTrackSmearingTool, InDet::IInDetTrackTruthFilterTool, CP::IIsolationCorrectionTool, InDet::IInDetTrackBiasingTool, InDet::IJetTrackFilterTool, BTaggingEfficiencyTool, JetUncertaintiesTool, BTaggingTruthTaggingTool, CP::PileupReweightingTool, met::METSystematicsTool, BTaggingEigenVectorRecompositionTool, TauAnalysisTools::DiTauEfficiencyCorrectionsTool, CP::JetTileCorrectionTool, CP::SystematicsTool, TauAnalysisTools::CommonSmearingTool, TauAnalysisTools::CommonEfficiencyTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, TauAnalysisTools::TauSmearingTool, CP::MuonTriggerScaleFactors, and CP::MuonEfficiencyScaleFactors.
|
pure virtual |
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Implemented in CP::PileupReweightingTool.
|
pure virtual |
Implemented in CP::PileupReweightingTool.