6#ifndef JPSIUPSILONCOMMON
7#define JPSIUPSILONCOMMON
35 vtx.m_cleanup =
false;
46 std::span<const double> masses);
47 static double getPt(std::span<const xAOD::TrackParticle* const> tracks);
50 static bool cutRangeOR(std::span<double const> values,
double min,
double max)
noexcept;
51 static bool cutRange(
double value,
double min,
double max)
noexcept;
57 template <
typename... Tracks>
61 auto momentum = first->genvecP4();
65 ( (momentum += rest->genvecP4()), ... );
67 return std::sqrt(momentum.Perp2());
CleanUpVertex(const CleanUpVertex &)=delete
const xAOD::Vertex * m_vtx
CleanUpVertex(const xAOD::Vertex *vtx, bool cleanup)
CleanUpVertex(CleanUpVertex &&vtx) noexcept
CleanUpVertex & operator=(const CleanUpVertex &)=delete
const xAOD::Vertex * get() const
static double getPt(const xAOD::TrackParticle *first, const Tracks *... rest)
static bool cutRange(double value, double min, double max) noexcept
static void RelinkVertexMuons(std::span< const xAOD::MuonContainer *const > muoncols, xAOD::Vertex *vtx)
static double getInvariantMass(const xAOD::TrackParticle *trk1, double mass1, const xAOD::TrackParticle *trk2, double mass2)
static void RelinkVertexTracks(std::span< const xAOD::TrackParticleContainer *const > trkcols, xAOD::Vertex *vtx)
static bool cutAcceptGreaterOR(std::span< double const > values, double min) noexcept
static Analysis::CleanUpVertex ClosestRefPV(xAOD::BPhysHelper &, const xAOD::VertexContainer *, const Analysis::PrimaryVertexRefitter *)
static bool cutRangeOR(std::span< double const > values, double min, double max) noexcept
static bool isContainedIn(const xAOD::TrackParticle *, std::span< const xAOD::TrackParticle *const >) noexcept
static double getPt(std::span< const xAOD::TrackParticle *const > tracks)
static bool cutAcceptGreater(double value, double min) noexcept
The namespace of all packages in PhysicsAnalysis/JetTagging.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Vertex_v1 Vertex
Define the latest version of the vertex class.
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".