Calibration analysis for ATLAS Pb--Pb centrality. The centrality measure is ∑E⊥ in the forward and backward directions. The reference YODA file contains the experimental centrality calibration, but extracted from the plot in the paper. Analysis can be run for all energies to provide generator calibration curves, but only holds data for 2.76 TeV/nn. Note that this has not been unfolded for detector effects.
// -*- C++ -*-
#include"Rivet/Tools/AtlasCommon.hh"#include"Rivet/Projections/ImpactParameterProjection.hh"#include"Rivet/Analysis.hh"namespace Rivet {
classATLAS_PBPB_CENTRALITY:public Analysis {
public: RIVET_DEFAULT_ANALYSIS_CTOR(ATLAS_PBPB_CENTRALITY);
/// Book histograms and initialise projections before the run
voidinit() {
// One projection for the actual observable, and one for the
// generated impact parameter.
declare(ATLAS::SumET_PBPB_Centrality(), "Centrality");
declare(ImpactParameterProjection(), "IMP");
declare(ATLAS::MinBiasTrigger(), "Trigger");
// The calibration histogram:
book(_calib, "sumETFwd");
// The alternative histogram based on impact parameter. Note that
// it MUST be named the same as the histogram for the experimental
// observable with an added _IMP suffix for the Pecentile<>
// binning to work properly.
book(_impcalib, "sumETFwd_IMP", 400, 0.0, 20.0);
}
/// Perform the per-event analysis
voidanalyze(const Event& event) {
// The alternative centrality based on generated impact
// parameter, assumes that the generator does not describe the
// full final state, and should therefore be filled even if the
// event is not triggered.
_impcalib->fill(apply<SingleValueProjection>(event, "IMP")());
if ( !apply<ATLAS::MinBiasTrigger>(event, "Trigger")() ) vetoEvent;
_calib->fill(apply<ATLAS::SumET_PBPB_Centrality>(event, "Centrality")());
}
/// Finalize
voidfinalize() {
_calib->normalize();
_impcalib->normalize();
}
private:/// The calibration histograms.
Histo1DPtr _calib;
Histo1DPtr _impcalib;
};
// The hook for the plugin system
RIVET_DECLARE_PLUGIN(ATLAS_PBPB_CENTRALITY);
}