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);
46 const std::vector<std::pair<Particle, Particle> >&
particlePairs()
const;
51 _useTransverseMass = usetrans;
55 void calc(
const Particles& inparticles);
68 vector<PdgIdPair> _decayids;
71 vector<pair<Particle, Particle> > _particlePairs;
83 bool _useTransverseMass;
Definition: MC_Cent_pPb.hh:10
const std::vector< std::pair< Particle, Particle > > & particlePairs() const
Constituent pairs.
Identify particles which can be paired to fit within a given invariant mass window.
Definition: InvMassFinalState.hh:11
void project(const Event &e)
Apply the projection on the supplied event.
DEFAULT_RIVET_PROJ_CLONE(InvMassFinalState)
Clone on the heap.
Representation of a HepMC event, and enabler of Projection caching.
Definition: Event.hh:22
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.
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:12
void useTransverseMass(bool usetrans=true)
Choose whether to use the full inv mass or just the transverse mass.
Definition: InvMassFinalState.hh:50
void calc(const Particles &inparticles)
Operate on a given particle vector directly instead of through project (no caching) ...
CmpState compare(const Projection &p) const
Compare projections.
Base class for all Rivet projections.
Definition: Projection.hh:29