Rivet  1.8.3
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  {
22  setName("ChargedLeptons");
23  addProjection(ChargedFinalState(fsp), "ChFS");
24  }
25 
27  virtual const Projection* clone() const {
28  return new ChargedLeptons(*this);
29  }
30 
31  protected:
32 
34  void project(const Event& evt);
35 
37  int compare(const Projection& other) const;
38 
39  public:
40 
42  const ParticleVector& chargedLeptons() const {
43  return _theParticles;
44  }
45 
46  };
47 
48 
49 }
50 
51 #endif
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Definition: MC_JetAnalysis.hh:9
void project(const Event &evt)
Apply the projection to the event.
Definition: ChargedLeptons.cc:15
int compare(const Projection &other) const
Compare projections.
Definition: ChargedLeptons.cc:10
Definition: Event.hh:22
Get charged final-state leptons.
Definition: ChargedLeptons.hh:16
virtual const Projection * clone() const
Clone on the heap.
Definition: ChargedLeptons.hh:27
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Project only charged final state particles.
Definition: ChargedFinalState.hh:16
Base class for all Rivet projections.
Definition: Projection.hh:28
const ParticleVector & chargedLeptons() const
Access the projected leptons.
Definition: ChargedLeptons.hh:42
ChargedLeptons(const FinalState &fsp)
Constructor.
Definition: ChargedLeptons.hh:20