CDF_2006_S6450792.cc
Go to the documentation of this file.
00001 // -*- C++ -*- 00002 #include "Rivet/Analysis.hh" 00003 #include "Rivet/Projections/FinalState.hh" 00004 #include "Rivet/Projections/FastJets.hh" 00005 00006 namespace Rivet { 00007 00008 00009 /// @brief CDF Inclusive jet cross-section differential in \f$ p_\perp \f$ 00010 class CDF_2006_S6450792 : public Analysis { 00011 public: 00012 00013 /// Constructor 00014 CDF_2006_S6450792() 00015 : Analysis("CDF_2006_S6450792") 00016 { } 00017 00018 00019 /// @name Analysis methods 00020 //@{ 00021 00022 void init() { 00023 FinalState fs; 00024 addProjection(FastJets(fs, FastJets::CDFMIDPOINT, 0.7), "ConeFinder"); 00025 _h_jet_pt = bookHisto1D(1, 1, 1); 00026 } 00027 00028 00029 void analyze(const Event& event) { 00030 const Jets& jets = applyProjection<JetAlg>(event, "ConeFinder").jets(Cuts::pT > 61*GeV); 00031 foreach (const Jet& jet, jets) { 00032 if (inRange(jet.absrap(), 0.1, 0.7)) 00033 _h_jet_pt->fill(jet.pT()/GeV, event.weight()); 00034 } 00035 } 00036 00037 00038 void finalize() { 00039 const double delta_y = 1.2; 00040 scale(_h_jet_pt, crossSection()/nanobarn/sumOfWeights()/delta_y); 00041 } 00042 00043 //@} 00044 00045 00046 private: 00047 00048 /// @name Histograms 00049 //@{ 00050 00051 Histo1DPtr _h_jet_pt; 00052 //@} 00053 00054 }; 00055 00056 00057 00058 // The hook for the plugin system 00059 DECLARE_RIVET_PLUGIN(CDF_2006_S6450792); 00060 00061 } Generated on Thu Mar 10 2016 08:29:48 for The Rivet MC analysis system by ![]() |