1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
| // -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Projections/FastJets.hh"
namespace Rivet {
/// @brief CDF dijet cross-section, differential in dijet mass
class CDF_2000_S4266730 : public Analysis {
public:
RIVET_DEFAULT_ANALYSIS_CTOR(CDF_2000_S4266730);
/// @name Analysis methods
//@{
/// Book histograms and initialise projections before the run
void init() {
FinalState fs((Cuts::etaIn(-4.2, 4.2)));
declare(FastJets(fs, FastJets::CDFJETCLU, 0.7), "Jets");
book(_h_mjj ,1, 1, 1);
}
/// Perform the per-event analysis
void analyze(const Event& event) {
Jets jets = apply<FastJets>(event, "Jets").jets(cmpMomByEt);
if (jets.size() < 2) vetoEvent;
FourMomentum jet1 = jets[0].momentum();
FourMomentum jet2 = jets[1].momentum();
double eta1 = jet1.eta();
double eta2 = jet2.eta();
if (fabs(eta1) > 2.0 || fabs(eta2) > 2.0) vetoEvent;
if (fabs(tanh((eta1-eta2)/2)) > 2.0/3.0) vetoEvent;
double mjj = FourMomentum(jet1+jet2).mass()/GeV;
if (mjj < 180) vetoEvent;
_h_mjj->fill(mjj);
}
/// Normalise histograms etc., after the run
void finalize() {
scale(_h_mjj, crossSection()/picobarn/sumOfWeights());
}
//@}
private:
/// Histogram
Histo1DPtr _h_mjj;
};
RIVET_DECLARE_ALIASED_PLUGIN(CDF_2000_S4266730, CDF_2000_I511377);
}
|