Rivet: /Users/chrisg/software/rivet/include/Rivet/Projections/ChargedLeptons.hh Source File

| Rivet 3.1.9

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
20 ChargedLeptons(const FinalState& fsp=FinalState()) {
21 setName("ChargedLeptons");
22 declare(ChargedFinalState(fsp), "ChFS");
23 }
24
26 ChargedLeptons(const Cut& c)
27 : ChargedLeptons(FinalState(c))
28 { }
29
30
32 DEFAULT_RIVET_PROJ_CLONE(ChargedLeptons);
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
Rivet::ChargedFinalState
Project only charged final state particles.
Definition ChargedFinalState.hh:11
Rivet::ChargedLeptons
Get charged final-state leptons.
Definition ChargedLeptons.hh:16
Rivet::ChargedLeptons::compare
CmpState compare(const Projection &other) const
Compare projections.
Rivet::ChargedLeptons::chargedLeptons
const Particles & chargedLeptons() const
Access the projected leptons.
Definition ChargedLeptons.hh:49
Rivet::ChargedLeptons::DEFAULT_RIVET_PROJ_CLONE
DEFAULT_RIVET_PROJ_CLONE(ChargedLeptons)
Clone on the heap.
Rivet::ChargedLeptons::project
void project(const Event &evt)
Apply the projection to the event.
Rivet::ChargedLeptons::ChargedLeptons
ChargedLeptons(const FinalState &fsp=FinalState())
Constructor.
Definition ChargedLeptons.hh:20
Rivet::ChargedLeptons::ChargedLeptons
ChargedLeptons(const Cut &c)
Constructor via Cut.
Definition ChargedLeptons.hh:26
Rivet::Event
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Rivet::FinalState
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Definition FinalState.hh:12
Rivet::Particles
Specialised vector of Particle objects.
Definition Particle.hh:25
Rivet::ProjectionApplier::declare
const PROJ & declare(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:170
Rivet::Projection
Base class for all Rivet projections.
Definition Projection.hh:29
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:142
Rivet
Definition MC_Cent_pPb.hh:10