rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

STAR_BES_CALIB

STAR Beam Energy Scan centrality calibration analysis.
Experiment: ()
Status: UNVALIDATED
Authors:
  • Christian Bierlich
No references listed
Beams: * *
Beam energies: ANY
Run details:
  • Any!

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

Source code: STAR_BES_CALIB.cc
 1// -*- C++ -*-
 2#include <iostream>
 3#include <string>
 4#include "Rivet/Analysis.hh"
 5#include "Rivet/Projections/ChargedFinalState.hh"
 6#include "Rivet/Projections/FinalState.hh"
 7#include "Rivet/Projections/ImpactParameterProjection.hh"
 8#include "Rivet/Projections/SingleValueProjection.hh"
 9#include "Rivet/Tools/Percentile.hh"
10#include "Rivet/Analyses/RHICCommon.hh"
11
12namespace Rivet {
13
14class STAR_BES_CALIB : public Analysis {
15       public:
16	STAR_BES_CALIB() : Analysis("STAR_BES_CALIB") {}
17	void init() {
18		declare(STAR_BES_Centrality(), "Centrality");
19		declare(ImpactParameterProjection(), "IMP");
20		// The calibrationhistogram:
21		book(_calib, "CMULT", 100, 0.0, 200.0);
22
23		// The alternative histogram based on impact parameter. Note
24		// that it MUST be named the same as the histogram for the
25		// experimental observable with an added _IMP suffix for the
26		// Pecentile<> binning to work properly.
27		book(_impcalib, "CMULT_IMP", 400, 0.0, 20.0);
28	}
29
30	void analyze(const Event& event) {
31
32		_impcalib->fill(apply<SingleValueProjection>(event, "IMP")());
33
34		_calib->fill(apply<STAR_BES_Centrality>(event, "Centrality")());
35	}
36
37	void finalize() {
38		_calib->normalize();
39		_impcalib->normalize();
40	}
41
42       private:
43	/// The calibration histograms.
44	Histo1DPtr _calib;
45	Histo1DPtr _impcalib;
46
47};
48
49RIVET_DECLARE_PLUGIN(STAR_BES_CALIB);
50
51}