Rivet  1.8.3
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 
10 namespace Rivet {
11 
12 
14  class TriggerUA5 : public Projection {
15  public:
16 
18  TriggerUA5();
19 
21  virtual const Projection* clone() const {
22  return new TriggerUA5(*this);
23  }
24 
25 
26  public:
27 
29  bool sdDecision() const {
30  return _decision_sd;
31  }
32 
34  bool nsdDecision() const {
35  return _decision_nsd_1;
36  }
37 
40  bool nsd2Decision() const {
41  return _decision_nsd_2;
42  }
43 
45  bool samebeams() const {
46  return _samebeams;
47  }
48 
50  pair<unsigned int, unsigned int> numHits() {
51  return make_pair(_n_plus, _n_minus);
52  }
53 
55  void project(const Event& evt);
56 
57 
58  protected:
59 
61  virtual int compare(const Projection& UNUSED(p)) const {
62  return EQUIVALENT;
63  }
64 
65 
66  private:
67 
69  bool _decision_sd, _decision_nsd_1, _decision_nsd_2;
70 
72  bool _samebeams;
73 
75  unsigned int _n_plus, _n_minus;
76 
77  };
78 
79 
80 }
81 
82 #endif
Access to the min bias triggers used by UA5.
Definition: TriggerUA5.hh:14
bool nsd2Decision() const
Definition: TriggerUA5.hh:40
void project(const Event &evt)
Project on to the event.
Definition: TriggerUA5.cc:19
bool samebeams() const
The trigger result.
Definition: TriggerUA5.hh:45
Definition: Event.hh:22
bool nsdDecision() const
The trigger result for non-single diffractive (2 arm) trigger.
Definition: TriggerUA5.hh:34
pair< unsigned int, unsigned int > numHits()
Number of hits in &lt;-,+&gt; eta hodoscopes.
Definition: TriggerUA5.hh:50
bool sdDecision() const
The trigger result for non-single diffractive (2 arm) trigger.
Definition: TriggerUA5.hh:29
virtual int compare(const Projection &UNUSED(p)) const
Compare with other projections.
Definition: TriggerUA5.hh:61
TriggerUA5()
Default constructor.
Definition: TriggerUA5.cc:11
virtual const Projection * clone() const
Clone on the heap.
Definition: TriggerUA5.hh:21
Base class for all Rivet projections.
Definition: Projection.hh:28