File indexing completed on 2025-05-12 09:05:03
0001
0002 #ifndef RIVET_PrimaryHadrons_HH
0003 #define RIVET_PrimaryHadrons_HH
0004
0005 #include "Rivet/Projections/FinalState.hh"
0006 #include "Rivet/Projections/UnstableParticles.hh"
0007 #include "Rivet/Particle.hh"
0008 #include "Rivet/Event.hh"
0009
0010 namespace Rivet {
0011
0012
0013
0014
0015
0016
0017
0018 class PrimaryHadrons : public FinalState {
0019 public:
0020
0021
0022
0023
0024
0025 PrimaryHadrons(const Cut& c=Cuts::open()) {
0026 setName("PrimaryHadrons");
0027 declare(UnstableParticles(c), "UFS");
0028 }
0029
0030
0031
0032 PrimaryHadrons(double mineta, double maxeta, double minpt=0.0*GeV) {
0033 setName("PrimaryHadrons");
0034 declare(UnstableParticles(Cuts::etaIn(mineta, maxeta) && Cuts::pT > minpt), "UFS");
0035 }
0036
0037
0038 RIVET_DEFAULT_PROJ_CLONE(PrimaryHadrons);
0039
0040
0041
0042
0043
0044 using Projection::operator =;
0045
0046
0047
0048 virtual void project(const Event& e);
0049
0050
0051
0052
0053 };
0054
0055
0056 }
0057
0058
0059 #endif