TriggerUA5.hh
// -*- C++ -*-
#ifndef RIVET_TriggerUA5_HH
#define RIVET_TriggerUA5_HH
#include "Rivet/Projection.hh"
#include "Rivet/Event.hh"
#include "Rivet/Particle.hh"
#include "Rivet/Projections/Beam.hh"
namespace Rivet {
class TriggerUA5 : public Projection {
public:
TriggerUA5();
virtual const Projection* clone() const {
return new TriggerUA5(*this);
}
public:
bool sdDecision() const {
return _decision_sd;
}
bool nsdDecision() const {
return _decision_nsd_1;
}
bool nsd2Decision() const {
return _decision_nsd_2;
}
bool samebeams() const {
return _samebeams;
}
pair<unsigned int, unsigned int> numHits() {
return make_pair(_n_plus, _n_minus);
}
void project(const Event& evt);
protected:
virtual int compare(const Projection& UNUSED(p)) const {
return EQUIVALENT;
}
private:
bool _decision_sd, _decision_nsd_1, _decision_nsd_2;
bool _samebeams;
unsigned int _n_plus, _n_minus;
};
}
#endif
Rivet
Definition: MC_JetAnalysis.hh:9
Rivet::TriggerUA5
Access to the min bias triggers used by UA5.
Definition: TriggerUA5.hh:14
Rivet::TriggerUA5::compare
virtual int compare(const Projection &UNUSED(p)) const
Compare with other projections.
Definition: TriggerUA5.hh:61
Rivet::TriggerUA5::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: TriggerUA5.hh:21
Rivet::TriggerUA5::project
void project(const Event &evt)
Project on to the event.
Definition: TriggerUA5.cc:19
Rivet::Event
Definition: Event.hh:22
Rivet::TriggerUA5::nsdDecision
bool nsdDecision() const
The trigger result for non-single diffractive (2 arm) trigger.
Definition: TriggerUA5.hh:34
Rivet::TriggerUA5::samebeams
bool samebeams() const
The trigger result.
Definition: TriggerUA5.hh:45
Rivet::TriggerUA5::numHits
pair< unsigned int, unsigned int > numHits()
Number of hits in <-,+> eta hodoscopes.
Definition: TriggerUA5.hh:50
Rivet::TriggerUA5::nsd2Decision
bool nsd2Decision() const
Definition: TriggerUA5.hh:40
Rivet::TriggerUA5::TriggerUA5
TriggerUA5()
Default constructor.
Definition: TriggerUA5.cc:11
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28
Rivet::TriggerUA5::sdDecision
bool sdDecision() const
The trigger result for non-single diffractive (2 arm) trigger.
Definition: TriggerUA5.hh:29