2 #include "Rivet/Analysis.hh"
3 #include "Rivet/RivetAIDA.hh"
4 #include "Rivet/Projections/ChargedFinalState.hh"
5 #include "Rivet/Projections/Beam.hh"
14 setBeams(PROTON, PROTON);
15 setNeedsCrossSection(
false);
20 ChargedFinalState cfs(-2.5, 2.5, 0.0*GeV);
21 addProjection(cfs,
"CFS");
22 addProjection(Beam(),
"Beam");
26 if(fuzzyEquals(sqrtS(), 7000*GeV, 1E-3)){
52 if (!fuzzyEquals(sqrtS(), 7000*GeV, 1E-3) ) {
56 const double weight =
event.weight();
59 const ChargedFinalState& charged = applyProjection<ChargedFinalState>(
event,
"CFS");
63 foreach (
const Particle&
p, charged.particles()) {
64 const double pT = p.momentum().pT();
65 const double eta = p.momentum().eta();
70 if (fabs(eta)<2.4 && pT>0.1) {
74 int ietabin = fabs(eta)/0.2;
86 if (!fuzzyEquals(sqrtS(), 7000*GeV, 1E-3) ) {
95 const double normpT = normfac/(2.0*0.2);
96 const double normpTall = normfac/(2.0*3.141592654*2.0*2.4);
98 for (
int ietabin=0; ietabin < 12; ietabin++){
void analyze(const Event &event)
AIDA::IHistogram1D * _h_dNch_dEta
AnalysisBuilder< CMS_2010_S8656010 > plugin_CMS_2010_S8656010
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_dNch_dpT[12]
AIDA::IHistogram1D * _h_dNch_dpT_all