Rivet API documentation

Rivet 4.1.3
TriggerCDFRun0Run1.hh
1// -*- C++ -*-
2#ifndef RIVET_TriggerCDFRun0Run1_HH
3#define RIVET_TriggerCDFRun0Run1_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
18 public:
19
22 setName("TriggerCDFRun0Run1");
23
24 declare(ChargedFinalState(Cuts::etaIn(-5.9, 5.9)), "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
bool minBiasDecision() const
The trigger result.
Definition TriggerCDFRun0Run1.hh:35
RIVET_DEFAULT_PROJ_CLONE(TriggerCDFRun0Run1)
Clone on the heap.
TriggerCDFRun0Run1()
Default constructor.
Definition TriggerCDFRun0Run1.hh:21
virtual CmpState compare(const Projection &) const
Compare with other projections.
Definition TriggerCDFRun0Run1.hh:46
void project(const Event &evt)
Project on to the Event.
Definition LHCbCommon.hh:9