CDF_1998_S3618439.cc
Go to the documentation of this file.
00001 // -*- C++ -*- 00002 #include "Rivet/Analysis.hh" 00003 #include "Rivet/RivetYODA.hh" 00004 #include "Rivet/Tools/Logging.hh" 00005 #include "Rivet/Projections/FinalState.hh" 00006 #include "Rivet/Projections/FastJets.hh" 00007 00008 namespace Rivet { 00009 00010 00011 /// @brief CDF diff cross-section in events with large missing energy 00012 class CDF_1998_S3618439 : public Analysis { 00013 public: 00014 00015 /// @name Constructors etc. 00016 //@{ 00017 00018 /// Constructor 00019 CDF_1998_S3618439() 00020 : Analysis("CDF_1998_S3618439") 00021 { } 00022 00023 //@} 00024 00025 00026 public: 00027 00028 /// @name Analysis methods 00029 //@{ 00030 00031 /// Book histograms and initialise projections before the run 00032 void init() { 00033 FinalState fs(-4.2, 4.2); 00034 addProjection(FastJets(fs, FastJets::CDFJETCLU, 0.7), "Jets"); 00035 00036 _h_sumET_20 = bookHisto1D(1, 1, 1); 00037 _h_sumET_100 = bookHisto1D(1, 1, 2); 00038 } 00039 00040 00041 /// Perform the per-event analysis 00042 void analyze(const Event& event) { 00043 const double weight = event.weight(); 00044 00045 Jets jets = applyProjection<FastJets>(event, "Jets").jetsByEt(20.0*GeV); 00046 double sumET_20(0.0), sumET_100(0.0); 00047 foreach (const Jet& jet, jets) { 00048 double ET = jet.momentum().Et()/GeV; 00049 sumET_20 += ET; 00050 if (ET>100.0) sumET_100 += ET; 00051 } 00052 if (sumET_20>320.0) _h_sumET_20->fill(sumET_20, weight); 00053 if (sumET_100>320.0) _h_sumET_100->fill(sumET_100, weight); 00054 } 00055 00056 00057 /// Normalise histograms etc., after the run 00058 void finalize() { 00059 scale(_h_sumET_20, crossSection()/picobarn/sumOfWeights()); 00060 scale(_h_sumET_100, crossSection()/picobarn/sumOfWeights()); 00061 } 00062 00063 //@} 00064 00065 00066 private: 00067 00068 /// @name Histograms 00069 //@{ 00070 Histo1DPtr _h_sumET_20, _h_sumET_100; 00071 //@} 00072 00073 }; 00074 00075 00076 00077 // The hook for the plugin system 00078 DECLARE_RIVET_PLUGIN(CDF_1998_S3618439); 00079 00080 } Generated on Fri Dec 21 2012 15:03:39 for The Rivet MC analysis system by ![]() |