rivet is hosted by Hepforge, IPPP Durham
Rivet 3.1.6
NeutralFinalState.hh
1// -*- C++ -*-
2#ifndef RIVET_NeutralFinalState_HH
3#define RIVET_NeutralFinalState_HH
4
5#include "Rivet/Projections/FinalState.hh"
6
7namespace Rivet {
8
9
12
13 public:
14
16
17
19 NeutralFinalState(const FinalState& fsp, double etmin=0*GeV)
20 : _Etmin(etmin)
21 {
22 setName("NeutralFinalState");
23 declare(fsp, "FS");
24 }
25
27 NeutralFinalState(const Cut& c=Cuts::open()) : _Etmin(0.0*GeV) {
28 setName("NeutralFinalState");
29 declare(FinalState(c), "FS");
30 }
31
34
36
37
39 void project(const Event& e);
40
42 CmpState compare(const Projection& p) const;
43
44
45 protected:
46
49 double _Etmin;
50
51 };
52
53
54}
55
56
57#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
FinalState(const Cut &c=Cuts::open())
Construction using Cuts object.
Project only neutral final state particles.
Definition: NeutralFinalState.hh:11
CmpState compare(const Projection &p) const
Compare projections.
NeutralFinalState(const FinalState &fsp, double etmin=0 *GeV)
Construction from another FinalState.
Definition: NeutralFinalState.hh:19
void project(const Event &e)
Apply the projection on the supplied event.
NeutralFinalState(const Cut &c=Cuts::open())
Construction using Cuts object.
Definition: NeutralFinalState.hh:27
DEFAULT_RIVET_PROJ_CLONE(NeutralFinalState)
Clone on the heap.
const PROJ & declare(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170
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:142
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.hh:10