|
Base class for projections which return subsets of an event's particles.
More...
#include <ParticleFinder.hh>
|
virtual void | project (const Event &e)=0 |
| Apply the projection to the event.
|
|
virtual int | compare (const Projection &p) const |
| Compare projections. More...
|
|
|
| ParticleFinder (const Cut &c=Cuts::OPEN) |
| Construction using Cuts object.
|
|
virtual | ~ParticleFinder () |
| Virtual destructor for inheritance.
|
|
virtual unique_ptr< Projection > | clone () const =0 |
| Clone on the heap.
|
|
|
size_t | size () const |
| Count the final-state particles.
|
|
size_t | size (const Cut &c) const |
| Count the final-state particles after a Cut is applied.
|
|
size_t | size (const ParticleSelector &s) const |
| Count the final-state particles after a selection functor is applied.
|
|
bool | empty () const |
| Is this final state empty?
|
|
bool | empty (const Cut &c) const |
| Is this final state empty after a Cut is applied?
|
|
bool | empty (const ParticleSelector &s) const |
| Is this final state empty after a selection functor is applied?
|
|
virtual const Particles & | particles () const |
| Get the particles in no particular order, with no cuts.
|
|
Particles | rawParticles () const |
|
Particles | particles (const Cut &c) const |
| Get the particles with selection cuts. More...
|
|
Particles | particles (const ParticleSelector &selector) const |
| Get the particles with selection cuts via a functor. More...
|
|
Particles | particles (const ParticleSorter &sorter, const Cut &c=Cuts::open()) const |
|
Particles | particles (const Cut &c, const ParticleSorter &sorter) const |
|
Particles | particles (const ParticleSelector &selector, const ParticleSorter &sorter) const |
|
Particles | particles (const ParticleSorter &sorter, const ParticleSelector &selector) const |
|
Particles | particlesByPt (const Cut &c=Cuts::open()) const |
|
Particles | particlesByPt (const ParticleSelector &selector) const |
|
Particles | particlesByPt (double ptmin) const |
|
virtual std::string | name () const |
| Get the name of the projection.
|
|
| Projection () |
| The default constructor.
|
|
virtual | ~Projection () |
| The destructor.
|
|
bool | before (const Projection &p) const |
|
virtual const std::set< PdgIdPair > | beamPairs () const |
|
Projection & | addPdgIdPair (PdgId beam1, PdgId beam2) |
|
| ProjectionApplier () |
| Constructor.
|
|
void | markAsOwned () const |
| Mark this object as owned by a proj-handler.
|
|
std::set< ConstProjectionPtr > | getProjections () const |
| Get the contained projections, including recursion.
|
|
bool | hasProjection (const std::string &name) const |
| Does this applier have a projection registered under the name name?
|
|
template<typename PROJ > |
const PROJ & | getProjection (const std::string &name) const |
|
template<typename PROJ > |
const PROJ & | get (const std::string &name) const |
|
const Projection & | getProjection (const std::string &name) const |
|
template<typename PROJ > |
const PROJ & | applyProjection (const Event &evt, const Projection &proj) const |
| Apply the supplied projection on event evt. More...
|
|
template<typename PROJ > |
const PROJ & | apply (const Event &evt, const Projection &proj) const |
|
template<typename PROJ > |
const PROJ & | applyProjection (const Event &evt, const PROJ &proj) const |
| Apply the supplied projection on event evt. More...
|
|
template<typename PROJ > |
const PROJ & | apply (const Event &evt, const PROJ &proj) const |
|
template<typename PROJ > |
const PROJ & | applyProjection (const Event &evt, const std::string &name) const |
|
template<typename PROJ > |
const PROJ & | apply (const Event &evt, const std::string &name) const |
|
template<typename PROJ > |
const PROJ & | apply (const std::string &name, const Event &evt) const |
|
|
- Todo:
- Replace with cuts() accessor virtual Cut cuts() const { return _cuts; }
|
typedef Particle | entity_type |
|
typedef Particles | collection_type |
|
const collection_type & | entities () const |
| Template-usable interface common to JetAlg.
|
|
Base class for projections which return subsets of an event's particles.
◆ compare()
int Rivet::ParticleFinder::compare |
( |
const Projection & |
p | ) |
const |
|
virtual |
Compare projections.
- Todo:
- HOW DO WE COMPARE CUTS OBJECTS?
Implements Rivet::Projection.
Reimplemented in Rivet::ALICE::PrimaryParticles, Rivet::VetoedFinalState, Rivet::DressedLeptons, Rivet::WFinder, Rivet::IdentifiedFinalState, Rivet::SmearedParticles, Rivet::HeavyHadrons, Rivet::ZFinder, Rivet::PartonicTops, Rivet::DISFinalState, Rivet::LossyFinalState< FILTER >, Rivet::LossyFinalState< ConstRandomFilter >, Rivet::InvMassFinalState, Rivet::PrimaryParticles, Rivet::LeadingParticlesFinalState, Rivet::PromptFinalState, Rivet::NeutralFinalState, Rivet::TauFinder, Rivet::VisibleFinalState, Rivet::NonPromptFinalState, Rivet::HadronicFinalState, Rivet::NonHadronicFinalState, Rivet::ChargedLeptons, Rivet::MergedFinalState, Rivet::FinalState, and Rivet::ChargedFinalState.
Referenced by entities().
◆ particles() [1/6]
Particles Rivet::ParticleFinder::particles |
( |
const Cut & |
c | ) |
const |
|
inline |
◆ particles() [2/6]
Particles Rivet::ParticleFinder::particles |
( |
const ParticleSelector & |
selector | ) |
const |
|
inline |
Get the particles with selection cuts via a functor.
- Note
- Returns a copy rather than a reference, due to the cuts.
References Rivet::filter_select(), and particles().
◆ particles() [3/6]
Particles Rivet::ParticleFinder::particles |
( |
const ParticleSorter & |
sorter, |
|
|
const Cut & |
c = Cuts::open() |
|
) |
| const |
|
inline |
Get the particles, ordered by supplied sorting function object - Note
- Returns a copy rather than a reference, due to cuts and sorting.
References particles(), and Rivet::sortBy().
◆ particles() [4/6]
Particles Rivet::ParticleFinder::particles |
( |
const Cut & |
c, |
|
|
const ParticleSorter & |
sorter |
|
) |
| const |
|
inline |
Get the particles, ordered by supplied sorting function object - Note
- Returns a copy rather than a reference, due to cuts and sorting.
References particles(), and Rivet::sortBy().
◆ particles() [5/6]
Particles Rivet::ParticleFinder::particles |
( |
const ParticleSelector & |
selector, |
|
|
const ParticleSorter & |
sorter |
|
) |
| const |
|
inline |
Get the particles, ordered by a sorting functor and filtered by a selection functor - Note
- Returns a copy rather than a reference, due to cuts and sorting.
References particles(), and Rivet::sortBy().
◆ particles() [6/6]
Particles Rivet::ParticleFinder::particles |
( |
const ParticleSorter & |
sorter, |
|
|
const ParticleSelector & |
selector |
|
) |
| const |
|
inline |
Get the particles, ordered by a sorting functor and filtered by a selection functor - Note
- Returns a copy rather than a reference, due to cuts and sorting.
References particles(), and Rivet::sortBy().
◆ particlesByPt() [1/3]
Particles Rivet::ParticleFinder::particlesByPt |
( |
const Cut & |
c = Cuts::open() | ) |
const |
|
inline |
◆ particlesByPt() [2/3]
Particles Rivet::ParticleFinder::particlesByPt |
( |
const ParticleSelector & |
selector | ) |
const |
|
inline |
Get the particles, ordered by decreasing and with optional cuts
This is a very common use-case, so is available as syntatic sugar for particles(f, cmpMomByPt).
References Rivet::cmpMomByPt(), and particles().
◆ particlesByPt() [3/3]
Particles Rivet::ParticleFinder::particlesByPt |
( |
double |
ptmin | ) |
const |
|
inline |
Get the particles, ordered by decreasing and with a cut on minimum 
This is a very common use-case, so is available as syntatic sugar for particles(Cuts::pT >= ptmin, cmpMomByPt).
References Rivet::cmpMomByPt(), and particles().
◆ rawParticles()
Particles Rivet::ParticleFinder::rawParticles |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files:
|