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);
50 const std::vector<std::pair<Particle, Particle> >&
particlePairs()
const;
55 _useTransverseMass = usetrans;
59 void calc(
const ParticleVector& inparticles);
65 return sqrt( (v1.
Et() + v2.
Et())*(v1.
Et() + v2.
Et()) -
66 (v1+v2).perp()*(v1+v2).
perp() );
81 std::vector<PdgIdPair> _decayids;
84 std::vector<std::pair<Particle, Particle> > _particlePairs;
96 bool _useTransverseMass;
Definition: MC_JetAnalysis.hh:9
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.
Definition: InvMassFinalState.cc:82
Projection()
The default constructor.
Definition: Projection.cc:10
double perp(const Vector3 &v)
Synonym for polarRadius.
Definition: Vector3.hh:266
virtual const Projection * clone() const
Clone on the heap.
Definition: InvMassFinalState.hh:42
friend class Event
Event is a friend.
Definition: Projection.hh:33
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.
int compare(const Projection &p) const
Compare projections.
Definition: InvMassFinalState.cc:55
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
void calc(const ParticleVector &inparticles)
Operate on a given particle vector directly instead of through project (no caching) ...
Definition: InvMassFinalState.cc:88
void useTransverseMass(bool usetrans=true)
Choose whether to use the full inv mass or just the transverse mass.
Definition: InvMassFinalState.hh:54
const std::vector< std::pair< Particle, Particle > > & particlePairs() const
Constituent pairs.
Definition: InvMassFinalState.cc:187
double Et() const
Calculate the transverse energy .
Definition: Vector4.hh:420
Base class for all Rivet projections.
Definition: Projection.hh:28
Specialized version of the FourVector with momentum/energy functionality.
Definition: Vector4.hh:324