rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
MergedFinalState.hh
1 // -*- C++ -*-
2 #ifndef RIVET_MergedFinalState_HH
3 #define RIVET_MergedFinalState_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 
12 namespace Rivet {
13 
14 
18  class MergedFinalState : public FinalState {
19  public:
20 
22 
23  MergedFinalState(const FinalState& fspa, const FinalState& fspb) {
24  setName("MergedFinalState");
25  addProjection(fspa, "FSA");
26  addProjection(fspb, "FSB");
27  }
28 
31 
33 
34  protected:
35 
37  void project(const Event& e);
38 
40  int compare(const Projection& p) const;
41  };
42 
43 
44 }
45 
46 
47 #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
int compare(const Projection &p) const
Compare projections.
Definition: MergedFinalState.cc:7
Definition: Event.hh:22
DEFAULT_RIVET_PROJ_CLONE(MergedFinalState)
Clone on the heap.
Get final state particles merged from two FinalState projections.
Definition: MergedFinalState.hh:18
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
Base class for all Rivet projections.
Definition: Projection.hh:29
void project(const Event &e)
Apply the projection on the supplied event.
Definition: MergedFinalState.cc:13