21 StatusCode BJetCalibrationAlg ::
36 ATH_MSG_ERROR (
"muonSelectionTool and muonPreselection should not be configured simultaneously");
37 return StatusCode::FAILURE;
45 return StatusCode::SUCCESS;
48 StatusCode BJetCalibrationAlg ::
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;
ToolHandle< IBJetCorrectionTool > m_bJetTool
the b-jet pt correction tool
SysReadSelectionHandle m_jetPreselection
SysCopyHandle< xAOD::JetContainer > m_jetHandle
SysReadSelectionHandle m_muonPreselection
ToolHandle< CP::IMuonSelectionTool > m_muonSelectionTool
the muon-in-jet selection tool, unused if muonPreselection set
SysListHandle m_systematicsList
SysReadHandle< xAOD::MuonContainer > m_muonHandle
ToolHandle< IMuonInJetCorrectionTool > m_muonInJetTool
the muon-in-jet correction tool
SysWriteDecorHandle< int > m_nmuons
size_type size() const noexcept
Returns the number of elements in the collection.
Select isolated Photons, Electrons and Muons.
Jet_v1 Jet
Definition of the current "jet version".
Muon_v1 Muon
Reference the current persistent version:
JetContainer_v1 JetContainer
Definition of the current "jet container version".
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".