// -*- C++ -*- #include "Rivet/Analyses/MC_JetSplittings.hh" #include "Rivet/Projections/ZFinder.hh" #include "Rivet/Projections/FastJets.hh" namespace Rivet { /// @brief MC validation analysis for higgs [-> tau tau] + jets events class MC_HKTSPLITTINGS1 : public MC_JetSplittings { public: /// Default constructor MC_HKTSPLITTINGS1() : MC_JetSplittings("MC_HKTSPLITTINGS1", 4, "Jets") { } /// @name Analysis methods //@{ /// Book histograms void init() { IdentifiedFinalState hfinder(FinalState(), 25); declare(hfinder, "Hfinder"); FastJets jetpro(VetoedFinalState(FinalState(), 25), FastJets::KT, 0.6); declare(jetpro, "Jets"); MC_JetSplittings::init(); } /// Do the analysis void analyze(const Event & e) { const FinalState& hfinder = apply<FinalState>(e, "Hfinder"); if (hfinder.size() != 1) vetoEvent; MC_JetSplittings::analyze(e); } /// Finalize void finalize() { MC_JetSplittings::finalize(); } //@} }; // The hook for the plugin system RIVET_DECLARE_PLUGIN(MC_HKTSPLITTINGS1); }