rivet is hosted by Hepforge, IPPP Durham
Rivet 3.1.6
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
15 public:
16
19 setName("TriggerCDFRun0Run1");
20
21 declare(ChargedFinalState(Cuts::etaIn(-5.9, 5.9)), "CFS");
22 }
23
26
27
29 bool minBiasDecision() const {
30 return _decision_mb;
31 }
32
34 void project(const Event& evt);
35
36
37 protected:
38
40 virtual CmpState compare(const Projection&) const {
41 return CmpState::EQ;
42 }
43
44
45 private:
46
48 bool _decision_mb;
49
50 };
51
52
53}
54
55#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)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170
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:142
Access to the min bias triggers used by CDF in Run 0 and Run 1.
Definition: TriggerCDFRun0Run1.hh:14
DEFAULT_RIVET_PROJ_CLONE(TriggerCDFRun0Run1)
Clone on the heap.
bool minBiasDecision() const
The trigger result.
Definition: TriggerCDFRun0Run1.hh:29
TriggerCDFRun0Run1()
Default constructor.
Definition: TriggerCDFRun0Run1.hh:18
virtual CmpState compare(const Projection &) const
Compare with other projections.
Definition: TriggerCDFRun0Run1.hh:40
void project(const Event &evt)
Project on to the Event.
Definition: MC_Cent_pPb.hh:10