|
ATLAS Offline Software
|
Go to the documentation of this file.
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());
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.
::StatusCode StatusCode
StatusCode definition for legacy code.
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.
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.