rivet is hosted by Hepforge, IPPP Durham
Rivet 4.0.0
TriggerCDFRun0Run1.hh
1// -*- C++ -*-
2#ifndef RIVET_TriggerCDFRun0Run1_HH
3#define RIVET_TriggerCDFRun0Run1_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
17 public:
18
21 setName("TriggerCDFRun0Run1");
22
23 declare(ChargedFinalState(Cuts::etaIn(-5.9, 5.9)), "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 TriggerCDFRun0Run1.hh:16
bool minBiasDecision() const
The trigger result.
Definition TriggerCDFRun0Run1.hh:34
RIVET_DEFAULT_PROJ_CLONE(TriggerCDFRun0Run1)
Clone on the heap.
TriggerCDFRun0Run1()
Default constructor.
Definition TriggerCDFRun0Run1.hh:20
virtual CmpState compare(const Projection &) const
Compare with other projections.
Definition TriggerCDFRun0Run1.hh:45
void project(const Event &evt)
Project on to the Event.
Definition MC_CENT_PPB_Projections.hh:10