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
63
64
65
66
67
68
69
70
71
72
73
74
| // -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Projections/LeadingParticlesFinalState.hh"
namespace Rivet {
/// @brief CDF inclusive isolated prompt photon cross-section
class CDF_2009_S8436959 : public Analysis {
public:
RIVET_DEFAULT_ANALYSIS_CTOR(CDF_2009_S8436959);
/// @name Analysis methods
//@{
/// Book histograms and initialise projections before the run
void init() {
FinalState fs;
declare(fs, "FS");
LeadingParticlesFinalState photonfs(FinalState((Cuts::etaIn(-1.0, 1.0) && Cuts::pT >= 30.0*GeV)));
photonfs.addParticleId(PID::PHOTON);
declare(photonfs, "LeadingPhoton");
book(_h_Et_photon ,1, 1, 1);
}
/// Perform the per-event analysis
void analyze(const Event& event) {
Particles fs = apply<FinalState>(event, "FS").particles();
Particles photons = apply<LeadingParticlesFinalState>(event, "LeadingPhoton").particles();
if (photons.size()!=1) {
vetoEvent;
}
FourMomentum leadingPhoton = photons[0].momentum();
double eta_P = leadingPhoton.eta();
double phi_P = leadingPhoton.phi();
FourMomentum mom_in_cone;
for (const Particle& p : fs) {
if (deltaR(eta_P, phi_P, p.eta(), p.phi()) < 0.4) {
mom_in_cone += p.momentum();
}
}
if ( (mom_in_cone.Et() - leadingPhoton.Et()) > 2.0*GeV) {
vetoEvent;
}
_h_Et_photon->fill(leadingPhoton.Et());
}
/// Normalise histograms etc., after the run
void finalize() {
scale(_h_Et_photon, crossSection()/sumOfWeights()/2.0);
}
//@}
private:
/// Histogram
Histo1DPtr _h_Et_photon;
};
RIVET_DECLARE_ALIASED_PLUGIN(CDF_2009_S8436959, CDF_2009_I834437);
}
|