Rivet API documentation

Rivet 4.1.3
FinalPartons.hh
1// -*- C++ -*-
2#ifndef RIVET_FinalPartons_HH
3#define RIVET_FinalPartons_HH
4
5#include "Rivet/Projections/FinalState.hh"
6
7namespace Rivet {
8
9
10 class FinalPartons : public FinalState {
11 public:
12
14 FinalPartons(const Cut& c=Cuts::open())
15 : FinalState(c) { }
16
19
21 using Projection::operator =;
22
24 void project(const Event& e);
25
26
27 protected:
28
30 bool accept(const Particle& p) const;
31
32 };
33
34
35}
36
37#endif
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
FinalPartons(const Cut &c=Cuts::open())
Constructor.
Definition FinalPartons.hh:14
RIVET_DEFAULT_PROJ_CLONE(FinalPartons)
Clone method.
void project(const Event &e)
Do the calculation.
bool accept(const Particle &p) const
Cut-applying method overload.
FinalState(const Cut &c=Cuts::OPEN)
Construction using Cuts object.
Particle representation, either from a HepMC::GenEvent or reconstructed.
Definition Particle.hh:45
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:653
const Cut & open()
Fully open cut singleton, accepts everything.
Definition MC_CENT_PPB_Projections.hh:10