Rivet: /Users/chrisg/software/rivet/include/Rivet/Projections/TriggerUA5.hh Source File

| Rivet 3.1.9

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
18 TriggerUA5();
19
21 DEFAULT_RIVET_PROJ_CLONE(TriggerUA5);
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
Rivet::Event
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Rivet::Projection
Base class for all Rivet projections.
Definition Projection.hh:29
Rivet::TriggerUA5
Access to the min bias triggers used by UA5.
Definition TriggerUA5.hh:14
Rivet::TriggerUA5::TriggerUA5
TriggerUA5()
Default constructor.
Rivet::TriggerUA5::samebeams
bool samebeams() const
The trigger result.
Definition TriggerUA5.hh:44
Rivet::TriggerUA5::DEFAULT_RIVET_PROJ_CLONE
DEFAULT_RIVET_PROJ_CLONE(TriggerUA5)
Clone on the heap.
Rivet::TriggerUA5::nsdDecision
bool nsdDecision() const
The trigger result for non-single diffractive (2 arm) trigger.
Definition TriggerUA5.hh:33
Rivet::TriggerUA5::compare
virtual CmpState compare(const Projection &) const
Compare with other projections.
Definition TriggerUA5.hh:60
Rivet::TriggerUA5::project
void project(const Event &evt)
Project on to the event.
Rivet::TriggerUA5::sdDecision
bool sdDecision() const
The trigger result for non-single diffractive (2 arm) trigger.
Definition TriggerUA5.hh:28
Rivet::TriggerUA5::nsd2Decision
bool nsd2Decision() const
Definition TriggerUA5.hh:39
Rivet::TriggerUA5::numHits
pair< unsigned int, unsigned int > numHits()
Number of hits in <-,+> eta hodoscopes.
Definition TriggerUA5.hh:49
Rivet
Definition MC_Cent_pPb.hh:10