Rivet analyses referenceALICE_2010_S8624100Charged particle multiplicities at 0.9 and 2.36 TeV in three different pseudorapidity intervalsExperiment: ALICE (LHC) Inspire ID: 852450 Status: VALIDATED Authors:
Beam energies: (450.0, 450.0); (1180.0, 1180.0) GeV Run details:
This is an ALICE analysis where charged particle multiplicities (including the zero bin) have been measured in three different pseudorapidity intervals ($|\eta|<0.5; |\eta|<1.0; |\eta|<1.3$. Only the INEL distributions have been considered here, i.e. this analysis can only be meaningfully compared to PYTHIA 6 with diffractive processes disabled. The data were taken at 900 and 2360 GeV. Beam energy must be specified as analysis option "ENERGY" when rivet-merging samples. Source code: ALICE_2010_S8624100.cc 1// -*- C++ -*-
2#include "Rivet/Analysis.hh"
3#include "Rivet/Projections/ChargedFinalState.hh"
4
5namespace Rivet {
6
7
8 class ALICE_2010_S8624100 : public Analysis {
9 public:
10
11 /// Constructor
12 RIVET_DEFAULT_ANALYSIS_CTOR(ALICE_2010_S8624100);
13
14
15 /// @name Analysis methods
16 /// @{
17
18 /// Book histograms and initialise projections before the run
19 void init() {
20
21 ChargedFinalState cfs05((Cuts::etaIn(-0.5, 0.5)));
22 ChargedFinalState cfs10((Cuts::etaIn(-1.0, 1.0)));
23 ChargedFinalState cfs13((Cuts::etaIn(-1.3, 1.3)));
24 declare(cfs05, "CFS05");
25 declare(cfs10, "CFS10");
26 declare(cfs13, "CFS13");
27
28 if (isCompatibleWithSqrtS(900)) {
29 book(_h_dN_dNch_05 ,11, 1, 1);
30 book(_h_dN_dNch_10 ,12, 1, 1);
31 book(_h_dN_dNch_13 ,13, 1, 1);
32 } else if (isCompatibleWithSqrtS(2360)) {
33 book(_h_dN_dNch_05 ,17, 1, 1);
34 book(_h_dN_dNch_10 ,18, 1, 1);
35 book(_h_dN_dNch_13 ,19, 1, 1);
36 }
37
38 }
39
40
41 /// Perform the per-event analysis
42 void analyze(const Event& event) {
43 const ChargedFinalState& charged_05 = apply<ChargedFinalState>(event, "CFS05");
44 const ChargedFinalState& charged_10 = apply<ChargedFinalState>(event, "CFS10");
45 const ChargedFinalState& charged_13 = apply<ChargedFinalState>(event, "CFS13");
46
47 _h_dN_dNch_05->fill(charged_05.size());
48 _h_dN_dNch_10->fill(charged_10.size());
49 _h_dN_dNch_13->fill(charged_13.size());
50 }
51
52
53 /// Normalise histograms etc., after the run
54 void finalize() {
55 normalize(_h_dN_dNch_05);
56 normalize(_h_dN_dNch_10);
57 normalize(_h_dN_dNch_13);
58 }
59
60 /// @}
61
62
63 private:
64
65 /// @name Histograms
66 /// @{
67 Histo1DPtr _h_dN_dNch_05;
68 Histo1DPtr _h_dN_dNch_10;
69 Histo1DPtr _h_dN_dNch_13;
70 /// @}
71
72
73 };
74
75
76 RIVET_DECLARE_ALIASED_PLUGIN(ALICE_2010_S8624100, ALICE_2010_I852450);
77
78}
|