rivet is hosted by Hepforge, IPPP Durham
Rivet 4.0.0
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
16 class TriggerCDFRun2 : public Projection {
17 public:
18
21 setName("TriggerCDFRun2");
22
23 declare(ChargedFinalState(Cuts::etaIn(-4.7, 4.7)), "CFS");
24 }
25
28
30 using Projection::operator =;
31
32
34 bool minBiasDecision() const {
35 return _decision_mb;
36 }
37
39 void project(const Event& evt);
40
41
42 protected:
43
45 virtual CmpState compare(const Projection&) const {
46 return CmpState::EQ;
47 }
48
49
50 protected:
51
53 bool _decision_mb;
54
55 };
56
57
58}
59
60#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) const
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:175
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:148
Access to the min bias triggers used by CDF in Run 0 and Run 1.
Definition TriggerCDFRun2.hh:16
RIVET_DEFAULT_PROJ_CLONE(TriggerCDFRun2)
Clone on the heap.
virtual CmpState compare(const Projection &) const
Compare with other projections.
Definition TriggerCDFRun2.hh:45
TriggerCDFRun2()
Default constructor.
Definition TriggerCDFRun2.hh:20
void project(const Event &evt)
Project on to the Event.
bool minBiasDecision() const
The trigger result.
Definition TriggerCDFRun2.hh:34
Definition MC_CENT_PPB_Projections.hh:10