rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0

Convenience finder of leptonically decaying Zs. More...

#include <ZFinder.hh>

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

Public Types

enum  ChargedLeptons { PROMPTCHLEPTONS =0, ALLCHLEPTONS }
 
enum  ClusterPhotons { NOCLUSTER =0, CLUSTERNODECAY =1, CLUSTERALL }
 
enum  PhotonTracking { NOTRACK =0, TRACK =1 }
 
- Public Types inherited from Rivet::ParticleFinder
typedef Particle entity_type
 
typedef Particles collection_type
 

Public Member Functions

const Particles & bosons () const
 
const Particleboson () const
 Access to the found boson (assuming it exists).
 
const Particles & constituentLeptons () const
 
const Particles & constituents () const
 
const VetoedFinalStateremainingFinalState () const
 
void clear ()
 Clear the projection.
 
Constructors
 ZFinder (const FinalState &inputfs, const Cut &cuts, PdgId pid, double minmass, double maxmass, double dRmax=0.1, ChargedLeptons chLeptons=PROMPTCHLEPTONS, ClusterPhotons clusterPhotons=CLUSTERNODECAY, PhotonTracking trackPhotons=NOTRACK, double masstarget=91.2 *GeV)
 
 ZFinder (const FinalState &inputfs, const Cut &cuts, PdgId pid, double minmass, double maxmass, double dRmax, ClusterPhotons clusterPhotons, PhotonTracking trackPhotons=NOTRACK, double masstarget=91.2 *GeV)
 
 DEFAULT_RIVET_PROJ_CLONE (ZFinder)
 Clone on the heap.
 
- Public Member Functions inherited from Rivet::ParticleFinder
 ParticleFinder (const Cut &c=Cuts::OPEN)
 Construction using Cuts object.
 
virtual ~ParticleFinder ()
 Virtual destructor for inheritance.
 
virtual unique_ptr< Projectionclone () 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
 
const collection_type & entities () const
 Template-usable interface common to JetAlg.
 
- Public Member Functions inherited from Rivet::Projection
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
 
ProjectionaddPdgIdPair (PdgId beam1, PdgId beam2)
 
- Public Member Functions inherited from Rivet::ProjectionApplier
 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 ProjectiongetProjection (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
 

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::Projection
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.
 
Cmp< ProjectionmkNamedPCmp (const Projection &otherparent, const std::string &pname) const
 
Cmp< ProjectionmkPCmp (const Projection &otherparent, const std::string &pname) const
 
virtual Projectionoperator= (const Projection &)
 Block Projection copying.
 
- Protected Member Functions inherited from Rivet::ProjectionApplier
LoggetLog () const
 
ProjectionHandlergetProjHandler () const
 Get a reference to the ProjectionHandler for this thread.
 
template<typename PROJ >
const PROJ & declareProjection (const PROJ &proj, const std::string &name)
 Register a contained projection. More...
 
template<typename PROJ >
const PROJ & declare (const PROJ &proj, const std::string &name)
 Register a contained projection (user-facing version) More...
 
template<typename PROJ >
const PROJ & declare (const std::string &name, const PROJ &proj)
 Register a contained projection (user-facing, arg-reordered version) More...
 
template<typename PROJ >
const PROJ & addProjection (const PROJ &proj, const std::string &name)
 Register a contained projection (user-facing version) More...
 

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.

Todo:
Alias then rename as Dileptons

Constructor & Destructor Documentation

◆ ZFinder() [1/2]

Rivet::ZFinder::ZFinder ( const FinalState inputfs,
const Cut &  cuts,
PdgId  pid,
double  minmass,
double  maxmass,
double  dRmax = 0.1,
ChargedLeptons  chLeptons = PROMPTCHLEPTONS,
ClusterPhotons  clusterPhotons = CLUSTERNODECAY,
PhotonTracking  trackPhotons = NOTRACK,
double  masstarget = 91.2*GeV 
)

Constructor taking cuts object

Parameters
inputfsInput final state
cutslepton 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)
Todo:
Fix FS copy constructors!!

References Rivet::IdentifiedFinalState::acceptIdPair(), Rivet::ProjectionApplier::addProjection(), Rivet::VetoedFinalState::addVetoOnThisFinalState(), Rivet::ProjectionApplier::declare(), and Rivet::Projection::setName().

◆ ZFinder() [2/2]

Rivet::ZFinder::ZFinder ( const FinalState inputfs,
const Cut &  cuts,
PdgId  pid,
double  minmass,
double  maxmass,
double  dRmax,
ClusterPhotons  clusterPhotons,
PhotonTracking  trackPhotons = NOTRACK,
double  masstarget = 91.2*GeV 
)
inline

Backward-compatible constructor with implicit chLeptons mode = PROMPTCHLEPTONS

Deprecated:
Remove this and always use the constructor with chLeptons argument.

References DEFAULT_RIVET_PROJ_CLONE().

Member Function Documentation

◆ bosons()

const Particles& Rivet::ZFinder::bosons ( ) const
inline

Access to the found bosons

Note
Currently either 0 or 1 boson can be found.

References Rivet::ParticleFinder::particles().

Referenced by boson().

◆ constituentLeptons()

const Particles & Rivet::ZFinder::constituentLeptons ( ) const

Access to the Z constituent clustered leptons

For example, to make more fine-grained cuts on the clustered leptons. The positive charge constituent is first in the list (if not empty), and the negative one second.

References boson(), Rivet::Particle::constituents(), Rivet::ParticleFinder::empty(), and Rivet::none().

Referenced by boson().

◆ remainingFinalState()

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

Access to the particles other than the Z leptons and clustered photons

Useful for e.g. input to a jet finder

Referenced by boson().


The documentation for this class was generated from the following files:
  • include/Rivet/Projections/ZFinder.hh
  • src/Projections/ZFinder.cc