rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
FinalState.hh
1 // -*- C++ -*-
2 #ifndef RIVET_FinalState_HH
3 #define RIVET_FinalState_HH
4 
5 #include "Rivet/Projections/ParticleFinder.hh"
6 
7 namespace Rivet {
8 
9 
12  class FinalState : public ParticleFinder {
13  public:
14 
16 
17 
19  FinalState(const Cut& c=Cuts::open());
20 
22  FinalState(const FinalState& fsp, const Cut& c);
23 
26  FinalState(double mineta, double maxeta, double minpt=0.0*GeV);
27 
30 
32 
33 
35  virtual void project(const Event& e);
36 
38  virtual int compare(const Projection& p) const;
39 
42  virtual bool accept(const Particle& p) const;
43 
44 
45  private:
46 
47  // Hide lossy copy constructors for all classes derived from FinalState
48  template<typename T> FinalState(const T& rhs);
49  template<typename T> FinalState const& operator=(T const& rhs);
50 
51  };
52 
53 
54 }
55 
56 #endif
Definition: ALICE_2010_I880049.cc:13
DEFAULT_RIVET_PROJ_CLONE(FinalState)
Clone on the heap.
FinalState(const Cut &c=Cuts::open())
Construction using Cuts object.
Definition: FinalState.cc:7
Particle representation, either from a HepMC::GenEvent or reconstructed.
Definition: Particle.hh:18
Base class for projections which return subsets of an event&#39;s particles.
Definition: ParticleFinder.hh:11
virtual bool accept(const Particle &p) const
Decide if a particle is to be accepted or not.
Definition: FinalState.cc:94
Definition: Event.hh:22
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
virtual int compare(const Projection &p) const
Compare projections.
Definition: FinalState.cc:46
virtual void project(const Event &e)
Apply the projection to the event.
Definition: FinalState.cc:63
Base class for all Rivet projections.
Definition: Projection.hh:29