2 #ifndef RIVET_LeptonClusters_HH 3 #define RIVET_LeptonClusters_HH 5 #include "Rivet/Tools/Logging.hh" 6 #include "Rivet/Rivet.hh" 7 #include "Rivet/Particle.hh" 8 #include "Rivet/Event.hh" 9 #include "Rivet/Projection.hh" 10 #include "Rivet/Projections/FinalState.hh" 11 #include "Rivet/Projections/IdentifiedFinalState.hh" 21 _constituentLepton(lepton) {}
23 void addPhoton(
const Particle& p,
bool cluster) {
24 _constituentPhotons.push_back(p);
28 const Particle& constituentLepton()
const {
return _constituentLepton; }
29 const ParticleVector& constituentPhotons()
const {
return _constituentPhotons; }
33 ParticleVector _constituentPhotons;
47 double dRmax,
bool cluster,
48 const std::vector<std::pair<double, double> >& etaRanges,
55 const vector<ClusteredLepton>& clusteredLeptons()
const {
return _clusteredLeptons; }
60 void project(
const Event& e);
73 vector<ClusteredLepton> _clusteredLeptons;
Definition: MC_JetAnalysis.hh:9
PdgId pdgId() const
The PDG ID code for this Particle.
Definition: Particle.hh:56
Definition: LeptonClusters.hh:16
Representation of particles from a HepMC::GenEvent.
Definition: Particle.hh:16
Cluster photons from a given FS to all charged particles (typically leptons) from signal and store th...
Definition: LeptonClusters.hh:42
const FourMomentum & momentum() const
The momentum of this Particle.
Definition: Particle.hh:68
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
Particle()
Definition: Particle.hh:21
Particle & setMomentum(const FourMomentum &momentum)
Set the momentum of this Particle.
Definition: Particle.hh:62
Base class for all Rivet projections.
Definition: Projection.hh:28
virtual const Projection * clone() const
Clone on the heap.
Definition: LeptonClusters.hh:51