2#ifndef RIVET_InvMassFinalState_HH
3#define RIVET_InvMassFinalState_HH
5#include "Rivet/Projections/FinalState.hh"
16 const std::pair<PdgId, PdgId>& idpair,
19 double masstarget=-1.0);
24 const std::vector<std::pair<PdgId, PdgId> >& idpairs,
27 double masstarget=-1.0);
34 double masstarget=-1.0);
38 double masstarget=-1.0);
45 using Projection::operator =;
49 const std::vector<std::pair<Particle, Particle> >&
particlePairs()
const;
54 _useTransverseMass = usetrans;
71 vector<PdgIdPair> _decayids;
74 vector<pair<Particle, Particle> > _particlePairs;
86 bool _useTransverseMass;
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Definition FinalState.hh:12
Identify particles which can be paired to fit within a given invariant mass window.
Definition InvMassFinalState.hh:11
InvMassFinalState(const std::pair< PdgId, PdgId > &idpair, double minmass, double maxmass, double masstarget=-1.0)
Same thing as above, but we want to pass the particles directly to the calc method.
CmpState compare(const Projection &p) const
Compare projections.
const std::vector< std::pair< Particle, Particle > > & particlePairs() const
Constituent pairs.
void project(const Event &e)
Apply the projection on the supplied event.
DEFAULT_RIVET_PROJ_CLONE(InvMassFinalState)
Clone on the heap.
InvMassFinalState(const FinalState &fsp, const std::pair< PdgId, PdgId > &idpair, double minmass, double maxmass, double masstarget=-1.0)
Constructor for a single inv-mass pair.
void useTransverseMass(bool usetrans=true)
Choose whether to use the full inv mass or just the transverse mass.
Definition InvMassFinalState.hh:53
void calc(const Particles &inparticles)
Operate on a given particle vector directly instead of through project (no caching)
InvMassFinalState(const FinalState &fsp, const std::vector< std::pair< PdgId, PdgId > > &idpairs, double minmass, double maxmass, double masstarget=-1.0)
Constructor for multiple inv-mass pairs.
Specialised vector of Particle objects.
Definition Particle.hh:25
Base class for all Rivet projections.
Definition Projection.hh:29
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:684
Definition MC_Cent_pPb.hh:10