Rivet analyses referenceCDF_2009_NOTE_9936CDF Run 2 min bias charged multiplicity analysisExperiment: CDF (Tevatron Run 2) Spires ID: None Status: OBSOLETE Authors:
Beam energies: (980.0, 980.0) GeV Run details:
Niccolo Moggi's min bias analysis. Minimum bias events are used to measure the charged multiplicity distribution. The multiplicity distribution was not published in S8233977 but the numbers and a public note are available from the CDF website given above. Note: the systematic and statistical errors in Rivet were added in quadrature. Source code: CDF_2009_NOTE_9936.cc 1// -*- C++ -*-
2#include "Rivet/Analysis.hh"
3#include "Rivet/Projections/ChargedFinalState.hh"
4#include "Rivet/Projections/TriggerCDFRun2.hh"
5
6namespace Rivet {
7
8
9 class CDF_2009_NOTE_9936 : public Analysis {
10 public:
11
12 /// @name Constructors etc.
13 /// @{
14
15 /// Constructor
16 RIVET_DEFAULT_ANALYSIS_CTOR(CDF_2009_NOTE_9936);
17
18 /// @}
19
20
21 public:
22
23 /// @name Analysis methods
24 /// @{
25
26 /// Book histograms and initialise projections before the run
27 void init() {
28
29 declare(TriggerCDFRun2(), "Trigger");
30
31 declare(ChargedFinalState((Cuts::etaIn(-1.0, 1.0) && Cuts::pT >= 0.4*GeV)), "CFS");
32
33 book(_hist_nch ,1, 1, 1);
34 }
35
36
37 /// Perform the per-event analysis
38 void analyze(const Event& event) {
39 // MinBias Trigger
40 const bool trigger = apply<TriggerCDFRun2>(event, "Trigger").minBiasDecision();
41 if (!trigger) vetoEvent;
42
43 // Get events charged multiplicity and fill histogram
44 const ChargedFinalState& cfs = apply<ChargedFinalState>(event, "CFS");
45 _hist_nch->fill(cfs.size());
46
47 }
48
49
50 /// Normalise histograms etc., after the run
51 void finalize() {
52 normalize(_hist_nch);
53 }
54
55 /// @}
56
57 private:
58
59 Histo1DPtr _hist_nch;
60
61 };
62
63
64
65 RIVET_DECLARE_PLUGIN(CDF_2009_NOTE_9936);
66
67}
|