rivet is hosted by Hepforge, IPPP Durham

## Rivet analyses reference

### ALICE_2011_S8909580

Strange particle production in proton-proton collisions at $\sqrt{s} = 0.9$ TeV with ALICE at the LHC.
Experiment: ALICE (LHC)
Inspire ID: 881474
Status: VALIDATED
Authors:
• Pablo Bueno Gomez
• Eva Sicking
References:
• Eur.Phys.J.C71:1594,2011.
Beams: p+ p+
Beam energies: (450.0, 450.0) GeV
Run details:
• Diffractive events need to be switched on.

Tranverse momentum spectra of strange particles ($K^0_S$, $\Lambda$, $\phi$ and $\Xi$) in $pp$ collisions at $\sqrt{s} = 0.9$\;TeV with ALICE at the LHC. The ratio of cross-sections as a function of pT for $\Lambda/K^0_S$ is also included.

Source code: ALICE_2011_S8909580.cc
  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 #include "Rivet/Analysis.hh" #include "Rivet/Projections/FinalState.hh" #include "Rivet/Projections/UnstableParticles.hh" namespace Rivet { class ALICE_2011_S8909580 : public Analysis { public: ALICE_2011_S8909580() : Analysis("ALICE_2011_S8909580") {} public: void init() { const UnstableParticles ufs(Cuts::abseta < 15); declare(ufs, "UFS"); _histPtK0s = bookHisto1D(1, 1, 1); _histPtLambda = bookHisto1D(2, 1, 1); _histPtAntiLambda = bookHisto1D(3, 1, 1); _histPtXi = bookHisto1D(4, 1, 1); _histPtPhi = bookHisto1D(5, 1, 1); _temp_h_Lambdas = bookHisto1D("TMP/h_Lambdas", refData(6, 1, 1)); _temp_h_Kzeros = bookHisto1D("TMP/h_Kzeros", refData(6, 1, 1)); _h_LamKzero = bookScatter2D(6, 1, 1); } void analyze(const Event& event) { const double weight = event.weight(); const UnstableParticles& ufs = apply(event, "UFS"); foreach (const Particle& p, ufs.particles()) { const double absrap = p.absrap(); const double pT = p.pT()/GeV; if (absrap < 0.8) { switch(p.pid()) { case 3312: case -3312: if ( !( p.hasAncestor(3334) || p.hasAncestor(-3334) ) ) { _histPtXi->fill(pT, weight); } break; if (absrap < 0.75) { case 310: _histPtK0s->fill(pT, weight); _temp_h_Kzeros->fill(pT, 2*weight); break; case 3122: if ( !( p.hasAncestor(3322) || p.hasAncestor(-3322) || p.hasAncestor(3312) || p.hasAncestor(-3312) || p.hasAncestor(3334) || p.hasAncestor(-3334) ) ) { _histPtLambda->fill(pT, weight); _temp_h_Lambdas->fill(pT, weight); } break; case -3122: if ( !( p.hasAncestor(3322) || p.hasAncestor(-3322) || p.hasAncestor(3312) || p.hasAncestor(-3312) || p.hasAncestor(3334) || p.hasAncestor(-3334) ) ) { _histPtAntiLambda->fill(pT, weight); _temp_h_Lambdas->fill(pT, weight); } break; } if (absrap<0.6) { case 333: _histPtPhi->fill(pT, weight); break; } } } } } void finalize() { scale(_histPtK0s, 1./(1.5*sumOfWeights())); scale(_histPtLambda, 1./(1.5*sumOfWeights())); scale(_histPtAntiLambda, 1./(1.5*sumOfWeights())); scale(_histPtXi, 1./(1.6*sumOfWeights())); scale(_histPtPhi, 1./(1.2*sumOfWeights())); divide(_temp_h_Lambdas, _temp_h_Kzeros, _h_LamKzero); } private: Histo1DPtr _histPtK0s, _histPtLambda, _histPtAntiLambda, _histPtXi, _histPtPhi; Histo1DPtr _temp_h_Lambdas, _temp_h_Kzeros; Scatter2DPtr _h_LamKzero; }; // The hook for the plugin system DECLARE_RIVET_PLUGIN(ALICE_2011_S8909580); }