rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
PrimaryHadrons.hh
1 // -*- C++ -*-
2 #ifndef RIVET_PrimaryHadrons_HH
3 #define RIVET_PrimaryHadrons_HH
4 
5 #include "Rivet/Projections/FinalState.hh"
6 #include "Rivet/Projections/UnstableFinalState.hh"
7 #include "Rivet/Particle.hh"
8 #include "Rivet/Event.hh"
9 
10 namespace Rivet {
11 
12 
17  class PrimaryHadrons : public FinalState {
18  public:
19 
21 
22 
24  PrimaryHadrons(const Cut& c=Cuts::open()) {
25  setName("PrimaryHadrons");
27  }
28 
31  PrimaryHadrons(double mineta, double maxeta, double minpt=0.0*GeV) {
32  setName("PrimaryHadrons");
33  addProjection(UnstableFinalState(Cuts::etaIn(mineta, maxeta) && Cuts::pT > minpt), "UFS");
34  }
35 
36 
39 
41 
42 
44  virtual void project(const Event& e);
45 
46  // /// Compare projections.
47  // int compare(const Projection& p) const;
48 
49  };
50 
51 
52 }
53 
54 
55 #endif
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:133
Definition: ALICE_2010_I880049.cc:13
virtual void project(const Event &e)
Apply the projection to the event.
Definition: PrimaryHadrons.cc:7
Project out all physical-but-decayed particles in an event.
Definition: UnstableFinalState.hh:26
Project out the first hadrons from hadronisation.
Definition: PrimaryHadrons.hh:17
PrimaryHadrons(const Cut &c=Cuts::open())
Constructor with cuts argument.
Definition: PrimaryHadrons.hh:24
Definition: Event.hh:22
PrimaryHadrons(double mineta, double maxeta, double minpt=0.0 *GeV)
Definition: PrimaryHadrons.hh:31
DEFAULT_RIVET_PROJ_CLONE(PrimaryHadrons)
Clone on the heap.
const Cut & open()
Fully open cut singleton, accepts everything.
Definition: Cuts.cc:81
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:12
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170