Rivet API documentation

Rivet 4.1.3
ChargedLeptons.hh
1// -*- C++ -*-
2#ifndef RIVET_ChargedLeptons_HH
3#define RIVET_ChargedLeptons_HH
4
5#include "Rivet/Event.hh"
6#include "Rivet/Particle.hh"
7#include "Rivet/Projection.hh"
8#include "Rivet/Projections/ChargedFinalState.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
32
34 using Projection::operator=;
35
36
37 protected:
38
40 void project(const Event& evt);
41
43 CmpState compare(const Projection& other) const;
44
45 public:
46
48 const Particles& chargedLeptons() const {
49 return _theParticles;
50 }
51 };
52
53
54}
55
56#endif
Project only charged final state particles.
Definition ChargedFinalState.hh:11
CmpState compare(const Projection &other) const
Compare projections.
const Particles & chargedLeptons() const
Access the projected leptons.
Definition ChargedLeptons.hh:48
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
FinalState(const Cut &c=Cuts::OPEN)
Construction using Cuts object.
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:205
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:146
Definition LHCbCommon.hh:9