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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
| // -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/ZFinder.hh"
#include "Rivet/Projections/VetoedFinalState.hh"
namespace Rivet {
/// @brief MC validation analysis for Z[ee]Z[mumu] events
class MC_ZZINC : public Analysis {
public:
/// Default constructor
MC_ZZINC()
: Analysis("MC_ZZINC")
{ }
/// @name Analysis methods
//@{
/// Book histograms
void init() {
Cut cut = Cuts::abseta < 3.5 && Cuts::pT > 25*GeV;
ZFinder zeefinder(FinalState(), cut, PID::ELECTRON, 65*GeV, 115*GeV,
0.2, ZFinder::ClusterPhotons::NODECAY, ZFinder::AddPhotons::YES);
declare(zeefinder, "ZeeFinder");
VetoedFinalState zmminput;
zmminput.addVetoOnThisFinalState(zeefinder);
ZFinder zmmfinder(zmminput, cut, PID::MUON, 65*GeV, 115*GeV,
0.2, ZFinder::ClusterPhotons::NODECAY, ZFinder::AddPhotons::YES);
declare(zmmfinder, "ZmmFinder");
// Properties of the pair momentum
double sqrts = sqrtS()>0. ? sqrtS() : 14000.;
book(_h_ZZ_pT ,"ZZ_pT", logspace(100, 1.0, 0.5*sqrts/GeV));
book(_h_ZZ_pT_peak ,"ZZ_pT_peak", 25, 0.0, 25.0);
book(_h_ZZ_eta ,"ZZ_eta", 40, -7.0, 7.0);
book(_h_ZZ_phi ,"ZZ_phi", 25, 0.0, TWOPI);
book(_h_ZZ_m ,"ZZ_m", logspace(100, 150.0, 180.0 + 0.25*sqrts/GeV));
// Correlations between the ZZ
book(_h_ZZ_dphi ,"ZZ_dphi", 25, 0.0, PI); /// @todo non-linear?
book(_h_ZZ_deta ,"ZZ_deta", 25, -7.0, 7.0);
book(_h_ZZ_dR ,"ZZ_dR", 25, 0.5, 7.0);
book(_h_ZZ_dpT ,"ZZ_dpT", logspace(100, 1.0, 0.5*sqrts/GeV));
book(_h_ZZ_costheta_planes ,"ZZ_costheta_planes", 25, -1.0, 1.0);
// Properties of the Z bosons
book(_h_Z_pT ,"Z_pT", logspace(100, 10.0, 0.25*sqrts/GeV));
book(_h_Z_eta ,"Z_eta", 70, -7.0, 7.0);
// Properties of the leptons
book(_h_Zl_pT ,"Zl_pT", logspace(100, 30.0, 0.1*sqrts/GeV));
book(_h_Zl_eta ,"Zl_eta", 40, -3.5, 3.5);
// Correlations between the opposite charge leptons
book(_h_ZeZm_dphi ,"ZeZm_dphi", 25, 0.0, PI);
book(_h_ZeZm_deta ,"ZeZm_deta", 25, -5.0, 5.0);
book(_h_ZeZm_dR ,"ZeZm_dR", 25, 0.5, 5.0);
book(_h_ZeZm_m ,"ZeZm_m", 100, 0.0, 300.0);
}
/// Do the analysis
void analyze(const Event& e) {
const ZFinder& zeefinder = apply<ZFinder>(e, "ZeeFinder");
if (zeefinder.bosons().size() != 1) vetoEvent;
const ZFinder& zmmfinder = apply<ZFinder>(e, "ZmmFinder");
if (zmmfinder.bosons().size() != 1) vetoEvent;
// Z momenta
const FourMomentum& zee = zeefinder.bosons()[0].momentum();
const FourMomentum& zmm = zmmfinder.bosons()[0].momentum();
const FourMomentum zz = zee + zmm;
// Lepton momenta
const FourMomentum& ep = zeefinder.constituents()[0].momentum();
const FourMomentum& em = zeefinder.constituents()[1].momentum();
const FourMomentum& mp = zmmfinder.constituents()[0].momentum();
const FourMomentum& mm = zmmfinder.constituents()[1].momentum();
const double weight = 1.0;
_h_ZZ_pT->fill(zz.pT()/GeV, weight);
_h_ZZ_pT_peak->fill(zz.pT()/GeV, weight);
_h_ZZ_eta->fill(zz.eta(), weight);
_h_ZZ_phi->fill(zz.phi(), weight);
if (zz.mass2() > 0.0) ///< @todo Protection still needed?
_h_ZZ_m->fill(zz.mass()/GeV, weight);
_h_ZZ_dphi->fill(deltaPhi(zee, zmm), weight);
_h_ZZ_deta->fill(zee.eta()-zmm.eta(), weight);
_h_ZZ_dR->fill(deltaR(zee,zmm), weight);
_h_ZZ_dpT->fill(fabs(zee.pT()-zmm.pT()), weight);
const Vector3 crossZee = ep.p3().cross(em.p3());
const Vector3 crossZmm = mp.p3().cross(mm.p3());
const double costheta = crossZee.dot(crossZmm)/crossZee.mod()/crossZmm.mod();
_h_ZZ_costheta_planes->fill(costheta, weight);
_h_Z_pT->fill(zee.pT()/GeV, weight);
_h_Z_pT->fill(zmm.pT()/GeV, weight);
_h_Z_eta->fill(zee.eta(), weight);
_h_Z_eta->fill(zmm.eta(), weight);
_h_Zl_pT->fill(ep.pT()/GeV, weight);
_h_Zl_pT->fill(em.pT()/GeV, weight);
_h_Zl_pT->fill(mp.pT()/GeV, weight);
_h_Zl_pT->fill(mm.pT()/GeV, weight);
_h_Zl_eta->fill(ep.eta(), weight);
_h_Zl_eta->fill(em.eta(), weight);
_h_Zl_eta->fill(mp.eta(), weight);
_h_Zl_eta->fill(mm.eta(), weight);
_h_ZeZm_dphi->fill(deltaPhi(ep, mm), weight);
_h_ZeZm_deta->fill(ep.eta()-mm.eta(), weight);
_h_ZeZm_dR->fill(deltaR(ep, mm), weight);
const FourMomentum epmm = ep + mm;
const double m_epmm = (epmm.mass2() > 0) ? epmm.mass() : 0; ///< @todo Protection still needed?
_h_ZeZm_m->fill(m_epmm/GeV, weight);
}
/// Finalize
void finalize() {
const double s = crossSection()/picobarn/sumOfWeights();
scale(_h_ZZ_pT, s);
scale(_h_ZZ_pT_peak, s);
scale(_h_ZZ_eta, s);
scale(_h_ZZ_phi, s);
scale(_h_ZZ_m, s);
scale(_h_ZZ_dphi, s);
scale(_h_ZZ_deta, s);
scale(_h_ZZ_dR, s);
scale(_h_ZZ_dpT, s);
scale(_h_ZZ_costheta_planes, s);
scale(_h_Z_pT, s);
scale(_h_Z_eta, s);
scale(_h_Zl_pT, s);
scale(_h_Zl_eta, s);
scale(_h_ZeZm_dphi, s);
scale(_h_ZeZm_deta, s);
scale(_h_ZeZm_dR, s);
scale(_h_ZeZm_m, s);
}
//@}
private:
/// @name Histograms
//@{
Histo1DPtr _h_ZZ_pT;
Histo1DPtr _h_ZZ_pT_peak;
Histo1DPtr _h_ZZ_eta;
Histo1DPtr _h_ZZ_phi;
Histo1DPtr _h_ZZ_m;
Histo1DPtr _h_ZZ_dphi;
Histo1DPtr _h_ZZ_deta;
Histo1DPtr _h_ZZ_dR;
Histo1DPtr _h_ZZ_dpT;
Histo1DPtr _h_ZZ_costheta_planes;
Histo1DPtr _h_Z_pT;
Histo1DPtr _h_Z_eta;
Histo1DPtr _h_Zl_pT;
Histo1DPtr _h_Zl_eta;
Histo1DPtr _h_ZeZm_dphi;
Histo1DPtr _h_ZeZm_deta;
Histo1DPtr _h_ZeZm_dR;
Histo1DPtr _h_ZeZm_m;
//@}
};
// The hook for the plugin system
RIVET_DECLARE_PLUGIN(MC_ZZINC);
}
|