Rivet API documentation

Rivet 4.1.3
NonHadronicFinalState.hh
1// -*- C++ -*-
2#ifndef RIVET_NonHadronicFinalState_HH
3#define RIVET_NonHadronicFinalState_HH
4
5#include "Rivet/Event.hh"
6#include "Rivet/Particle.hh"
7#include "Rivet/Projection.hh"
8#include "Rivet/Config/RivetCommon.hh"
9#include "Rivet/Projections/FinalState.hh"
10#include "Rivet/Tools/Logging.hh"
11
12namespace Rivet {
13
14
17 public:
18
21 setName("NonHadronicFinalState");
22 declare(fsp, "FS");
23 }
24
25 NonHadronicFinalState(const Cut& c = Cuts::open()) {
26 setName("NonHadronicFinalState");
27 declare(FinalState(c), "FS");
28 }
29
32
34 using Projection::operator=;
35
36
38 void project(const Event& e);
39
41 CmpState compare(const Projection& p) const;
42 };
43
44
45}
46
47
48#endif
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
FinalState(const Cut &c=Cuts::OPEN)
Construction using Cuts object.
void project(const Event &e)
Apply the projection on the supplied event.
CmpState compare(const Projection &p) const
Compare projections.
RIVET_DEFAULT_PROJ_CLONE(NonHadronicFinalState)
Clone on the heap.
NonHadronicFinalState(FinalState &fsp)
Constructor: the supplied FinalState projection is assumed to live through the run.
Definition NonHadronicFinalState.hh:20
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version).
Definition ProjectionApplier.hh:205
Base class for all Rivet projections.
Definition Projection.hh:29
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:146
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:819
const Cut & open()
Fully open cut singleton, accepts everything.
Definition LHCbCommon.hh:9