Rivet  1.8.0
Public Member Functions | Protected Member Functions | List of all members
Rivet::ZFinder Class Reference

Convenience finder of leptonically decaying Zs. More...

#include <ZFinder.hh>

Inheritance diagram for Rivet::ZFinder:
Rivet::FinalState Rivet::Projection Rivet::ProjectionApplier

Public Member Functions

const ParticleVectorbosons () const
 Access to the found bosons (currently either 0 or 1)
const vector< Particle > & constituents () const
const FinalStateremainingFinalState () const
void clear ()
 Clear the projection.
Constructors
 ZFinder (const FinalState &inputfs, double etaMin, double etaMax, double pTmin, PdgId pid, double minmass, double maxmass, double dRmax, bool clusterPhotons, bool trackPhotons, double masstarget=91.2 *GeV)
 ZFinder (const FinalState &inputfs, const std::vector< std::pair< double, double > > &etaRanges, double pTmin, PdgId pid, double minmass, const double maxmass, double dRmax, bool clusterPhotons, bool trackPhotons, double masstarget=91.2 *GeV)
 ZFinder (double, double, double, PdgId, double, double, double, bool, bool, double masstarget=91.2 *GeV)
 ZFinder (const std::vector< std::pair< double, double > > &, double, PdgId, double, double, double, bool, bool, double masstarget=91.2 *GeV)
virtual const Projectionclone () const
 Clone on the heap.
- Public Member Functions inherited from Rivet::FinalState
virtual const ParticleVectorparticles () const
 Get the final-state particles.
template<typename F >
const ParticleVectorparticles (F sorter) const
 Get the final-state particles, ordered by supplied sorting function object.
const ParticleVectorparticlesByPt () const
 Get the final-state particles, ordered by decreasing $ p_T $.
const ParticleVectorparticlesByP () const
 Get the final-state particles, ordered by decreasing $ p $.
const ParticleVectorparticlesByE () const
 Get the final-state particles, ordered by decreasing $ E $.
const ParticleVectorparticlesByEt () const
 Get the final-state particles, ordered by decreasing $ E_T $.
const ParticleVectorparticlesByEta () const
 Get the final-state particles, ordered by increasing $ \eta $.
const ParticleVectorparticlesByModEta () const
 Get the final-state particles, ordered by increasing $ |\eta| $.
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- $ p_\perp $ requirement.
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)
- Public Member Functions inherited from Rivet::Projection
bool before (const Projection &p) const
virtual const std::set< PdgIdPairbeamPairs () const
virtual std::string name () const
 Get the name of the projection.
ProjectionaddPdgIdPair (PdgId beam1, PdgId beam2)
 Add a colliding beam pair.
LoggetLog () 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.
- Public Member Functions inherited from Rivet::ProjectionApplier
 ProjectionApplier ()
 Constructor.
std::set< ConstProjectionPtrgetProjections () 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 ProjectiongetProjection (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.
- Protected Member Functions inherited from Rivet::FinalState
bool accept (const Particle &p) const
 Decide if a particle is to be accepted or not.
- Protected Member Functions inherited from Rivet::Projection
Cmp< ProjectionmkNamedPCmp (const Projection &otherparent, const std::string &pname) const
Cmp< ProjectionmkPCmp (const Projection &otherparent, const std::string &pname) const
- Protected Member Functions inherited from Rivet::ProjectionApplier
ProjectionHandlergetProjHandler () 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

- Public Types inherited from Rivet::FinalState
typedef Particle entity_type
typedef ParticleVector collection_type

Detailed Description

Convenience finder of leptonically decaying Zs.

Chain together different projections as convenience for finding Z's from two leptons in the final state, including photon clustering.

Constructor & Destructor Documentation

Rivet::ZFinder::ZFinder ( const FinalState inputfs,
double  etaMin,
double  etaMax,
double  pTmin,
PdgId  pid,
double  minmass,
double  maxmass,
double  dRmax,
bool  clusterPhotons,
bool  trackPhotons,
double  masstarget = 91.2*GeV 
)

Constructor taking single eta/pT bounds

Parameters
inputfsInput final state
etaMin,etaMax,pTminlepton cuts
pidtype of the leptons
minmass,maxmassmass window
dRmaxmaximum dR of photons around leptons to take into account for Z reconstruction (only relevant if one of the following are true)
clusterPhotonswhether such photons are supposed to be clustered to the lepton objects and thus Z mom
trackPhotonswhether such photons should be added to _theParticles (cf. _trackPhotons)

Referenced by clone().

Rivet::ZFinder::ZFinder ( const FinalState inputfs,
const std::vector< std::pair< double, double > > &  etaRanges,
double  pTmin,
PdgId  pid,
double  minmass,
const double  maxmass,
double  dRmax,
bool  clusterPhotons,
bool  trackPhotons,
double  masstarget = 91.2*GeV 
)

Constructor taking multiple eta/pT bounds

Parameters
inputfsInput final state
etaRanges,pTminlepton cuts
pidtype of the leptons
minmass,maxmassmass window
dRmaxmaximum dR of photons around leptons to take into account for Z reconstruction (only relevant if one of the following are true)
clusterPhotonswhether such photons are supposed to be clustered to the lepton objects and thus Z mom
trackPhotonswhether such photons should be added to _theParticles (cf. _trackPhotons)
Rivet::ZFinder::ZFinder ( double  etaMin,
double  etaMax,
double  pTmin,
PdgId  pid,
double  minmass,
double  maxmass,
double  dRmax,
bool  clusterPhotons,
bool  trackPhotons,
double  masstarget = 91.2*GeV 
)
Deprecated:
Constructors without inputfs -- only for backwards compatibility
Rivet::ZFinder::ZFinder ( const std::vector< std::pair< double, double > > &  etaRanges,
double  pTmin,
PdgId  pid,
double  minmass,
double  maxmass,
double  dRmax,
bool  clusterPhotons,
bool  trackPhotons,
double  masstarget = 91.2*GeV 
)
Deprecated:
Constructors without inputfs -- only for backwards compatibility

Member Function Documentation

const vector<Particle>& Rivet::ZFinder::constituents ( ) const
inline

Access to the Z constituent clustered leptons (e.g. for more fine-grained cuts on the clustered leptons)

const FinalState & Rivet::ZFinder::remainingFinalState ( ) const

Access to the remaining particles, after the Z and clustered photons have been removed from the full final state (e.g. for running a jet finder on it)


The documentation for this class was generated from the following files: