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(), 900*GeV, 1E-3)){
45 }
else if (fuzzyEquals(sqrtS(), 2360*GeV, 1E-3)){
71 if (!fuzzyEquals(sqrtS(), 900*GeV, 1E-3) && !fuzzyEquals(sqrtS(), 2360*GeV, 1E-3) ){
75 const double weight =
event.weight();
78 const ChargedFinalState& charged = applyProjection<ChargedFinalState>(
event,
"CFS");
82 foreach (
const Particle&
p, charged.particles()) {
83 const double pT = p.momentum().pT();
84 const double eta = p.momentum().eta();
89 if (fabs(eta)<2.4 && pT>0.1) {
93 int ietabin = fabs(eta)/0.2;
105 if (!fuzzyEquals(sqrtS(), 900*GeV, 1E-3) && !fuzzyEquals(sqrtS(), 2360*GeV, 1E-3) ){
114 const double normpT = normfac/(2.0*0.2);
115 const double normpTall = normfac/(2.0*3.141592654*2.0*2.4);
117 for (
int ietabin=0; ietabin < 12; ietabin++){
AIDA::IHistogram1D * _h_dNch_dpT_all
AIDA::IHistogram1D * _h_dNch_dEta
void analyze(const Event &event)
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
AnalysisBuilder< CMS_2010_S8547297 > plugin_CMS_2010_S8547297
AIDA::IHistogram1D * _h_dNch_dpT[12]