|
ATLAS Offline Software
|
Go to the documentation of this file.
36 ATH_MSG_ERROR (
"muonSelectionTool and muonPreselection should not be configured simultaneously");
37 return StatusCode::FAILURE;
45 return StatusCode::SUCCESS;
59 std::vector<const xAOD::Muon*> muons_for_correction;
60 muons_for_correction.reserve(muons->
size());
66 muons_for_correction.emplace_back(
muon);
71 jet->setJetP4(
"NoBJetCalibMomentum",
jet->jetP4());
72 jet->setJetP4(
"MuonCorrMomentum",
jet->jetP4());
77 jet->setJetP4(
"MuonCorrMomentum",
jet->jetP4());
87 return StatusCode::SUCCESS;
SysWriteDecorHandle< int > m_nmuons
void set(const SG::AuxElement &object, const T &value, const CP::SystematicSet &sys) const
set the object decoration for the given systematic
SysReadSelectionHandle m_muonPreselection
ToolHandle< IBJetCorrectionTool > m_bJetTool
the b-jet pt correction tool
ToolHandle< CP::IMuonSelectionTool > m_muonSelectionTool
the muon-in-jet selection tool, unused if muonPreselection set
SysCopyHandle< xAOD::JetContainer > m_jetHandle
::StatusCode retrieve(const T *&object, const CP::SystematicSet &sys) const
retrieve the object for the given name
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
ToolHandle< IMuonInJetCorrectionTool > m_muonInJetTool
the muon-in-jet correction tool
Select isolated Photons, Electrons and Muons.
SysReadSelectionHandle m_jetPreselection
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
SysListHandle m_systematicsList
StatusCode execute() override
SysReadHandle< xAOD::MuonContainer > m_muonHandle
virtual bool empty() const noexcept override
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor
size_type size() const noexcept
Returns the number of elements in the collection.