rivet is hosted by Hepforge, IPPP Durham
Rivet 3.1.6
InvMassFinalState.hh
1// -*- C++ -*-
2#ifndef RIVET_InvMassFinalState_HH
3#define RIVET_InvMassFinalState_HH
4
5#include "Rivet/Projections/FinalState.hh"
6
7namespace Rivet {
8
9
12 public:
13
16 const std::pair<PdgId, PdgId>& idpair, // pair of decay products
17 double minmass, // min inv mass
18 double maxmass, // max inv mass
19 double masstarget=-1.0);
20
21
24 const std::vector<std::pair<PdgId, PdgId> >& idpairs, // vector of pairs of decay products
25 double minmass, // min inv mass
26 double maxmass, // max inv mass
27 double masstarget=-1.0);
28
29
31 InvMassFinalState(const std::pair<PdgId, PdgId>& idpair, // pair of decay products
32 double minmass, // min inv mass
33 double maxmass, // max inv mass
34 double masstarget=-1.0);
35 InvMassFinalState(const std::vector<std::pair<PdgId, PdgId> >& idpairs, // vector of pairs of decay products
36 double minmass, // min inv mass
37 double maxmass, // max inv mass
38 double masstarget=-1.0);
39
40
43
44
46 const std::vector<std::pair<Particle, Particle> >& particlePairs() const;
47
48
50 void useTransverseMass(bool usetrans=true) {
51 _useTransverseMass = usetrans;
52 }
53
55 void calc(const Particles& inparticles);
56
57
59 void project(const Event& e);
60
62 CmpState compare(const Projection& p) const;
63
64
65 private:
66
68 vector<PdgIdPair> _decayids;
69
71 vector<pair<Particle, Particle> > _particlePairs;
72
74 double _minmass;
75
77 double _maxmass;
78
80 double _masstarget;
81
83 bool _useTransverseMass;
84
85 };
86
87
88}
89
90
91#endif
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:50
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:653
Definition: MC_Cent_pPb.hh:10