2 #include "Rivet/Analysis.hh"
3 #include "Rivet/RivetAIDA.hh"
4 #include "Rivet/Tools/Logging.hh"
5 #include "Rivet/Projections/UnstableFinalState.hh"
6 #include "Rivet/Projections/Beam.hh"
17 : Analysis(
"CMS_2011_S8978280"),
20 setBeams(PROTON, PROTON);
21 setNeedsCrossSection(
false);
27 addProjection(Beam(),
"Beam");
30 UnstableFinalState ufs(-8.0, 8.0, 0.0*GeV);
31 addProjection(ufs,
"UFS");
35 if (fuzzyEquals(sqrtS(), 900*GeV, 1E-3)){
42 }
else if (fuzzyEquals(sqrtS(), 7000*GeV, 1E-3)){
56 if (!fuzzyEquals(sqrtS(), 900*GeV, 1E-3) && !fuzzyEquals(sqrtS(), 7000*GeV, 1E-3) ){
59 const double weight =
event.weight();
64 const UnstableFinalState&
parts = applyProjection<UnstableFinalState>(
event,
"UFS");
66 foreach (
const Particle&
p, parts.particles()) {
67 const double pT = p.momentum().pT();
68 const double y = fabs(p.momentum().rapidity());
69 const PdgId
pid =
abs(p.pdgId());
80 if ( !( p.hasAncestor(3322) || p.hasAncestor(-3322) || p.hasAncestor(3312) || p.hasAncestor(-3312) || p.hasAncestor(3334) || p.hasAncestor(-3334) ) ) {
87 if ( !( p.hasAncestor(3334) || p.hasAncestor(-3334) ) ) {
100 if (!fuzzyEquals(sqrtS(), 900*GeV, 1E-3) && !fuzzyEquals(sqrtS(), 7000*GeV, 1E-3) ){
103 AIDA::IHistogramFactory& hf = histogramFactory();
104 const string dir = histoDir();
107 if (fuzzyEquals(sqrtS(), 900*GeV, 1E-3)){
112 }
else if (fuzzyEquals(sqrtS(), 7000*GeV, 1E-3)){
120 double normy = 0.5*normpT;
AnalysisBuilder< CMS_2011_S8978280 > plugin_CMS_2011_S8978280
CMS strange particle spectra (Ks, Lambda, Cascade) in pp at 900 and 7000 GeV.
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
AIDA::IHistogram1D * _h_dNLambda_dy
AIDA::IHistogram1D * _h_dNKshort_dpT
AIDA::IHistogram1D * _h_dNLambda_dpT
CMS_2011_S8978280()
Constructor.
AIDA::IHistogram1D * _h_dNXi_dy
AIDA::IHistogram1D * _h_dNKshort_dy
AIDA::IHistogram1D * _h_dNXi_dpT
void analyze(const Event &event)
Perform the per-event analysis.