ATLAS Offline Software
|
#include <BaseLinearFakeBkgTool.h>
Public Member Functions | |
BaseLinearFakeBkgTool (const std::string &toolname) | |
virtual | ~BaseLinearFakeBkgTool () |
virtual StatusCode | initialize () override |
Dummy implementation of the initialisation function. More... | |
virtual StatusCode | getEventWeight (float &weight, const std::string &selection, const std::string &process) override final |
returns an event weight addEvent() must have been called before hand. More... | |
virtual StatusCode | getTotalYield (float &yield, float &statErrorUp, float &statErrorDown) override final |
returns the accumulated fake lepton background yield (or compute it, in the case of the likelihood matrix method), and fills the registered histograms (if any) The 'selection' and 'process' settings used for these operations can be chosen with the 'Selection' and 'Process' properties. More... | |
virtual StatusCode | register1DHistogram (TH1 *h1, const float *val) override |
associates a 1D histogram to the tool, to obtain a binned estimate of the fake lepton background the 'val' argument points to a variable corresponding to the X axis of the histogram and that needs to be updated before each call to addEvent() undefined behaviour if the pointers are invalidated during the tool's lifetime More... | |
virtual StatusCode | register2DHistogram (TH2 *h2, const float *xval, const float *yval) override |
associates a 2D histogram to the tool, to obtain a binned estimate of the fake lepton background the 'xval' / 'yval' arguments point to variables corresponding to the X/Y axis of the histogram and that need to be updated before each call to addEvent() undefined behaviour if the pointers are invalidated during the tool's lifetime More... | |
virtual StatusCode | register3DHistogram (TH3 *h3, const float *xval, const float *yval, const float *zval) override |
associates a 3D histogram to the tool, to obtain a binned estimate of the fake lepton background More... | |
StatusCode | assignYieldRange (TH1 *h) |
virtual StatusCode | saveProgress (TDirectory *dir) override |
virtual StatusCode | addEvent (const xAOD::IParticleContainer &particles, float extraWeight=1.f) override final |
supply list of leptons / global variables, internal counters incremented Does not return anything; event weight(s) must be retrieved by subsequent call(s) to getEventWeight() (for tools inheriting from ILinearFakeBkgTool) More... | |
virtual StatusCode | addEvent (const ConstDataVector< xAOD::IParticleContainer > &particles, float extraWeight=1.f) override final |
supply list of leptons / global variables, internal counters incremented Does not return anything; event weight(s) must be retrieved by subsequent call(s) to getEventWeight() (for tools inheriting from ILinearFakeBkgTool) More... | |
virtual bool | isAffectedBySystematic (const CP::SystematicVariation &systematic) const override |
Declare the interface that this class provides. More... | |
virtual CP::SystematicSet | affectingSystematics () const override |
the list of all systematics this tool can be affected by More... | |
virtual CP::SystematicSet | recommendedSystematics () const override |
the list of all systematics this tool recommends to use More... | |
virtual StatusCode | applySystematicVariation (const CP::SystematicSet &systConfig) override |
effects: configure this tool for the given list of systematic variations. More... | |
virtual CP::SystematicSet | affectingSystematicsFor (const std::string &nuisanceParameter) const override |
These functions are slow, don't use them in the tools implementations. More... | |
virtual std::string | getUncertaintyDescription (const CP::SystematicVariation &systematic) const override final |
returns a human-readable description of the source of systematic uncertainty specified as argument More... | |
virtual void | printUncertaintyDescription (const CP::SystematicVariation &systematic) const override final |
prints a human-readable description of the source of systematic uncertainty specified as argument More... | |
virtual bool | isSystematicUncertainty (const CP::SystematicVariation &systematic) const override final |
checks whether the specified source of uncertainty originates from a systematic uncertainty in the efficiencies (as opposed to statistical) More... | |
virtual bool | isStatisticalUncertainty (const CP::SystematicVariation &systematic) const override final |
checks whether the specified source of uncertainty originates from a statistical uncertainty in the efficiencies (as opposed to systematic) More... | |
virtual bool | affectsElectrons (const CP::SystematicVariation &systematic) const override final |
checks whether the specified source of uncertainty affects electrons More... | |
virtual bool | affectsMuons (const CP::SystematicVariation &systematic) const override final |
checks whether the specified source of uncertainty affects muons More... | |
virtual bool | affectsTaus (const CP::SystematicVariation &systematic) const override final |
checks whether the specified source of uncertainty affects taus More... | |
virtual bool | affectsRealEfficiencies (const CP::SystematicVariation &systematic) const override final |
checks whether the specified source of uncertainty affects real efficiencies More... | |
virtual bool | affectsFakeEfficiencies (const CP::SystematicVariation &systematic) const override final |
checks whether the specified source of uncertainty affects fake efficiencies More... | |
virtual bool | affectsFakeFactors (const CP::SystematicVariation &systematic) const override final |
checks whether the specified source of uncertainty affects fake factors More... | |
virtual const IFakeBkgSystDescriptor & | getSystDescriptor () const override |
retrieves an interface to various helper methods to identify what the different SystematicVariations correspond to More... | |
virtual void | print () const =0 |
Print the state of the tool. More... | |
virtual void | print () const |
Print the state of the tool. More... | |
ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | evtStore () const |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More... | |
virtual StatusCode | sysInitialize () override |
Perform system initialization for an algorithm. More... | |
virtual StatusCode | sysStart () override |
Handle START transition. More... | |
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
Return this algorithm's input handles. More... | |
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
Return this algorithm's output handles. More... | |
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
Declare a new Gaudi property. More... | |
void | updateVHKA (Gaudi::Details::PropertyBase &) |
MsgStream & | msg () const |
MsgStream & | msg (const MSG::Level lvl) const |
bool | msgLvl (const MSG::Level lvl) const |
Static Public Member Functions | |
static constexpr const char * | defaultSelection () |
default value taken by the 'selection' argument of several methods or properties It indicates how the analysis selects leptons in the signal region The syntax supported for this arguments is described in the package documentation. More... | |
static constexpr const char * | defaultProcess () |
default value taken by the 'process' argument of several methods or properties It indicates what should be treated as fake lepton background. More... | |
Protected Member Functions | |
StatusCode | incrementTotalYield () |
be sure to only call this once per event! (typically at the end of addEvent()) More... | |
virtual StatusCode | getEventWeightCustom (FakeBkgTools::Weight &weight, const FakeBkgTools::FinalState &fs)=0 |
virtual FakeBkgTools::Client | clientForDB ()=0 |
This indicates which type of efficiencies/fake factor need to be filled. More... | |
virtual StatusCode | addEventCustom ()=0 |
FakeBkgTools::FinalState | getCachedFinalState (uint8_t nparticles, const std::string &strPID, const std::string &strProc, bool &success) |
std::string | getListOfEfficienciesAffectedBy (uint16_t uid) const |
StatusCode | CheckHistogramCompatibility (const TH1 *lhs, const TH1 *rhs) |
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
remove all handles from I/O resolution More... | |
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
Add StoreName to extra input/output deps as needed. More... | |
Protected Attributes | |
std::vector< FakeBkgTools::Yield > | m_yields |
accumulated yield for all events (and histogram bins with uncertainties) More... | |
std::map< FakeBkgTools::FinalState, FakeBkgTools::Weight > | m_cachedWeights |
cached weight+uncertainties for a single event Each tool derived from this base class MUST clear the map in addEventCustom()! More... | |
std::map< TH1 *, std::pair< uint32_t, uint32_t > > | m_histogramYieldsRange |
bool | m_initialized = false |
bool | m_needEventInfo = true |
bool | m_convertWhenMissing = false |
std::vector< FakeBkgTools::ParticleData > | m_particles |
std::unique_ptr< FakeBkgTools::Database > | m_database |
float | m_externalWeight |
std::hash< std::string > | m_hasher |
comes from Event passed to addEvent() More... | |
std::set< FakeBkgTools::FinalState > | m_cachedFinalStates |
std::map< TH1 *, const float * > | m_values_1dhisto_map |
std::map< TH2 *, std::pair< const float *, const float * > > | m_values_2dhisto_map |
std::map< TH3 *, std::tuple< const float *, const float *, const float * > > | m_values_3dhisto_map |
std::string | m_selection = defaultSelection() |
'selection' settings used to compute the total yield / fill histograms More... | |
std::string | m_process = defaultProcess() |
'process' settings used to compute the total yield / fill histograms More... | |
std::string | m_energyUnit |
property EnergyUnit user can choose between MeV or GeV to indicate the unit of the pT parametrization of efficiencies in the input files More... | |
bool | m_useDB = true |
std::vector< std::string > | m_inputFiles |
property InputFiles More... | |
std::string | m_tightDecoNameAndType |
property TightDecoration More... | |
CP::ISelectionReadAccessor * | m_tightAccessor = nullptr |
this can't be a unique_ptr as this can cause issues with the dictionary in some particular circumstances More... | |
std::string | m_progressFileName |
property ProgressFileName More... | |
std::string | m_progressFileDirectory |
property ProgressFileDirectory More... | |
UncertaintyList * | m_selectedUncertainties = nullptr |
Pointer to a value of the 'm_systSetDict' map it must be invalidated each time the map is updated in principle only applySystematicVariation() needs to do that. More... | |
std::unordered_map< CP::SystematicSet, UncertaintyList > | m_systSetDict |
List of uncertainties in internal format, associated with a particular SystematicSet the m_selectedUncertainties pointer must be invalidated each time this map is updated in principle only applySystematicVariation() needs to do that. More... | |
bool | m_unlimitedSystematicVariations = true |
used to prevent multiple calls to applySystematicVariation() when unsupported set to true in a particular tool's constructor to disable the possibility of calling applySystematicVariation() more than once / after the first call to addEvent() More... | |
bool | m_lockedSystematicVariations = false |
when m_unlimitedSystematicVariations=false, keeps track of prior calls to applySystematicVariation() / addEvent() More... | |
SG::ConstAccessor< float > | m_accRealEff |
SG::ConstAccessor< float > | m_accFakeEff |
only used when m_useDB is false More... | |
Private Types | |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
StatusCode | getEventWeightCommon (FakeBkgTools::Weight &weight, const std::string &selection, const std::string &process) |
StatusCode | mergeSubjobs () |
template<class C > | |
StatusCode | addEventImpl (const C &iparticles, float mcWeight) |
only used when m_useDB is false More... | |
bool | importEfficiencies (bool resetDB=false) |
load the config file(s) storing efficiencies More... | |
std::pair< uint16_t, float > | identifyCpSystematicVariation (const CP::SystematicVariation &systematic) const |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
specialization for handling Gaudi::Property<SG::VarHandleKey> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
specialization for handling Gaudi::Property<SG::VarHandleBase> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More... | |
Private Attributes | |
StoreGateSvc_t | m_evtStore |
Pointer to StoreGate (event store by default) More... | |
StoreGateSvc_t | m_detStore |
Pointer to StoreGate (detector store by default) More... | |
std::vector< SG::VarHandleKeyArray * > | m_vhka |
bool | m_varHandleArraysDeclared |
Definition at line 38 of file BaseLinearFakeBkgTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
BaseLinearFakeBkgTool::BaseLinearFakeBkgTool | ( | const std::string & | toolname | ) |
Definition at line 25 of file BaseLinearFakeBkgTool.cxx.
|
virtual |
Definition at line 30 of file BaseLinearFakeBkgTool.cxx.
|
finaloverridevirtualinherited |
supply list of leptons / global variables, internal counters incremented Does not return anything; event weight(s) must be retrieved by subsequent call(s) to getEventWeight() (for tools inheriting from ILinearFakeBkgTool)
Implements CP::IFakeBkgTool.
Definition at line 243 of file BaseFakeBkgTool.cxx.
|
finaloverridevirtualinherited |
supply list of leptons / global variables, internal counters incremented Does not return anything; event weight(s) must be retrieved by subsequent call(s) to getEventWeight() (for tools inheriting from ILinearFakeBkgTool)
Implements CP::IFakeBkgTool.
Definition at line 238 of file BaseFakeBkgTool.cxx.
|
protectedpure virtualinherited |
Implemented in CP::ApplyFakeFactor, CP::LhoodMM_tools, CP::ApplyE2YFakeRate, and CP::AsymptMatrixTool.
|
privateinherited |
only used when m_useDB is false
prevent further calls to applySystematicVariation() if not allowed
only retrieved if some of the efficiency parameters are event-level!
for standalone compilation, pp is already a reference and the * operator is redefined to a no-op so that this works
Definition at line 174 of file BaseFakeBkgTool.cxx.
|
overridevirtualinherited |
the list of all systematics this tool can be affected by
Implements CP::IReentrantSystematicsTool.
Definition at line 438 of file BaseFakeBkgTool.cxx.
|
overridevirtualinherited |
These functions are slow, don't use them in the tools implementations.
Implements CP::IFakeBkgSystDescriptor.
Definition at line 618 of file BaseFakeBkgTool.cxx.
|
finaloverridevirtualinherited |
checks whether the specified source of uncertainty affects electrons
Implements CP::IFakeBkgSystDescriptor.
Definition at line 576 of file BaseFakeBkgTool.cxx.
|
finaloverridevirtualinherited |
checks whether the specified source of uncertainty affects fake efficiencies
Implements CP::IFakeBkgSystDescriptor.
Definition at line 604 of file BaseFakeBkgTool.cxx.
|
finaloverridevirtualinherited |
checks whether the specified source of uncertainty affects fake factors
Implements CP::IFakeBkgSystDescriptor.
Definition at line 611 of file BaseFakeBkgTool.cxx.
|
finaloverridevirtualinherited |
checks whether the specified source of uncertainty affects muons
Implements CP::IFakeBkgSystDescriptor.
Definition at line 583 of file BaseFakeBkgTool.cxx.
|
finaloverridevirtualinherited |
checks whether the specified source of uncertainty affects real efficiencies
Implements CP::IFakeBkgSystDescriptor.
Definition at line 597 of file BaseFakeBkgTool.cxx.
|
finaloverridevirtualinherited |
checks whether the specified source of uncertainty affects taus
Implements CP::IFakeBkgSystDescriptor.
Definition at line 590 of file BaseFakeBkgTool.cxx.
|
overridevirtualinherited |
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
prevent further calls to applySystematicVariation() if not allowed
Implements CP::ISystematicsTool.
Definition at line 465 of file BaseFakeBkgTool.cxx.
StatusCode BaseLinearFakeBkgTool::assignYieldRange | ( | TH1 * | h | ) |
Definition at line 142 of file BaseLinearFakeBkgTool.cxx.
|
protectedinherited |
Definition at line 359 of file BaseFakeBkgTool.cxx.
|
protectedpure virtualinherited |
This indicates which type of efficiencies/fake factor need to be filled.
Implemented in CP::LhoodMM_tools, CP::ApplyFakeFactor, CP::ApplyE2YFakeRate, and CP::AsymptMatrixTool.
Definition at line 75 of file BaseFakeBkgTool.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>
Definition at line 199 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 259 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlinestaticconstexprinherited |
default value taken by the 'process' argument of several methods or properties It indicates what should be treated as fake lepton background.
The syntax supported for this arguments is described in the package documentation.
Definition at line 38 of file IFakeBkgTool.h.
|
inlinestaticconstexprinherited |
default value taken by the 'selection' argument of several methods or properties It indicates how the analysis selects leptons in the signal region The syntax supported for this arguments is described in the package documentation.
Definition at line 33 of file IFakeBkgTool.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 85 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 90 of file AthCommonDataStore.h.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
protectedinherited |
|
finaloverridevirtual |
returns an event weight addEvent() must have been called before hand.
Can be called several times for the same event, possibly with different arguments. The 'selection' argument indicates how the analysis selects leptons in the signal region The 'process' argument indicates what should be treated as fake lepton background. The syntax supported for these two arguments is described in the package documentation. The extraWeight argument specified to addEvent() is NOT included in the returned weight.
Implements CP::ILinearFakeBkgTool.
Definition at line 39 of file BaseLinearFakeBkgTool.cxx.
|
private |
Definition at line 47 of file BaseLinearFakeBkgTool.cxx.
|
protectedpure virtual |
Implemented in CP::ApplyFakeFactor, CP::ApplyE2YFakeRate, and CP::AsymptMatrixTool.
|
inherited |
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the SG::sgkey_t
key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
ptr | The bare pointer to the object that the event store should know about |
Definition at line 119 of file AsgTool.cxx.
|
protectedinherited |
Definition at line 385 of file BaseFakeBkgTool.cxx.
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the std::string
name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
ptr | The bare pointer to the object that the event store should know about |
Definition at line 106 of file AsgTool.cxx.
Get one of the tool's properties.
|
inlineoverridevirtualinherited |
retrieves an interface to various helper methods to identify what the different SystematicVariations correspond to
Implements CP::IFakeBkgTool.
Definition at line 74 of file BaseFakeBkgTool.h.
|
finaloverridevirtual |
returns the accumulated fake lepton background yield (or compute it, in the case of the likelihood matrix method), and fills the registered histograms (if any) The 'selection' and 'process' settings used for these operations can be chosen with the 'Selection' and 'Process' properties.
Only statistical uncertainties can be retrieved; use applySystematicVariation() to obtain uncertainties
Implements CP::IFakeBkgTool.
Definition at line 70 of file BaseLinearFakeBkgTool.cxx.
|
finaloverridevirtualinherited |
returns a human-readable description of the source of systematic uncertainty specified as argument
need to add more info (bin index, etc)
Implements CP::IFakeBkgSystDescriptor.
Definition at line 519 of file BaseFakeBkgTool.cxx.
|
privateinherited |
Definition at line 417 of file BaseFakeBkgTool.cxx.
|
privateinherited |
load the config file(s) storing efficiencies
XML parsing error
ROOT histograms importing error, or unknown error
Definition at line 127 of file BaseFakeBkgTool.cxx.
|
protected |
be sure to only call this once per event! (typically at the end of addEvent())
note: we multiply by m_externalWeight which means that it is NOT included in m_eventWeight
Definition at line 97 of file BaseLinearFakeBkgTool.cxx.
|
overridevirtual |
Dummy implementation of the initialisation function.
It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...
Reimplemented from CP::BaseFakeBkgTool.
Reimplemented in CP::ApplyFakeFactor, CP::ApplyE2YFakeRate, and CP::AsymptMatrixTool.
Definition at line 34 of file BaseLinearFakeBkgTool.cxx.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
overridevirtualinherited |
Declare the interface that this class provides.
returns: whether this tool is affected by the given systematics
Implements CP::ISystematicsTool.
Definition at line 433 of file BaseFakeBkgTool.cxx.
|
finaloverridevirtualinherited |
checks whether the specified source of uncertainty originates from a statistical uncertainty in the efficiencies (as opposed to systematic)
Implements CP::IFakeBkgSystDescriptor.
Definition at line 569 of file BaseFakeBkgTool.cxx.
|
finaloverridevirtualinherited |
checks whether the specified source of uncertainty originates from a systematic uncertainty in the efficiencies (as opposed to statistical)
Implements CP::IFakeBkgSystDescriptor.
Definition at line 562 of file BaseFakeBkgTool.cxx.
|
private |
To do: check that the registered histograms are compatible with the saved ones for that, will just need to list the histograms in the directory and call register1/2DHistogram(), where the checks are made.
histogram not registered? don't load the data
Definition at line 222 of file BaseLinearFakeBkgTool.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
Definition at line 101 of file AsgTool.cxx.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
|
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.
|
finaloverridevirtualinherited |
prints a human-readable description of the source of systematic uncertainty specified as argument
Implements CP::IFakeBkgSystDescriptor.
Definition at line 513 of file BaseFakeBkgTool.cxx.
|
overridevirtualinherited |
the list of all systematics this tool recommends to use
Implements CP::IReentrantSystematicsTool.
Definition at line 460 of file BaseFakeBkgTool.cxx.
|
overridevirtual |
associates a 1D histogram to the tool, to obtain a binned estimate of the fake lepton background the 'val' argument points to a variable corresponding to the X axis of the histogram and that needs to be updated before each call to addEvent() undefined behaviour if the pointers are invalidated during the tool's lifetime
Reimplemented from CP::BaseFakeBkgTool.
Definition at line 121 of file BaseLinearFakeBkgTool.cxx.
|
overridevirtual |
associates a 2D histogram to the tool, to obtain a binned estimate of the fake lepton background the 'xval' / 'yval' arguments point to variables corresponding to the X/Y axis of the histogram and that need to be updated before each call to addEvent() undefined behaviour if the pointers are invalidated during the tool's lifetime
Reimplemented from CP::BaseFakeBkgTool.
Definition at line 128 of file BaseLinearFakeBkgTool.cxx.
|
overridevirtual |
associates a 3D histogram to the tool, to obtain a binned estimate of the fake lepton background
the 'xval' / 'yval' / 'zval' arguments point to variables corresponding to the X/Y/Z axis of the histogram and that need to be updated before each call to addEvent() undefined behaviour if the pointers are invalidated during the tool's lifetime
Reimplemented from CP::BaseFakeBkgTool.
Definition at line 135 of file BaseLinearFakeBkgTool.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
overridevirtual |
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
protectedinherited |
only used when m_useDB is false
Definition at line 177 of file BaseFakeBkgTool.h.
|
protectedinherited |
Definition at line 175 of file BaseFakeBkgTool.h.
|
protectedinherited |
Definition at line 99 of file BaseFakeBkgTool.h.
|
protected |
cached weight+uncertainties for a single event Each tool derived from this base class MUST clear the map in addEventCustom()!
Definition at line 67 of file BaseLinearFakeBkgTool.h.
|
protectedinherited |
Definition at line 80 of file BaseFakeBkgTool.h.
|
protectedinherited |
Definition at line 91 of file BaseFakeBkgTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
protectedinherited |
property EnergyUnit user can choose between MeV or GeV to indicate the unit of the pT parametrization of efficiencies in the input files
Definition at line 122 of file BaseFakeBkgTool.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
protectedinherited |
Definition at line 95 of file BaseFakeBkgTool.h.
|
protectedinherited |
comes from Event passed to addEvent()
Definition at line 97 of file BaseFakeBkgTool.h.
|
protected |
Definition at line 73 of file BaseLinearFakeBkgTool.h.
|
protectedinherited |
Definition at line 78 of file BaseFakeBkgTool.h.
|
protectedinherited |
property InputFiles
Definition at line 127 of file BaseFakeBkgTool.h.
|
protectedinherited |
when m_unlimitedSystematicVariations=false, keeps track of prior calls to applySystematicVariation() / addEvent()
Definition at line 173 of file BaseFakeBkgTool.h.
|
protectedinherited |
Definition at line 79 of file BaseFakeBkgTool.h.
|
protectedinherited |
Definition at line 85 of file BaseFakeBkgTool.h.
|
protectedinherited |
'process' settings used to compute the total yield / fill histograms
Definition at line 118 of file BaseFakeBkgTool.h.
|
protectedinherited |
property ProgressFileDirectory
Definition at line 139 of file BaseFakeBkgTool.h.
|
protectedinherited |
property ProgressFileName
Definition at line 136 of file BaseFakeBkgTool.h.
|
protectedinherited |
Pointer to a value of the 'm_systSetDict' map it must be invalidated each time the map is updated in principle only applySystematicVariation() needs to do that.
Definition at line 161 of file BaseFakeBkgTool.h.
|
protectedinherited |
'selection' settings used to compute the total yield / fill histograms
Definition at line 115 of file BaseFakeBkgTool.h.
|
protectedinherited |
List of uncertainties in internal format, associated with a particular SystematicSet the m_selectedUncertainties pointer must be invalidated each time this map is updated in principle only applySystematicVariation() needs to do that.
Definition at line 166 of file BaseFakeBkgTool.h.
|
protectedinherited |
this can't be a unique_ptr as this can cause issues with the dictionary in some particular circumstances
Definition at line 133 of file BaseFakeBkgTool.h.
|
protectedinherited |
property TightDecoration
Definition at line 130 of file BaseFakeBkgTool.h.
|
protectedinherited |
used to prevent multiple calls to applySystematicVariation() when unsupported set to true in a particular tool's constructor to disable the possibility of calling applySystematicVariation() more than once / after the first call to addEvent()
Definition at line 170 of file BaseFakeBkgTool.h.
|
protectedinherited |
Definition at line 124 of file BaseFakeBkgTool.h.
|
protectedinherited |
Definition at line 108 of file BaseFakeBkgTool.h.
|
protectedinherited |
Definition at line 109 of file BaseFakeBkgTool.h.
|
protectedinherited |
Definition at line 110 of file BaseFakeBkgTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
protected |
accumulated yield for all events (and histogram bins with uncertainties)
Definition at line 63 of file BaseLinearFakeBkgTool.h.