ChargedLeptons.hh
// -*- C++ -*-
#ifndef RIVET_ChargedLeptons_HH
#define RIVET_ChargedLeptons_HH
#include "Rivet/Projection.hh"
#include "Rivet/Projections/ChargedFinalState.hh"
#include "Rivet/Particle.hh"
#include "Rivet/Event.hh"
namespace Rivet {
class ChargedLeptons : public FinalState {
public:
ChargedLeptons(const FinalState& fsp)
{
setName("ChargedLeptons");
addProjection(ChargedFinalState(fsp), "ChFS");
}
virtual const Projection* clone() const {
return new ChargedLeptons(*this);
}
protected:
void project(const Event& evt);
int compare(const Projection& other) const;
public:
const ParticleVector& chargedLeptons() const {
return _theParticles;
}
};
}
#endif
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Rivet
Definition: MC_JetAnalysis.hh:9
Rivet::ChargedLeptons::project
void project(const Event &evt)
Apply the projection to the event.
Definition: ChargedLeptons.cc:15
Rivet::ChargedLeptons::chargedLeptons
const ParticleVector & chargedLeptons() const
Access the projected leptons.
Definition: ChargedLeptons.hh:42
Rivet::ChargedLeptons::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: ChargedLeptons.hh:27
Rivet::Event
Definition: Event.hh:22
Rivet::ChargedLeptons
Get charged final-state leptons.
Definition: ChargedLeptons.hh:16
Rivet::ChargedLeptons::compare
int compare(const Projection &other) const
Compare projections.
Definition: ChargedLeptons.cc:10
Rivet::FinalState
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
Rivet::ProjectionApplier::addProjection
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Rivet::ChargedFinalState
Project only charged final state particles.
Definition: ChargedFinalState.hh:16
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28
Rivet::ChargedLeptons::ChargedLeptons
ChargedLeptons(const FinalState &fsp)
Constructor.
Definition: ChargedLeptons.hh:20