rivet is hosted by Hepforge, IPPP Durham
Rivet 4.0.0
HadronicFinalState.hh
1// -*- C++ -*-
2#ifndef RIVET_HadronicFinalState_HH
3#define RIVET_HadronicFinalState_HH
4
5#include "Rivet/Tools/Logging.hh"
6#include "Rivet/Config/RivetCommon.hh"
7#include "Rivet/Particle.hh"
8#include "Rivet/Event.hh"
9#include "Rivet/Projection.hh"
10#include "Rivet/Projections/FinalState.hh"
11
12namespace Rivet {
13
14
17 public:
18
21 setName("HadronicFinalState");
22 declare(fsp, "FS");
23 }
24
25 HadronicFinalState(const Cut& c=Cuts::open()) {
26 setName("HadronicFinalState");
27 declare(FinalState(c), "FS");
28 }
29
32
34 using Projection::operator =;
35
36
37 protected:
38
40 void project(const Event& e);
41
43 CmpState compare(const Projection& p) const;
44
45 };
46
47
48}
49
50#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
Project only hadronic final state particles.
Definition HadronicFinalState.hh:16
CmpState compare(const Projection &p) const
Compare projections.
void project(const Event &e)
Apply the projection on the supplied event.
HadronicFinalState(const FinalState &fsp)
Constructor: the supplied FinalState projection is assumed to live through the run.
Definition HadronicFinalState.hh:20
RIVET_DEFAULT_PROJ_CLONE(HadronicFinalState)
Clone on the heap.
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:175
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:148
const Cut & open()
Fully open cut singleton, accepts everything.
Definition MC_CENT_PPB_Projections.hh:10