Rivet 3.1.9
TriggerCDFRun2.hh
1// -*- C++ -*-
2#ifndef RIVET_TriggerCDFRun2_HH
3#define RIVET_TriggerCDFRun2_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 TriggerCDFRun2 : public Projection {
15 public:
16
19 setName("TriggerCDFRun2");
20
21 declare(ChargedFinalState(Cuts::etaIn(-4.7, 4.7)), "CFS");
22 }
23
26
28 using Projection::operator =;
29
30
32 bool minBiasDecision() const {
33 return _decision_mb;
34 }
35
37 void project(const Event& evt);
38
39
40 protected:
41
43 virtual CmpState compare(const Projection&) const {
44 return CmpState::EQ;
45 }
46
47
48 protected:
49
51 bool _decision_mb;
52
53 };
54
55
56}
57
58#endif
Project only charged final state particles.
Definition ChargedFinalState.hh:11
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
const PROJ & declare(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:170
Base class for all Rivet projections.
Definition Projection.hh:29
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:142
Access to the min bias triggers used by CDF in Run 0 and Run 1.
Definition TriggerCDFRun2.hh:14
virtual CmpState compare(const Projection &) const
Compare with other projections.
Definition TriggerCDFRun2.hh:43
TriggerCDFRun2()
Default constructor.
Definition TriggerCDFRun2.hh:18
void project(const Event &evt)
Project on to the Event.
bool minBiasDecision() const
The trigger result.
Definition TriggerCDFRun2.hh:32
DEFAULT_RIVET_PROJ_CLONE(TriggerCDFRun2)
Clone on the heap.
Definition MC_Cent_pPb.hh:10