Rivet analyses

BRAHMS AuAu centrality calibration analysis.

Experiment: ()

Status: UNVALIDATED

Authors: - Christian Bierlich

References: - arXiv: 1508.00848 - Eur.Phys.J. C76 (2016) no.4, 199

Beams: * *

Beam energies: ANY

Run details: - Any!

Calibration analysis for BRAHMS AuAu centrality. The centrality number of charged particles at mid-rapidity. No reference yoda file.

Source code:BRAHMS_2004_CENT_AUAU.cc

// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Analyses/RHICCommon.hh"
#include "Rivet/Projections/ChargedFinalState.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Projections/ImpactParameterProjection.hh"
#include "Rivet/Projections/SingleValueProjection.hh"
#include "Rivet/Projections/UnstableParticles.hh"

namespace Rivet {


  /// @brief Brahms centrality calibration analysis based on the BrahmsCentrality projection.
  ///
  /// No data is given for this analysis, so one MUST do a calibration run.
  class BRAHMS_2004_CENT_AUAU : public Analysis {
  public:

    // Constructor
    BRAHMS_2004_CENT_AUAU()
        : Analysis("BRAHMS_2004_CENT_AUAU") { }


    // Initialize the analysis
    void init() {
      declare(BRAHMSCentrality(), "Centrality");
      declare(ImpactParameterProjection(), "IMP");

      // The central multiplicity.
      book(mult, "mult", 450, 0, 4500);

      // The impact parameter.
      book(imp, "mult_IMP", 100, 0, 20);
    }


    // Analyse a single event
    void analyze(const Event& event) {
      // Fill impact parameter.
      imp->fill(apply<SingleValueProjection>(event, "IMP")());
      // Fill multiplicity.
      mult->fill(apply<SingleValueProjection>(event, "Centrality")());
    }

    // Finalize the analysis
    void finalize() {
      // Normalize the distributions, safeguarding against
      // yoda normalization error.
      if (mult->numEntries() > 0) mult->normalize();
      if (imp->numEntries() > 0) imp->normalize();
    }


  private:

    // Histograms.
    Histo1DPtr mult;
    Histo1DPtr imp;
  };


  RIVET_DECLARE_PLUGIN(BRAHMS_2004_CENT_AUAU);

}