|
ATLAS Offline Software
|
Go to the documentation of this file.
31 return StatusCode::FAILURE;
36 ANA_MSG_ERROR (
"no scale factor or efficiency decoration name set");
37 return StatusCode::FAILURE;
51 return StatusCode::SUCCESS;
68 unsigned int randomRunNumber = acc_rnd(*eventInfo);
69 bool validEvent = m_minRunNumber <= randomRunNumber && m_maxRunNumber >= randomRunNumber;
109 return StatusCode::SUCCESS;
void set(const SG::AuxElement &object, const T &value, const CP::SystematicSet &sys) const
set the object decoration for the given systematic
OutOfValidityHelper m_outOfValidity
the helper for OutOfValidity results
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
DataVector adapter that acts like it holds const pointers.
SysWriteDecorHandle< float > m_dataEfficiencyDecoration
the decoration for the muon data efficiency
SysReadHandle< xAOD::MuonContainer > m_muonHandle
the muon collection we run on
StatusCode addSystematics(const CP::SystematicSet &recommended, const CP::SystematicSet &affecting)
register a set of affecting variables for the current algorithm (usually obtained from an CP::ISystem...
::StatusCode retrieve(const T *&object, const CP::SystematicSet &sys) const
retrieve the object for the given name
Helper class to provide constant type-safe access to aux data.
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
Select isolated Photons, Electrons and Muons.
const DV * asDataVector() const
Return a pointer to this object, as a const DataVector.
constexpr float invalidScaleFactor()
the decoration value to use if there is no valid scale factor decoration
StatusCode initialize(SysListHandle &sysListHandle)
initialize this handle
::StatusCode initialize()
intialize this property
bool getBool(const SG::AuxElement &element, const CP::SystematicSet &sys) const
get the selection as a bool
StatusCode initialize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize this handle
SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the EventInfo collection we use
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Gaudi::Property< std::string > m_trigger
trigger to run efficiency for
#define ANA_CHECK_CORRECTION(helper, object, expr)
a helper check macro to work with OutOfValidityHelper
SysListHandle m_systematicsList
the systematics list we run
virtual bool empty() const noexcept override
whether we have a name configured
value_type push_back(value_type pElem)
Add an element to the end of the collection.
::StatusCode initialize()
standard initialize
ToolHandle< IMuonTriggerScaleFactors > m_efficiencyScaleFactorTool
the smearing tool
StatusCode execute() override
Class describing the basic event information.
SysWriteDecorHandle< float > m_scaleFactorDecoration
the decoration for the muon scale factor
DataVector adapter that acts like it holds const pointers.
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor
SysWriteDecorHandle< float > m_mcEfficiencyDecoration
the decoration for the muon mc efficiency
constexpr float invalidEfficiency()
the decoration value to use if there is no valid efficiency decoration