WFinder.hh
Go to the documentation of this file.00001
00002 #ifndef RIVET_WFinder_HH
00003 #define RIVET_WFinder_HH
00004
00005 #include "Rivet/Tools/Logging.hh"
00006 #include "Rivet/Rivet.hh"
00007 #include "Rivet/Particle.hh"
00008 #include "Rivet/Event.hh"
00009 #include "Rivet/Projection.hh"
00010 #include "Rivet/Projections/ChargedFinalState.hh"
00011 #include "Rivet/Projections/LeptonClusters.hh"
00012
00013 namespace Rivet {
00014
00015
00016
00017
00018
00019
00020 class WFinder : public FinalState {
00021 public:
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 WFinder(double etaMin, double etaMax,
00040 double pTmin,
00041 PdgId pid,
00042 double minmass, double maxmass,
00043 double missingET,
00044 double dRmax, bool clusterPhotons=true, bool trackPhotons=false,
00045 double masstarget=80.4,
00046 bool useTransverseMass=false);
00047
00048
00049
00050
00051
00052 WFinder(const std::vector<std::pair<double, double> >& etaRanges,
00053 double pTmin,
00054 PdgId pid,
00055 double minmass, const double maxmass,
00056 double missingET,
00057 double dRmax, bool clusterPhotons=true, bool trackPhotons=false,
00058 double masstarget=80.4,
00059 bool useTransverseMass=false);
00060
00061
00062
00063 virtual const Projection* clone() const {
00064 return new WFinder(*this);
00065 }
00066
00067
00068
00069
00070 const ParticleVector& bosons() const { return _bosons; }
00071
00072
00073
00074 const vector<Particle>& constituentLeptons() const { return _constituentLeptons; }
00075
00076
00077
00078 const vector<Particle>& constituentNeutrinos() const { return _constituentNeutrinos; }
00079
00080
00081
00082
00083 const FinalState& remainingFinalState() const;
00084
00085 protected:
00086
00087
00088 void project(const Event& e);
00089
00090
00091 int compare(const Projection& p) const;
00092
00093
00094 public:
00095
00096
00097 void clear() {
00098 _theParticles.clear();
00099 _bosons.clear();
00100 _constituentLeptons.clear();
00101 _constituentNeutrinos.clear();
00102 }
00103
00104
00105 private:
00106
00107
00108 void _init(const std::vector<std::pair<double, double> >& etaRanges,
00109 double pTmin, PdgId pid,
00110 double minmass, double maxmass,
00111 double missingET,
00112 double dRmax, bool clusterPhotons, bool trackPhotons,
00113 double masstarget,
00114 bool useTransverseMass);
00115
00116
00117 private:
00118
00119
00120 double _minmass, _maxmass, _masstarget;
00121 bool _useTransverseMass;
00122
00123
00124 double _etMiss;
00125
00126
00127
00128
00129
00130
00131
00132 bool _trackPhotons;
00133
00134
00135 PdgId _pid;
00136
00137
00138 PdgId _nu_pid;
00139
00140
00141 ParticleVector _bosons;
00142
00143
00144 ParticleVector _constituentLeptons;
00145
00146
00147 ParticleVector _constituentNeutrinos;
00148
00149 };
00150
00151
00152 }
00153
00154
00155 #endif