00001
00002 #include "Rivet/Analysis.hh"
00003 #include "Rivet/RivetAIDA.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
00012 class CDF_1998_S3618439 : public Analysis {
00013 public:
00014
00015
00016
00017
00018
00019 CDF_1998_S3618439()
00020 : Analysis("CDF_1998_S3618439")
00021 {
00022 setBeams(PROTON, ANTIPROTON);
00023 setNeedsCrossSection(true);
00024 }
00025
00026
00027
00028
00029 public:
00030
00031
00032
00033
00034
00035 void init() {
00036 FinalState fs(-4.2, 4.2);
00037 addProjection(FastJets(fs, FastJets::CDFJETCLU, 0.7), "Jets");
00038
00039 _h_sumET_20 = bookHistogram1D(1, 1, 1);
00040 _h_sumET_100 = bookHistogram1D(1, 1, 2);
00041 }
00042
00043
00044
00045 void analyze(const Event& event) {
00046 const double weight = event.weight();
00047
00048 Jets jets = applyProjection<FastJets>(event, "Jets").jetsByEt(20.0*GeV);
00049 double sumET_20(0.0), sumET_100(0.0);
00050 foreach (const Jet& jet, jets) {
00051 double ET = jet.momentum().Et()/GeV;
00052 sumET_20 += ET;
00053 if (ET>100.0) sumET_100 += ET;
00054 }
00055 if (sumET_20>320.0) _h_sumET_20->fill(sumET_20, weight);
00056 if (sumET_100>320.0) _h_sumET_100->fill(sumET_100, weight);
00057 }
00058
00059
00060
00061 void finalize() {
00062 scale(_h_sumET_20, crossSection()/picobarn/sumOfWeights());
00063 scale(_h_sumET_100, crossSection()/picobarn/sumOfWeights());
00064 }
00065
00066
00067
00068
00069 private:
00070
00071
00072
00073 AIDA::IHistogram1D *_h_sumET_20, *_h_sumET_100;
00074
00075
00076 };
00077
00078
00079
00080
00081 AnalysisBuilder<CDF_1998_S3618439> plugin_CDF_1998_S3618439;
00082
00083
00084 }