Rivet analyses
Angular correlations of identified particles at 7 TeV.
Experiment: ALICE (LHC)
Inspire ID: 1507157
Status: UNVALIDATED
Authors: - Christian Bierlich - Harsh Shah
References: - Eur.Phys.J.C77(2017)no.8,569 - DOI:10.1140/epjc/s10052-017-5129-6 - arXiv: 1612.08975
Beams: p+ p+
Beam energies: (3500.0, 3500.0)GeV
Run details: - Proton-proton minimum bias events at 7 TeV.
Angular correlations between like-sign and opposite-sign identified particles, integrated over Δη < 1.3. The analysis makes use of event mixing to remove background. The current implementation of the event mixing is not validated by experiment, and should be used with caution. Note in particular that for the event mixing to behave sensibly, event weights are assumed to be unity. Do not run this analysis with weighted events
Source
code:ALICE_2016_I1507157.cc
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Analyses/AliceCommon.hh"
#include "Rivet/Projections/PrimaryParticles.hh"
#include "Rivet/Projections/ChargedFinalState.hh"
#include "Rivet/Projections/EventMixingFinalState.hh"
namespace Rivet {
/// @brief Angular correlations of identified particles in pp at 7 TeV.
///
/// Also showcasing use of EventMixingFinalState.
class ALICE_2016_I1507157 : public Analysis {
public:
/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(ALICE_2016_I1507157);
/// @name Analysis methods
/// @{
/// @brief Calculate angular distance between particles,
/// return index of corresponding discrete bin
size_t discPhi(double a1, double a2, const YODA::Axis<double>& axis) const {
double diff = a1 - a2;
while (diff < axis.min(1)) diff += 2*M_PI;
while (diff > axis.max(axis.numBins())) diff -= 2*M_PI;
size_t idx = axis.index(diff);
return idx > axis.numBins()? 0 : idx;
}
/// Book histograms and initialise projections before the run
void init() {
const double etamax = 0.8;
const double pTmin = 0.2; // GeV
const double pTmax = 2.5; //GeV
// Trigger projection.
declare(ALICE::V0AndTrigger(), "V0-AND");
// Charged tracks used to manage the mixing observable.
ChargedFinalState cfsMult(Cuts::abseta < etamax);
declare(cfsMult, "CFSMult");
// Primary particles.
PrimaryParticles pp({Rivet::PID::PIPLUS, Rivet::PID::KPLUS,
Rivet::PID::K0S, Rivet::PID::K0L, Rivet::PID::PROTON,
Rivet::PID::NEUTRON, Rivet::PID::LAMBDA, Rivet::PID::SIGMAMINUS,
Rivet::PID::SIGMAPLUS, Rivet::PID::XIMINUS, Rivet::PID::XI0,
Rivet::PID::OMEGAMINUS},Cuts::abseta < etamax && Cuts::pT > pTmin*GeV && Cuts::pT < pTmax*GeV);
declare(pp,"APRIM");
// The event mixing projection
declare(EventMixingFinalState(cfsMult, pp, 5, 0, 100, 10, defaultWeightIndex()),"EVM");
// The particle pairs.
pid = {{211, -211}, {321, -321}, {2212, -2212}, {3122, -3122}, {211, 211},
{321, 321}, {2212, 2212}, {3122, 3122}, {2212, 3122}, {2212, -3122}};
// The differing pT cuts per pair, in GeV.
pTcuts = {{0.2, 0.2},{0.3, 0.3},{0.5,0.5},{0.6,0.6},{0.2,0.2},
{0.3,0.3},{0.5,0.5},{0.6,0.6},{0.5,0.6},{0.5,0.6}};
// The associated histograms in the data file.
vector<string> refdata = {"d04-x01-y01","d04-x01-y02","d04-x01-y03",
"d06-x01-y02","d05-x01-y01","d05-x01-y02","d05-x01-y03","d06-x01-y01",
"d01-x01-y02","d02-x01-y02"};
_axes.resize(3);
_axes[0] = YODA::Axis<double>({-1.46, -1.19, -0.97, -0.76, -0.54, -0.33, -0.11, 0.11, 0.33, 0.54,
0.76, 0.98, 1.19, 1.41, 1.62, 1.84, 2.06, 2.27, 2.49, 2.71,
2.92, 3.14, 3.36, 3.58, 3.79, 4.01, 4.22, 4.44, 4.66, 4.77});
_axes[1] = YODA::Axis<double>({-1.46, -1.19, -0.97, -0.76, -0.54, -0.33, -0.11, 0.11, 0.33, 0.54,
0.76, 0.98, 1.19, 1.41, 1.62, 1.84, 2.06, 2.27, 2.49, 2.71, 2.92,
3.14, 3.36, 3.58, 3.79, 4.01, 4.22, 4.44, 4.66, 4.77});
_axes[2] = YODA::Axis<double>({-1.14, -0.95, -0.69, -0.41, -0.14, 0.14, 0.41, 0.68, 0.96, 1.23,
1.50, 1.77, 2.05, 2.33, 2.59, 2.87, 3.14, 3.42, 3.68, 3.96,
4.24, 4.50, 4.78, 4.92});
// Resize all the analysis object containers to right size.
ratio.resize(refdata.size());
signal.resize(refdata.size());
background.resize(refdata.size());
nsp.resize(refdata.size());
nmp.resize(refdata.size());
for (int i = 0, N = refdata.size(); i < N; ++i) {
const auto& tmp = refData<YODA::BinnedEstimate<string>>(refdata[i]);
// The ratio plots.
book(ratio[i], refdata[i]);
// Signal and mixed background should not be displayed.
book(signal[i], "TMP/" + refdata[i] + "-s", tmp);
book(background[i], "TMP/" + refdata[i] + "-b", tmp);
// Number of signal and mixed pairs for normalization.
book(nsp[i],"TMP/nsp"+std::to_string(i));
book(nmp[i],"TMP/nmp"+std::to_string(i));
}
}
void fillPair(const Particle& p1, const Particle& p2, vector<BinnedHistoPtr<string>>& histos, vector<CounterPtr>& sow) {
if (isSame(p1,p2)) return;
// If the pair is not within eta acceptance, we can continue early.
if (abs(p1.eta() - p2.eta()) > 1.3) return;
// Figure out which pid pair we are looking at.
int iPair = -1;
for (int i = 0, N = pid.size(); i < N; ++i) {
if (pid[i].first == p1.pid() && pid[i].second == p2.pid()) {
iPair = i;
break;
}
}
// If the pair is not in the analysis, don't fill anything.
if (iPair < 0) return;
// Apply min pT cuts, varies for different species.
if (p1.pT() < pTcuts[iPair].first || p2.pT() < pTcuts[iPair].second) return;
size_t axis_id = iPair < 3? 0 : 2;
if (4 <= iPair && iPair <= 6) axis_id = 1;
size_t idx = discPhi(p1.phi(), p2.phi(), _axes[axis_id]);
histos[iPair]->fill(idx? histos[iPair]->bin(idx).xEdge() : "OTHER"s);
sow[iPair]->fill();
}
/// Perform the per-event analysis
void analyze(const Event& event) {
// Triggering.
if (!apply<ALICE::V0AndTrigger>(event, "V0-AND")()) return;
// The projections for signal and mixed event background.
const PrimaryParticles& pp =
apply<PrimaryParticles>(event,"APRIM");
const EventMixingFinalState& evm =
apply<EventMixingFinalState>(event, "EVM");
// Test if we have enough mixing events available to continue.
if (!evm.hasMixingEvents()) return;
for (const Particle& p1 : pp.particles()) {
// First do the signal histograms.
for (const Particle& p2 : pp.particles())
fillPair(p1, p2, signal, nsp);
// Then do the background
for (const Particle& p2 : evm.particles())
fillPair(p1, p2, background, nmp);
}
}
/// Normalise histograms etc., after the run
void finalize() {
for (int i = 0, N = pid.size(); i < N; ++i) {
// Scaling factor eqns. (2)-(5) in the paper.
double sc = nmp[i]->sumW() / nsp[i]->sumW();
signal[i]->scaleW(sc);
divide(signal[i],background[i],ratio[i]);
}
}
/// @}
/// Analysis variables.
vector<pair<int, int> > pid;
vector<pair<double, double> > pTcuts;
/// @name Histograms and counters
/// @{
vector<BinnedHistoPtr<string>> signal;
vector<BinnedHistoPtr<string>> background;
vector<BinnedEstimatePtr<string>> ratio;
vector<CounterPtr> nsp;
vector<CounterPtr> nmp;
vector<YODA::Axis<double>> _axes;
/// @}
};
RIVET_DECLARE_PLUGIN(ALICE_2016_I1507157);
}