17(
xAOD::Jet&
jet,
const std::vector< const xAOD::Muon* >& muons,
int& nmuons)
const {
22 muon_in_jet->
parameter(eLoss,xAOD::Muon::EnergyLoss);
23 TLorentzVector mu_tlv = muon_in_jet->
p4();
26 Loss.SetVectM(eLoss * (mu_tlv.Vect().Unit()), 0.);
27 TLorentzVector j =
jet.p4() - Loss + mu_tlv;
29 jet.setJetP4(new_jet);
32 return StatusCode::SUCCESS;
36(
const xAOD::Jet&
jet,
const std::vector< const xAOD::Muon* >& muons,
int& nmuons)
const
40 for(
const auto& muon : muons){
41 double dR =
jet.p4().DeltaR(muon->p4());
44 if(
m_doLargeR) dR_max = std::min(1.0, 0.04 + 200000./muon->pt());
45 else dR_max = std::min(0.4, 0.04 + 10000./muon->pt());
47 if(dR > dR_max)
continue;
50 if(!muon_in_jet || muon->pt() > muon_in_jet->
pt()) muon_in_jet = muon;
virtual FourMom_t p4() const
The full 4-momentum of the particle.
bool parameter(float &value, const ParamDef parameter) const
Get a parameter for this Muon - momentumBalanceSignificance for example.
virtual double pt() const
The transverse momentum ( ) of the particle.
Jet_v1 Jet
Definition of the current "jet version".
Muon_v1 Muon
Reference the current persistent version:
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.