MC_ZZKTSPLITTINGS.cc
Go to the documentation of this file.
00001 // -*- C++ -*- 00002 #include "Rivet/Analyses/MC_JetSplittings.hh" 00003 #include "Rivet/Projections/ZFinder.hh" 00004 #include "Rivet/Projections/FastJets.hh" 00005 #include "Rivet/Projections/VetoedFinalState.hh" 00006 00007 namespace Rivet { 00008 00009 /// @brief MC validation analysis for Z[ee]Z[mumu] + jets events 00010 class MC_ZZKTSPLITTINGS : public MC_JetSplittings { 00011 public: 00012 00013 /// Default constructor 00014 MC_ZZKTSPLITTINGS() 00015 : MC_JetSplittings("MC_ZZKTSPLITTINGS", 4, "Jets") 00016 { } 00017 00018 00019 /// @name Analysis methods 00020 //@{ 00021 00022 /// Book histograms 00023 void init() { 00024 ZFinder zeefinder(FinalState(), -3.5, 3.5, 25*GeV, PID::ELECTRON, 65*GeV, 115*GeV, 00025 0.2, ZFinder::CLUSTERNODECAY, ZFinder::TRACK); 00026 addProjection(zeefinder, "ZeeFinder"); 00027 00028 VetoedFinalState zmminput; 00029 zmminput.addVetoOnThisFinalState(zeefinder); 00030 ZFinder zmmfinder(zmminput, -3.5, 3.5, 25*GeV, PID::MUON, 65*GeV, 115*GeV, 00031 0.2, ZFinder::CLUSTERNODECAY, ZFinder::TRACK); 00032 addProjection(zmmfinder, "ZmmFinder"); 00033 00034 VetoedFinalState jetinput; 00035 jetinput 00036 .addVetoOnThisFinalState(zeefinder) 00037 .addVetoOnThisFinalState(zmmfinder); 00038 FastJets jetpro(jetinput, FastJets::KT, 0.6); 00039 addProjection(jetpro, "Jets"); 00040 00041 MC_JetSplittings::init(); 00042 } 00043 00044 00045 /// Do the analysis 00046 void analyze(const Event & e) { 00047 const ZFinder& zeefinder = applyProjection<ZFinder>(e, "ZeeFinder"); 00048 if (zeefinder.bosons().size() != 1) vetoEvent; 00049 const ZFinder& zmmfinder = applyProjection<ZFinder>(e, "ZmmFinder"); 00050 if (zmmfinder.bosons().size() != 1) vetoEvent; 00051 MC_JetSplittings::analyze(e); 00052 } 00053 00054 00055 /// Finalize 00056 void finalize() { 00057 MC_JetSplittings::finalize(); 00058 } 00059 00060 //@} 00061 00062 }; 00063 00064 00065 00066 // The hook for the plugin system 00067 DECLARE_RIVET_PLUGIN(MC_ZZKTSPLITTINGS); 00068 00069 } Generated on Tue May 13 2014 11:38:28 for The Rivet MC analysis system by ![]() |