Rivet
1.8.0
|
Project out all final-state particles in an event. Probably the most important projection in Rivet! More...
#include <FinalState.hh>
Public Types | |
typedef Particle | entity_type |
typedef ParticleVector | collection_type |
Public Member Functions | |
virtual const ParticleVector & | particles () const |
Get the final-state particles. | |
template<typename F > | |
const ParticleVector & | particles (F sorter) const |
Get the final-state particles, ordered by supplied sorting function object. | |
const ParticleVector & | particlesByPt () const |
Get the final-state particles, ordered by decreasing ![]() | |
const ParticleVector & | particlesByP () const |
Get the final-state particles, ordered by decreasing ![]() | |
const ParticleVector & | particlesByE () const |
Get the final-state particles, ordered by decreasing ![]() | |
const ParticleVector & | particlesByEt () const |
Get the final-state particles, ordered by decreasing ![]() | |
const ParticleVector & | particlesByEta () const |
Get the final-state particles, ordered by increasing ![]() | |
const ParticleVector & | particlesByModEta () const |
Get the final-state particles, ordered by increasing ![]() | |
virtual size_t | size () const |
Access the projected final-state particles. | |
virtual bool | empty () const |
Is this final state empty? | |
virtual bool | isEmpty () const |
virtual double | ptMin () const |
Minimum- ![]() | |
const collection_type & | entities () const |
Template-usable interface common to JetAlg. | |
Standard constructors and destructors. | |
FinalState (double mineta=-MAXRAPIDITY, double maxeta=MAXRAPIDITY, double minpt=0.0 *GeV) | |
FinalState (const vector< pair< double, double > > &etaRanges, double minpt=0.0 *GeV) | |
virtual const Projection * | clone () const |
Clone on the heap. | |
![]() | |
bool | before (const Projection &p) const |
virtual const std::set< PdgIdPair > | beamPairs () const |
virtual std::string | name () const |
Get the name of the projection. | |
Projection & | addPdgIdPair (PdgId beam1, PdgId beam2) |
Add a colliding beam pair. | |
Log & | getLog () const |
Get a Log object based on the getName() property of the calling projection object. | |
void | setName (const std::string &name) |
Used by derived classes to set their name. | |
Projection () | |
The default constructor. | |
virtual | ~Projection () |
The destructor. | |
![]() | |
ProjectionApplier () | |
Constructor. | |
std::set< ConstProjectionPtr > | getProjections () const |
Get the contained projections, including recursion. | |
template<typename PROJ > | |
const PROJ & | getProjection (const std::string &name) const |
Get the named projection, specifying return type via a template argument. | |
const Projection & | getProjection (const std::string &name) const |
template<typename PROJ > | |
const PROJ & | applyProjection (const Event &evt, const PROJ &proj) const |
Apply the supplied projection on event. | |
template<typename PROJ > | |
const PROJ & | applyProjection (const Event &evt, const Projection &proj) const |
Apply the supplied projection on event. | |
template<typename PROJ > | |
const PROJ & | applyProjection (const Event &evt, const std::string &name) const |
Apply the named projection on event. |
Protected Member Functions | |
virtual void | project (const Event &e) |
Apply the projection to the event. | |
virtual int | compare (const Projection &p) const |
Compare projections. | |
bool | accept (const Particle &p) const |
Decide if a particle is to be accepted or not. | |
![]() | |
Cmp< Projection > | mkNamedPCmp (const Projection &otherparent, const std::string &pname) const |
Cmp< Projection > | mkPCmp (const Projection &otherparent, const std::string &pname) const |
![]() | |
ProjectionHandler & | getProjHandler () const |
Get a reference to the ProjectionHandler for this thread. | |
template<typename PROJ > | |
const PROJ & | addProjection (const PROJ &proj, const std::string &name) |
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Rivet::FinalState::FinalState | ( | double | mineta = -MAXRAPIDITY , |
double | maxeta = MAXRAPIDITY , |
||
double | minpt = 0.0*GeV |
||
) |
The default constructor. May specify the minimum and maximum pseudorapidity and the min
(in GeV).
References Rivet::ProjectionApplier::addProjection(), Rivet::isZero(), Rivet::MAXRAPIDITY, and Rivet::Projection::setName().
Referenced by Rivet::ChargedFinalState::ChargedFinalState(), clone(), FinalState(), Rivet::IdentifiedFinalState::IdentifiedFinalState(), Rivet::LossyFinalState< ConstRandomFilter >::LossyFinalState(), Rivet::VetoedFinalState::VetoedFinalState(), and Rivet::VisibleFinalState::VisibleFinalState().
Rivet::FinalState::FinalState | ( | const vector< pair< double, double > > & | etaRanges, |
double | minpt = 0.0*GeV |
||
) |
A constructor which allows to specify multiple eta ranges and the min (in GeV).
References Rivet::ProjectionApplier::addProjection(), FinalState(), Rivet::isZero(), and Rivet::Projection::setName().
|
inlinevirtual |
|
protectedvirtual |
Apply the projection to the event.
Implements Rivet::Projection.
Reimplemented in Rivet::VetoedFinalState, Rivet::WFinder, Rivet::IdentifiedFinalState, Rivet::ZFinder, Rivet::InvMassFinalState, Rivet::LeadingParticlesFinalState, Rivet::LeptonClusters, Rivet::LossyFinalState< FILTER >, Rivet::LossyFinalState< ConstRandomFilter >, Rivet::UnstableFinalState, Rivet::VisibleFinalState, Rivet::ClusteredPhotons, Rivet::NeutralFinalState, Rivet::ChargedFinalState, Rivet::DISFinalState, Rivet::HadronicFinalState, Rivet::NonHadronicFinalState, Rivet::MergedFinalState, and Rivet::ChargedLeptons.
References accept(), Rivet::Event::genEvent(), and particles().