Rivet API documentation

Rivet 4.1.3
TriggerCDFRun2.hh
1// -*- C++ -*-
2#ifndef RIVET_TriggerCDFRun2_HH
3#define RIVET_TriggerCDFRun2_HH
4
5#include "Rivet/Event.hh"
6#include "Rivet/Particle.hh"
7#include "Rivet/Projection.hh"
8#include "Rivet/Projections/Beam.hh"
9#include "Rivet/Projections/ChargedFinalState.hh"
10
11namespace Rivet {
12
13
17 class TriggerCDFRun2 : public Projection {
18 public:
19
22 setName("TriggerCDFRun2");
23
24 declare(ChargedFinalState(Cuts::etaIn(-4.7, 4.7)), "CFS");
25 }
26
29
31 using Projection::operator=;
32
33
35 bool minBiasDecision() const {
36 return _decision_mb;
37 }
38
40 void project(const Event& evt);
41
42
43 protected:
44
46 virtual CmpState compare(const Projection&) const {
47 return CmpState::EQ;
48 }
49
50
51 protected:
52
54 bool _decision_mb;
55 };
56
57
58}
59
60#endif
Project only charged final state particles.
Definition ChargedFinalState.hh:11
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version).
Definition ProjectionApplier.hh:205
Projection()
The default constructor.
friend class Event
Event is a friend.
Definition Projection.hh:33
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:146
RIVET_DEFAULT_PROJ_CLONE(TriggerCDFRun2)
Clone on the heap.
virtual CmpState compare(const Projection &) const
Compare with other projections.
Definition TriggerCDFRun2.hh:46
TriggerCDFRun2()
Default constructor.
Definition TriggerCDFRun2.hh:21
void project(const Event &evt)
Project on to the Event.
bool minBiasDecision() const
The trigger result.
Definition TriggerCDFRun2.hh:35
Definition LHCbCommon.hh:9