Rivet
1.8.0
|
Identify particles which can be paired to fit within a given invariant mass window. More...
#include <InvMassFinalState.hh>
Public Member Functions | |
InvMassFinalState (const FinalState &fsp, const std::pair< PdgId, PdgId > &idpair, double minmass, double maxmass, double masstarget=-1.0) | |
Constructor for a single inv-mass pair. | |
InvMassFinalState (const FinalState &fsp, const std::vector< std::pair< PdgId, PdgId > > &idpairs, double minmass, double maxmass, double masstarget=-1.0) | |
Constructor for multiple inv-mass pairs. | |
InvMassFinalState (const std::pair< PdgId, PdgId > &idpair, double minmass, double maxmass, double masstarget=-1.0) | |
Same thing as above, but we want to pass the particles directly to the calc method. | |
InvMassFinalState (const std::vector< std::pair< PdgId, PdgId > > &idpairs, double minmass, double maxmass, double masstarget=-1.0) | |
virtual const Projection * | clone () const |
Clone on the heap. | |
const std::vector< std::pair < Particle, Particle > > & | particlePairs () const |
Constituent pairs. | |
void | useTransverseMass (bool usetrans=true) |
Choose whether to use the full inv mass or just the transverse mass. | |
void | calc (const ParticleVector &inparticles) |
Operate on a given particle vector directly instead of through project (no caching) | |
![]() | |
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. | |
FinalState (double mineta=-MAXRAPIDITY, double maxeta=MAXRAPIDITY, double minpt=0.0 *GeV) | |
FinalState (const vector< pair< double, double > > &etaRanges, double minpt=0.0 *GeV) | |
![]() | |
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 | |
void | project (const Event &e) |
Apply the projection on the supplied event. | |
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) |
Additional Inherited Members | |
![]() | |
typedef Particle | entity_type |
typedef ParticleVector | collection_type |
Identify particles which can be paired to fit within a given invariant mass window.