Rivet Analyses Reference
MARKII_1982_I178416
Charged particle momentum distributions 5.2, 6.2 and 29 GeV
Experiment: MARKII (PEP)
Inspire ID: 178416
Status: VALIDATED
Authors:No references listed
Beams: e- e+
Beam energies: (2.5, 2.5); (1.0, 1.0); (3.2, 3.2); (14.5, 14.5) GeV
Run details:- e+e- > hadrons. Beam energy must be specified as analysis option "ENERGY" when rivet-merge'ing samples.
Charged particle momentum distributions for 5.2, 6.2 and 29 GeV. Beam energy must be specified as analysis option "ENERGY" when rivet-merging samples.
Source code:
MARKII_1982_I178416.cc
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
| // -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/ChargedFinalState.hh"
namespace Rivet {
/// @brief Charged particle spectra at 5.2, 6.5 and 29 GeV
class MARKII_1982_I178416 : public Analysis {
public:
/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(MARKII_1982_I178416);
/// @name Analysis methods
///@{
/// Book histograms and initialise projections before the run
void init() {
const ChargedFinalState fs;
declare(fs, "FS");
unsigned int iloc(0);
if(isCompatibleWithSqrtS(5.2))
iloc = 1;
else if(isCompatibleWithSqrtS(6.5))
iloc = 2;
else if(isCompatibleWithSqrtS(29.0))
iloc = 3;
else
MSG_ERROR("Beam energy incompatible with analysis.");
assert(iloc!=0);
book(_h_x,1,1,iloc);
}
/// Perform the per-event analysis
void analyze(const Event& event) {
const ChargedFinalState& fs = apply<ChargedFinalState>(event, "FS");
if(fs.particles().size()==2 &&
abs(fs.particles()[0].pid())==13 &&
abs(fs.particles()[1].pid())==13) vetoEvent;
for (const Particle& p : fs.particles()) {
const Vector3 mom3 = p.p3();
double pp = mom3.mod();
double x = 2.*pp/sqrtS();
_h_x->fill(x);
}
}
/// Normalise histograms etc., after the run
void finalize() {
scale(_h_x,crossSection()*sqr(sqrtS())/sumOfWeights()/microbarn);
}
///@}
/// @name Histograms
///@{
Histo1DPtr _h_x;
///@}
};
RIVET_DECLARE_PLUGIN(MARKII_1982_I178416);
}
|