14 declareInterface<IInsituTrackTools>(
this);
39 float TrackPTIsolation1 = 0.0;
50 float TrackPTIsolation1 = 0.0;
64 return (tvec1+tvec2).M();
90 double dphi = std::abs(track1->
phi()-track2->
phi());
91 if (dphi>
M_PI) dphi = std::abs(dphi-2.0*
M_PI);
92 return std::sqrt(std::pow(track1->
eta()-track2->
eta(),2)+std::pow(dphi,2));
99 if (
sc.isFailure() || !trackTES)
return false;
104 double track_eta = trackParticle->
eta();
105 double track_phi = trackParticle->
phi();
113 for (; trackItr != trackItrE; ++trackItr)
116 id_eta = (*trackItr)->eta();
117 id_phi = (*trackItr)->phi();
119 dr = std::sqrt(std::pow(id_eta-track_eta,2)+std::pow(id_phi-track_phi,2));
120 if ((0.01<dr) && (dr<0.4))
123 PtIsolation+=(*trackItr)->pt();
134 if (
getTrackIsolation(trackParticle, PtIsolation, NIsolation)==
true)
return PtIsolation;
142 if (
getTrackIsolation(trackParticle, PtIsolation, NIsolation)==
true)
return NIsolation;
151 if (
sc.isFailure() || !jetTES)
return -1.;
153 double track_eta = trackParticle->
eta();
154 double track_phi = trackParticle->
phi();
156 double jet_energy = 0.0;
157 double jet_eta = 0.0;
158 double jet_phi = 0.0;
165 for(; jetItr != jetItrE; ++jetItr)
167 jet_eta = (*jetItr)->eta();
168 jet_phi = (*jetItr)->phi();
170 dr = std::sqrt(std::pow(jet_eta-track_eta,2)+std::pow(jet_phi-track_phi,2));
171 if ((0.01<dr) && (dr<0.4)) jet_energy+=(*jetItr)->pt();
A number of constexpr particle constants to avoid hardcoding them directly in various places.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
virtual double phi() const =0
phi in [-pi,pi[
virtual double pt() const =0
transverse momentum
virtual double eta() const =0
pseudo rapidity
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
constexpr double muonMassInMeV
the mass of the muon (in MeV)