Rivet  1.8.3
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 
10 namespace Rivet {
11 
12 
14  class TriggerCDFRun2 : public Projection {
15  public:
16 
19  setName("TriggerCDFRun2");
20 
21  addProjection(ChargedFinalState(-4.7, 4.7), "CFS");
22  }
23 
25  virtual const Projection* clone() const {
26  return new TriggerCDFRun2(*this);
27  }
28 
29 
30  public:
31 
33  bool minBiasDecision() const {
34  return _decision_mb;
35  }
36 
38  void project(const Event& evt);
39 
40 
41  protected:
42 
44  virtual int compare(const Projection& UNUSED(p)) const {
45  return EQUIVALENT;
46  }
47 
48 
49  private:
50 
52  bool _decision_mb;
53 
54  };
55 
56 
57 }
58 
59 #endif
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Definition: MC_JetAnalysis.hh:9
void project(const Event &evt)
Project on to the Event.
Definition: TriggerCDFRun2.cc:11
Access to the min bias triggers used by CDF in Run 0 and Run 1.
Definition: TriggerCDFRun2.hh:14
Definition: Event.hh:22
bool minBiasDecision() const
The trigger result.
Definition: TriggerCDFRun2.hh:33
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
virtual const Projection * clone() const
Clone on the heap.
Definition: TriggerCDFRun2.hh:25
virtual int compare(const Projection &UNUSED(p)) const
Compare with other projections.
Definition: TriggerCDFRun2.hh:44
Project only charged final state particles.
Definition: ChargedFinalState.hh:16
TriggerCDFRun2()
Default constructor.
Definition: TriggerCDFRun2.hh:18
Base class for all Rivet projections.
Definition: Projection.hh:28