2 #ifndef RIVET_WFinder_HH
3 #define RIVET_WFinder_HH
5 #include "Rivet/Tools/Logging.hh"
6 #include "Rivet/Rivet.hh"
7 #include "Rivet/Particle.hh"
8 #include "Rivet/Event.hh"
9 #include "Rivet/Projection.hh"
10 #include "Rivet/Projections/ChargedFinalState.hh"
11 #include "Rivet/Projections/LeptonClusters.hh"
40 double etaMin,
double etaMax,
43 double minmass,
double maxmass,
45 double dRmax,
bool clusterPhotons=
true,
bool trackPhotons=
false,
46 double masstarget=80.4,
47 bool useTransverseMass=
false);
64 const std::vector<std::pair<double, double> >& etaRanges,
67 double minmass,
const double maxmass,
69 double dRmax,
bool clusterPhotons=
true,
bool trackPhotons=
false,
70 double masstarget=80.4,
71 bool useTransverseMass=
false);
75 WFinder(
double,
double,
double,
PdgId,
double,
double,
double,
double,
76 bool clusterPhotons=
true,
bool trackPhotons=
false,
77 double masstarget=80.4,
bool useTransverseMass=
false);
79 WFinder(
const std::vector<std::pair<double, double> >&,
double,
80 PdgId,
double,
double,
double,
double,
81 bool clusterPhotons=
true,
bool trackPhotons=
false,
82 double masstarget=80.4,
bool useTransverseMass=
false);
120 _theParticles.clear();
122 _constituentLeptons.clear();
123 _constituentNeutrinos.clear();
131 const std::vector<std::pair<double, double> >& etaRanges,
132 double pTmin,
PdgId pid,
133 double minmass,
double maxmass,
135 double dRmax,
bool clusterPhotons,
bool trackPhotons,
137 bool useTransverseMass);
143 double _minmass, _maxmass, _masstarget;
144 bool _useTransverseMass;
int PdgId
Typedef for a PDG ID code.
Definition: Particle.fhh:29
int compare(const Projection &p) const
Compare projections.
Definition: WFinder.cc:131
Convenience finder of leptonically decaying Ws.
Definition: WFinder.hh:20
const vector< Particle > & constituentLeptons() const
Definition: WFinder.hh:96
const vector< Particle > & constituentNeutrinos() const
Definition: WFinder.hh:100
const FinalState & remainingFinalState() const
Definition: WFinder.cc:127
void project(const Event &e)
Apply the projection on the supplied event.
Definition: WFinder.cc:143
const ParticleVector & bosons() const
Access to the found bosons (currently either 0 or 1)
Definition: WFinder.hh:92
WFinder(const FinalState &inputfs, double etaMin, double etaMax, double pTmin, PdgId pid, double minmass, double maxmass, double missingET, double dRmax, bool clusterPhotons=true, bool trackPhotons=false, double masstarget=80.4, bool useTransverseMass=false)
Definition: WFinder.cc:15
virtual const Projection * clone() const
Clone on the heap.
Definition: WFinder.hh:85
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
std::vector< Particle > ParticleVector
Typedef for a vector of Particle objects.
Definition: Particle.fhh:14
Base class for all Rivet projections.
Definition: Projection.hh:28
void clear()
Clear the projection.
Definition: WFinder.hh:119