rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

ATLAS_CENT_PPB_CALIB

ATLAS proton-lead centrality calibration analysis.
Experiment: ()
Status: UNVALIDATED
Authors:
  • Leif Lonnblad
References: Beams: * *
Beam energies: ANY
Run details:
  • Any!

Calibration analysis for ATLAS pPb centrality. The centrality measure is $\sum E_\perp$ in the lead direction. The reference YODA file contains the experimental centrality calibration, but extracted from the plot in the paper. Note that this has not been unfolded for detector effects.

Source code: ATLAS_CENT_PPB_CALIB.cc
 1// -*- C++ -*-
 2#include "Rivet/Analysis.hh"
 3#include "Rivet/Analyses/AtlasCommon.hh"
 4#include "Rivet/Projections/ImpactParameterProjection.hh"
 5
 6namespace Rivet {
 7
 8
 9  class ATLAS_CENT_PPB_CALIB : public Analysis {
10  public:
11
12    RIVET_DEFAULT_ANALYSIS_CTOR(ATLAS_CENT_PPB_CALIB);
13
14    /// Book histograms and initialise projections before the run
15    void init() {
16
17      // One projection for the actual observable, and one for the
18      // generated impact parameter.
19      declare(ATLAS::SumET_PB_Centrality(), "Centrality");
20      declare(ImpactParameterProjection(), "IMP");
21      declare(ATLAS::MinBiasTrigger(), "Trigger");
22
23      // The calibrationhistogram:
24      book(_calib, "SumETPb", 100, 0.0, 200.0);
25
26      // The alternative histogram based on impact parameter. Note that
27      // it MUST be named the same as the histogram for the experimental
28      // observable with an added _IMP suffix for the Pecentile<>
29      // binning to work properly.
30      book(_impcalib, "SumETPb_IMP", 400, 0.0, 20.0);
31    }
32
33
34    /// Perform the per-event analysis
35    void analyze(const Event& event) {
36
37      // The alternative centrality based on generated impact
38      // parameter, assumes that the generator does not describe the
39      // full final state, and should therefore be filled even if the
40      // event is not triggered.
41      _impcalib->fill(apply<SingleValueProjection>(event, "IMP")());
42
43      if ( !apply<ATLAS::MinBiasTrigger>(event, "Trigger")() ) vetoEvent;
44
45      _calib->fill(apply<ATLAS::SumET_PB_Centrality>(event, "Centrality")());
46    }
47
48
49    /// Finalize
50    void finalize() {
51      if (_calib->integral())     _calib->normalize();
52      if (_impcalib->integral())  _impcalib->normalize();
53    }
54
55
56  private:
57
58    /// The calibration histograms.
59    Histo1DPtr _calib;
60    Histo1DPtr _impcalib;
61
62  };
63
64
65  RIVET_DECLARE_PLUGIN(ATLAS_CENT_PPB_CALIB);
66
67}