Page MenuHomeHEPForge

ChargedLeptons.cc
No OneTemporary

ChargedLeptons.cc

// -*- C++ -*-
#include "Rivet/Tools/Logging.hh"
#include "Rivet/Projections/ChargedLeptons.hh"
#include "Rivet/Cmp.hh"
#include "Rivet/Tools/ParticleIdUtils.hh"
namespace Rivet {
int ChargedLeptons::compare(const Projection& other) const {
return mkNamedPCmp(other, "ChFS");
}
void ChargedLeptons::project(const Event& evt) {
// Reset result
_theChargedLeptons.clear();
// Loop over charged particles and fill vector with leptons
const FinalState& fs = applyProjection<FinalState>(evt, "ChFS");
foreach (const Particle& p, fs.particles()) {
if (PID::isLepton(p.pdgId())) {
_theChargedLeptons += Particle(p);
}
}
}
}

File Metadata

Mime Type
text/x-c
Expires
Mon, Jan 20, 8:19 PM (8 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4212333
Default Alt Text
ChargedLeptons.cc (681 B)

Event Timeline