rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
ChargedLeptons.hh
1 // -*- C++ -*-
2 #ifndef RIVET_ChargedLeptons_HH
3 #define RIVET_ChargedLeptons_HH
4 
5 #include "Rivet/Projection.hh"
6 #include "Rivet/Projections/ChargedFinalState.hh"
7 #include "Rivet/Particle.hh"
8 #include "Rivet/Event.hh"
9 
10 namespace Rivet {
11 
12 
16  class ChargedLeptons : public FinalState {
17  public:
18 
21  setName("ChargedLeptons");
22  addProjection(ChargedFinalState(fsp), "ChFS");
23  }
24 
26  ChargedLeptons(const Cut& c)
28  { }
29 
30 
33 
34 
35  protected:
36 
38  void project(const Event& evt);
39 
41  int compare(const Projection& other) const;
42 
43  public:
44 
46  const Particles& chargedLeptons() const {
47  return _theParticles;
48  }
49 
50  };
51 
52 
53 }
54 
55 #endif
DEFAULT_RIVET_PROJ_CLONE(ChargedLeptons)
Clone on the heap.
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:133
Definition: ALICE_2010_I880049.cc:13
FinalState(const Cut &c=Cuts::open())
Construction using Cuts object.
Definition: FinalState.cc:7
void project(const Event &evt)
Apply the projection to the event.
Definition: ChargedLeptons.cc:12
int compare(const Projection &other) const
Compare projections.
Definition: ChargedLeptons.cc:7
ChargedLeptons(const Cut &c)
Constructor via Cut.
Definition: ChargedLeptons.hh:26
ChargedLeptons(const FinalState &fsp=FinalState())
Constructor.
Definition: ChargedLeptons.hh:20
Definition: Event.hh:22
Get charged final-state leptons.
Definition: ChargedLeptons.hh:16
const Particles & chargedLeptons() const
Access the projected leptons.
Definition: ChargedLeptons.hh:46
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
Project only charged final state particles.
Definition: ChargedFinalState.hh:11
Base class for all Rivet projections.
Definition: Projection.hh:29