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

| 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
18 TriggerCDFRun2() {
19 setName("TriggerCDFRun2");
20
21 declare(ChargedFinalState(Cuts::etaIn(-4.7, 4.7)), "CFS");
22 }
23
25 DEFAULT_RIVET_PROJ_CLONE(TriggerCDFRun2);
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
Rivet::ChargedFinalState
Project only charged final state particles.
Definition ChargedFinalState.hh:11
Rivet::Event
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Rivet::ProjectionApplier::declare
const PROJ & declare(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:170
Rivet::Projection
Base class for all Rivet projections.
Definition Projection.hh:29
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:142
Rivet::TriggerCDFRun2
Access to the min bias triggers used by CDF in Run 0 and Run 1.
Definition TriggerCDFRun2.hh:14
Rivet::TriggerCDFRun2::compare
virtual CmpState compare(const Projection &) const
Compare with other projections.
Definition TriggerCDFRun2.hh:43
Rivet::TriggerCDFRun2::TriggerCDFRun2
TriggerCDFRun2()
Default constructor.
Definition TriggerCDFRun2.hh:18
Rivet::TriggerCDFRun2::project
void project(const Event &evt)
Project on to the Event.
Rivet::TriggerCDFRun2::minBiasDecision
bool minBiasDecision() const
The trigger result.
Definition TriggerCDFRun2.hh:32
Rivet::TriggerCDFRun2::DEFAULT_RIVET_PROJ_CLONE
DEFAULT_RIVET_PROJ_CLONE(TriggerCDFRun2)
Clone on the heap.
Rivet
Definition MC_Cent_pPb.hh:10