ZFinder.hh
Go to the documentation of this file.
00001 // -*- C++ -*- 00002 #ifndef RIVET_ZFinder_HH 00003 #define RIVET_ZFinder_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/FinalState.hh" 00011 #include "Rivet/Projections/LeptonClusters.hh" 00012 00013 namespace Rivet { 00014 00015 00016 /// @brief Convenience finder of leptonically decaying Zs 00017 /// 00018 /// Chain together different projections as convenience for finding Z's 00019 /// from two leptons in the final state, including photon clustering. 00020 class ZFinder : public FinalState { 00021 00022 public: 00023 00024 /// @name Constructors 00025 //@{ 00026 00027 /// Constructor taking single eta/pT bounds 00028 /// @param inputfs Input final state 00029 /// @param etaMin,etaMax,pTmin lepton cuts 00030 /// @param pid type of the leptons 00031 /// @param minmass,maxmass mass window 00032 /// @param dRmax maximum dR of photons around leptons to take into account 00033 /// for Z reconstruction (only relevant if one of the following are true) 00034 /// @param clusterPhotons whether such photons are supposed to be 00035 /// clustered to the lepton objects and thus Z mom 00036 /// @param trackPhotons whether such photons should be added to _theParticles 00037 /// (cf. _trackPhotons) 00038 ZFinder(const FinalState& inputfs, 00039 double etaMin, double etaMax, 00040 double pTmin, 00041 PdgId pid, 00042 double minmass, double maxmass, 00043 double dRmax, bool clusterPhotons, bool trackPhotons, 00044 double masstarget=91.2*GeV); 00045 00046 00047 /// Constructor taking multiple eta/pT bounds 00048 /// @param inputfs Input final state 00049 /// @param etaRanges,pTmin lepton cuts 00050 /// @param pid type of the leptons 00051 /// @param minmass,maxmass mass window 00052 /// @param dRmax maximum dR of photons around leptons to take into account 00053 /// for Z reconstruction (only relevant if one of the following are true) 00054 /// @param clusterPhotons whether such photons are supposed to be 00055 /// clustered to the lepton objects and thus Z mom 00056 /// @param trackPhotons whether such photons should be added to _theParticles 00057 /// (cf. _trackPhotons) 00058 ZFinder(const FinalState& inputfs, 00059 const std::vector<std::pair<double, double> >& etaRanges, 00060 double pTmin, 00061 PdgId pid, 00062 double minmass, const double maxmass, 00063 double dRmax, bool clusterPhotons, bool trackPhotons, 00064 double masstarget=91.2*GeV); 00065 00066 00067 /// @deprecated Constructors without inputfs -- only for backwards compatibility 00068 ZFinder(double, double, double, PdgId, double, double, double, 00069 bool, bool, double masstarget=91.2*GeV); 00070 /// @deprecated Constructors without inputfs -- only for backwards compatibility 00071 ZFinder(const std::vector<std::pair<double, double> >&, double, PdgId, 00072 double, double, double, bool, bool, double masstarget=91.2*GeV); 00073 00074 00075 /// Clone on the heap. 00076 virtual const Projection* clone() const { 00077 return new ZFinder(*this); 00078 } 00079 //@} 00080 00081 00082 /// Access to the found bosons (currently either 0 or 1) 00083 const ParticleVector& bosons() const { return _bosons; } 00084 00085 /// Access to the Z constituent clustered leptons 00086 /// (e.g. for more fine-grained cuts on the clustered leptons) 00087 const vector<Particle>& constituents() const { return _constituents; } 00088 00089 /// Access to the remaining particles, after the Z and clustered photons 00090 /// have been removed from the full final state 00091 /// (e.g. for running a jet finder on it) 00092 const FinalState& remainingFinalState() const; 00093 00094 00095 protected: 00096 00097 /// Apply the projection on the supplied event. 00098 void project(const Event& e); 00099 00100 /// Compare projections. 00101 int compare(const Projection& p) const; 00102 00103 00104 public: 00105 00106 /// Clear the projection 00107 void clear() { 00108 _theParticles.clear(); 00109 _bosons.clear(); 00110 _constituents.clear(); 00111 } 00112 00113 00114 private: 00115 /// Common implementation of constructor operation, taking FS params. 00116 void _init(const FinalState& inputfs, 00117 const std::vector<std::pair<double, double> >& etaRanges, 00118 double pTmin, PdgId pid, 00119 double minmass, double maxmass, 00120 double dRmax, bool clusterPhotons, bool trackPhotons, 00121 double masstarget); 00122 00123 /// Mass cuts to apply to clustered leptons (cf. InvMassFinalState) 00124 double _minmass, _maxmass, _masstarget; 00125 00126 /// Switch for tracking of photons (whether to add them to _theParticles) 00127 /// This is relevant when the ZFinder::_theParticles are to be excluded 00128 /// from e.g. the input to a jet finder, to specify whether the clustered 00129 /// photons are to be excluded as well. 00130 /// (Yes, some experiments make a difference between clusterPhotons and 00131 /// trackPhotons!) 00132 bool _trackPhotons; 00133 00134 /// Lepton flavour 00135 PdgId _pid; 00136 00137 /// list of found bosons (currently either 0 or 1) 00138 ParticleVector _bosons; 00139 00140 /// Clustered leptons 00141 vector<Particle> _constituents; 00142 00143 }; 00144 00145 00146 } 00147 00148 00149 00150 #endif Generated on Fri Dec 21 2012 15:03:42 for The Rivet MC analysis system by ![]() |