File indexing completed on 2025-05-12 09:05:03
0001
0002 #ifndef RIVET_TriggerUA5_HH
0003 #define RIVET_TriggerUA5_HH
0004
0005 #include "Rivet/Projection.hh"
0006 #include "Rivet/Event.hh"
0007 #include "Rivet/Particle.hh"
0008 #include "Rivet/Projections/Beam.hh"
0009
0010 namespace Rivet {
0011
0012
0013
0014 class TriggerUA5 : public Projection {
0015 public:
0016
0017
0018 TriggerUA5();
0019
0020
0021 RIVET_DEFAULT_PROJ_CLONE(TriggerUA5);
0022
0023
0024 using Projection::operator =;
0025
0026
0027
0028 bool sdDecision() const {
0029 return _decision_sd;
0030 }
0031
0032
0033 bool nsdDecision() const {
0034 return _decision_nsd_1;
0035 }
0036
0037
0038
0039 bool nsd2Decision() const {
0040 return _decision_nsd_2;
0041 }
0042
0043
0044 bool samebeams() const {
0045 return _samebeams;
0046 }
0047
0048
0049 pair<unsigned int, unsigned int> numHits() {
0050 return make_pair(_n_plus, _n_minus);
0051 }
0052
0053
0054 void project(const Event& evt);
0055
0056
0057 protected:
0058
0059
0060 virtual CmpState compare(const Projection&) const {
0061 return CmpState::EQ;
0062 }
0063
0064
0065 protected:
0066
0067
0068 bool _decision_sd, _decision_nsd_1, _decision_nsd_2;
0069
0070
0071 bool _samebeams;
0072
0073
0074 unsigned int _n_plus, _n_minus;
0075
0076 };
0077
0078
0079 }
0080
0081 #endif