rivet is hosted by Hepforge, IPPP Durham
Rivet 4.0.2
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
10namespace Rivet {
11
12
16 class ChargedLeptons : public FinalState {
17 public:
18
21 setName("ChargedLeptons");
22 declare(ChargedFinalState(fsp), "ChFS");
23 }
24
26 ChargedLeptons(const Cut& c)
28 { }
29
30
33
35 using Projection::operator =;
36
37
38 protected:
39
41 void project(const Event& evt);
42
44 CmpState compare(const Projection& other) const;
45
46 public:
47
49 const Particles& chargedLeptons() const {
50 return _theParticles;
51 }
52
53 };
54
55
56}
57
58#endif
Project only charged final state particles.
Definition ChargedFinalState.hh:11
Get charged final-state leptons.
Definition ChargedLeptons.hh:16
CmpState compare(const Projection &other) const
Compare projections.
const Particles & chargedLeptons() const
Access the projected leptons.
Definition ChargedLeptons.hh:49
RIVET_DEFAULT_PROJ_CLONE(ChargedLeptons)
Clone on the heap.
void project(const Event &evt)
Apply the projection to the event.
ChargedLeptons(const FinalState &fsp=FinalState())
Constructor.
Definition ChargedLeptons.hh:20
ChargedLeptons(const Cut &c)
Constructor via Cut.
Definition ChargedLeptons.hh:26
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Definition FinalState.hh:12
Specialised vector of Particle objects.
Definition Particle.hh:21
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:175
Base class for all Rivet projections.
Definition Projection.hh:29
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:148
Definition MC_CENT_PPB_Projections.hh:10