rivet is hosted by Hepforge, IPPP Durham
Rivet 4.0.0
TriggerUA5.hh
1// -*- C++ -*-
2#ifndef RIVET_TriggerUA5_HH
3#define RIVET_TriggerUA5_HH
4
5#include "Rivet/Projection.hh"
6#include "Rivet/Event.hh"
7#include "Rivet/Particle.hh"
8#include "Rivet/Projections/Beam.hh"
9
10namespace Rivet {
11
12
14 class TriggerUA5 : public Projection {
15 public:
16
19
22
24 using Projection::operator =;
25
26
28 bool sdDecision() const {
29 return _decision_sd;
30 }
31
33 bool nsdDecision() const {
34 return _decision_nsd_1;
35 }
36
39 bool nsd2Decision() const {
40 return _decision_nsd_2;
41 }
42
44 bool samebeams() const {
45 return _samebeams;
46 }
47
49 pair<unsigned int, unsigned int> numHits() {
50 return make_pair(_n_plus, _n_minus);
51 }
52
54 void project(const Event& evt);
55
56
57 protected:
58
60 virtual CmpState compare(const Projection&) const {
61 return CmpState::EQ;
62 }
63
64
65 protected:
66
68 bool _decision_sd, _decision_nsd_1, _decision_nsd_2;
69
71 bool _samebeams;
72
74 unsigned int _n_plus, _n_minus;
75
76 };
77
78
79}
80
81#endif
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Base class for all Rivet projections.
Definition Projection.hh:29
Access to the min bias triggers used by UA5.
Definition TriggerUA5.hh:14
RIVET_DEFAULT_PROJ_CLONE(TriggerUA5)
Clone on the heap.
TriggerUA5()
Default constructor.
bool samebeams() const
The trigger result.
Definition TriggerUA5.hh:44
bool nsdDecision() const
The trigger result for non-single diffractive (2 arm) trigger.
Definition TriggerUA5.hh:33
virtual CmpState compare(const Projection &) const
Compare with other projections.
Definition TriggerUA5.hh:60
void project(const Event &evt)
Project on to the event.
bool sdDecision() const
The trigger result for non-single diffractive (2 arm) trigger.
Definition TriggerUA5.hh:28
bool nsd2Decision() const
Definition TriggerUA5.hh:39
pair< unsigned int, unsigned int > numHits()
Number of hits in <-,+> eta hodoscopes.
Definition TriggerUA5.hh:49
Definition MC_CENT_PPB_Projections.hh:10