22 float particleEta = particle->eta();
23 float particlePhi = particle->phi();
26 float deltaEta = (*trIt)->eta() - particleEta;
27 float deltaPhi = fabs((*trIt)->phi() - particlePhi);
30 if (
deltaR < coneSize) mask[i] =
true;
39 float particleEta = particle->eta();
40 float particlePhi = particle->phi();
43 float deltaEta = (*trIt)->eta() - particleEta;
44 float deltaPhi = fabs((*trIt)->phi() - particlePhi);
47 if (
deltaR < coneSize) mask[i] =
true;
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
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.
Class providing the definition of the 4-vector interface.
double deltaR(double eta1, double eta2, double phi1, double phi2)
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
TauTrackContainer_v1 TauTrackContainer
Definition of the current TauTrack container version.
void select(const xAOD::IParticle *particle, float coneSize, const xAOD::TrackParticleContainer *tracks, std::vector< bool > &mask)
void select(const xAOD::IParticle *particle, float coneSize, const xAOD::TauTrackContainer *tracks, std::vector< bool > &mask)