25 StatusCode MuonTriggerEfficiencyScaleFactorAlg ::
31 return StatusCode::FAILURE;
36 ANA_MSG_ERROR (
"no scale factor or efficiency decoration name set");
37 return StatusCode::FAILURE;
51 return StatusCode::SUCCESS;
56 StatusCode MuonTriggerEfficiencyScaleFactorAlg ::
68 unsigned int randomRunNumber = acc_rnd(*eventInfo);
69 bool validEvent = m_minRunNumber <= randomRunNumber && m_maxRunNumber >= randomRunNumber;
109 return StatusCode::SUCCESS;
DataVector adapter that acts like it holds const pointers.
#define ANA_CHECK_CORRECTION(helper, object, expr)
a helper check macro to work with OutOfValidityHelper
SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the EventInfo collection we use
Gaudi::Property< std::string > m_trigger
trigger to run efficiency for
SysListHandle m_systematicsList
the systematics list we run
SysWriteDecorHandle< float > m_dataEfficiencyDecoration
the decoration for the muon data efficiency
ToolHandle< IMuonTriggerScaleFactors > m_efficiencyScaleFactorTool
the smearing tool
SysWriteDecorHandle< float > m_scaleFactorDecoration
the decoration for the muon scale factor
SysReadHandle< xAOD::MuonContainer > m_muonHandle
the muon collection we run on
SysWriteDecorHandle< float > m_mcEfficiencyDecoration
the decoration for the muon mc efficiency
SysReadSelectionHandle m_preselection
the preselection we apply to our input
OutOfValidityHelper m_outOfValidity
the helper for OutOfValidity results
DataVector adapter that acts like it holds const pointers.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const DV * asDataVector() const
Return a pointer to this object, as a const DataVector.
Helper class to provide constant type-safe access to aux data.
Select isolated Photons, Electrons and Muons.
constexpr float invalidEfficiency()
the decoration value to use if there is no valid efficiency decoration
constexpr float invalidScaleFactor()
the decoration value to use if there is no valid scale factor decoration
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
EventInfo_v1 EventInfo
Definition of the latest event info version.
Muon_v1 Muon
Reference the current persistent version:
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".