Rivet
1.8.3
|
Abstract base class for projections which can return a set of Jets. More...
#include <JetAlg.hh>
Public Types | |
typedef Jet | entity_type |
typedef Jets | collection_type |
Public Member Functions | |
JetAlg (const FinalState &fs) | |
Constructor. | |
virtual const Projection * | clone () const =0 |
Clone on the heap. | |
virtual | ~JetAlg () |
Destructor. | |
void | useInvisibles (bool useinvis=true) |
Include invisible particles in jet construction. The default behaviour is that jets are only constructed from visible (i.e. charged under an SM gauge group) particles. Some jet studies, including those from ATLAS, use a definition in which neutrinos from hadron decays are included (via MC correction) in the experimental jet definition. Setting this flag to true avoids the automatic restriction to a VisibleFinalState. | |
virtual Jets | jets (double ptmin=0.0, double ptmax=MAXDOUBLE, double rapmin=-MAXDOUBLE, double rapmax=MAXDOUBLE, RapScheme rapscheme=PSEUDORAPIDITY) const |
template<typename F > | |
Jets | jets (F sorter, double ptmin, double ptmax, double rapmin, double rapmax, RapScheme rapscheme) const |
Jets | jetsByPt (double ptmin=0.0, double ptmax=MAXDOUBLE, double rapmin=-MAXDOUBLE, double rapmax=MAXDOUBLE, RapScheme rapscheme=PSEUDORAPIDITY) const |
Jets | jetsByP (double ptmin=0.0, double ptmax=MAXDOUBLE, double rapmin=-MAXDOUBLE, double rapmax=MAXDOUBLE, RapScheme rapscheme=PSEUDORAPIDITY) const |
Jets | jetsByE (double ptmin=0.0, double ptmax=MAXDOUBLE, double rapmin=-MAXDOUBLE, double rapmax=MAXDOUBLE, RapScheme rapscheme=PSEUDORAPIDITY) const |
Jets | jetsByEt (double ptmin=0.0, double ptmax=MAXDOUBLE, double rapmin=-MAXDOUBLE, double rapmax=MAXDOUBLE, RapScheme rapscheme=PSEUDORAPIDITY) const |
virtual size_t | size () const =0 |
Number of jets. | |
virtual void | reset ()=0 |
Clear the projection. | |
collection_type | entities () const |
Template-usable interface common to FinalState. | |
virtual void | calc (const ParticleVector &ps)=0 |
Do the calculation locally (no caching). | |
![]() | |
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)=0 |
Perform the projection on the Event. | |
virtual int | compare (const Projection &p) const =0 |
Compare projections. | |
![]() | |
Cmp< Projection > | mkNamedPCmp (const Projection &otherparent, const std::string &pname) const |
Cmp< Projection > | mkPCmp (const Projection &otherparent, const std::string &pname) const |
![]() | |
Log & | getLog () 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) |
Abstract base class for projections which can return a set of Jets.
|
inlinevirtual |
Get jets in no guaranteed order, with optional cuts on and rapidity.
References Rivet::FourVector::eta(), Rivet::inRange(), Rivet::Jet::momentum(), Rivet::FourMomentum::pT(), and Rivet::FourMomentum::rapidity().
Referenced by entities(), jets(), jetsByE(), jetsByEt(), jetsByP(), and jetsByPt().
|
inline |
Get the jets, ordered by , with optional cuts on
and rapidity.
References Rivet::cmpJetsByE(), and jets().
|
inline |
Get the jets, ordered by , with optional cuts on
and rapidity.
References Rivet::cmpJetsByEt(), jets(), reset(), and size().
|
inline |
Get the jets, ordered by , with optional cuts on
and rapidity.
References Rivet::cmpJetsByP(), and jets().
|
inline |
Get the jets, ordered by , with optional cuts on
and rapidity.
References Rivet::cmpJetsByPt(), and jets().