Rivet API documentation

Rivet 4.1.3
DileptonFinder.hh
1// -*- C++ -*-
2#ifndef RIVET_DileptonFinder_HH
3#define RIVET_DileptonFinder_HH
4
5#include "Rivet/Projections/FinalState.hh"
6#include "Rivet/Projections/LeptonFinder.hh"
7#include "Rivet/Projections/VetoedFinalState.hh"
8
9namespace Rivet {
10
11
15 class DileptonFinder : public FinalState {
16 public:
17
20
27 DileptonFinder(double masstarget,
28 double dRdress,
29 const Cut& lcuts = Cuts::OPEN,
30 const Cut& llcuts = Cuts::OPEN,
31 LeptonOrigin leptonOrigin = LeptonOrigin::PROMPT,
32 PhotonOrigin photonOrigin = PhotonOrigin::NODECAY,
33 TauDecaysAs tauDecays = TauDecaysAs::PROMPT,
34 MuDecaysAs muDecays = MuDecaysAs::PROMPT,
35 DressingType dressing = DressingType::CONE);
36
37
45 double masstarget,
46 double dRdress,
47 const Cut& lcuts = Cuts::OPEN,
48 const Cut& llcuts = Cuts::OPEN,
49 DressingType dressing = DressingType::CONE);
50
51
58 DileptonFinder(const FinalState& leptonfs,
59 const FinalState& photonfs,
60 double masstarget,
61 double dRdress,
62 const Cut& lcuts = Cuts::OPEN,
63 const Cut& llcuts = Cuts::OPEN,
64 DressingType dressing = DressingType::CONE);
65
66
69
71
72
76 const Particles& bosons() const {
77 return particles();
78 }
79
80 const Particle& boson() const {
81 return bosons().front();
82 }
83
84
89 const Particles& constituents() const;
90
96 const Particles& leptons() const {
97 return constituents();
98 }
99
100
105
106
107 protected:
108
110 void project(const Event& e);
111
113 CmpState compare(const Projection& p) const;
114
115
116 public:
117
119 void clear() {
120 _theParticles.clear();
121 }
122
124 using Projection::operator=;
125
126
127 protected:
128
130 double _masstarget;
131 };
132
133
136 using LLFinder = DileptonFinder;
137
138
139}
140
141#endif
Convenience finder of leptonically decaying Z's.
Definition DileptonFinder.hh:15
const Particles & bosons() const
Access to the found bosons.
Definition DileptonFinder.hh:76
const VetoedFinalState & remainingFinalState() const
void project(const Event &e)
Apply the projection on the supplied event.
const Particles & leptons() const
Access to the constituent clustered leptons (and photons).
Definition DileptonFinder.hh:96
const Particle & boson() const
Access to the found boson (assuming it exists).
Definition DileptonFinder.hh:80
DileptonFinder(const FinalState &allfs, double masstarget, double dRdress, const Cut &lcuts=Cuts::OPEN, const Cut &llcuts=Cuts::OPEN, DressingType dressing=DressingType::CONE)
DileptonFinder(const FinalState &leptonfs, const FinalState &photonfs, double masstarget, double dRdress, const Cut &lcuts=Cuts::OPEN, const Cut &llcuts=Cuts::OPEN, DressingType dressing=DressingType::CONE)
RIVET_DEFAULT_PROJ_CLONE(DileptonFinder)
Clone on the heap.
const Particles & constituents() const
Access to the constituent clustered leptons (and photons).
CmpState compare(const Projection &p) const
Compare projections.
DileptonFinder(double masstarget, double dRdress, const Cut &lcuts=Cuts::OPEN, const Cut &llcuts=Cuts::OPEN, LeptonOrigin leptonOrigin=LeptonOrigin::PROMPT, PhotonOrigin photonOrigin=PhotonOrigin::NODECAY, TauDecaysAs tauDecays=TauDecaysAs::PROMPT, MuDecaysAs muDecays=MuDecaysAs::PROMPT, DressingType dressing=DressingType::CONE)
void clear()
Clear the projection.
Definition DileptonFinder.hh:119
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
FinalState(const Cut &c=Cuts::OPEN)
Construction using Cuts object.
virtual const Particles & particles() const
Get the particles in no particular order, with no cuts.
Definition ParticleFinder.hh:76
Particle representation, either from a HepMC::GenEvent or reconstructed.
Definition Particle.hh:50
Specialised vector of Particle objects.
Definition Particle.hh:21
Base class for all Rivet projections.
Definition Projection.hh:29
FS modifier to exclude classes of particles from the final state.
Definition VetoedFinalState.hh:11
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:819
Definition LHCbCommon.hh:9
PhotonOrigin
Possible classes of lepton origin.
Definition DressedLepton.hh:29
DileptonFinder ZFinder
Aliases.
Definition DileptonFinder.hh:135
DressingType
The approach taken to photon dressing of leptons.
Definition DressedLepton.hh:26
LeptonOrigin
Possible classes of lepton origin.
Definition DressedLepton.hh:12