rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
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 
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 int compare(const Projection&) const {
41  return EQUIVALENT;
42  }
43 
44 
45  private:
46 
48  bool _decision_mb;
49 
50  };
51 
52 
53 }
54 
55 #endif
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:133
Definition: ALICE_2010_I880049.cc:13
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
DEFAULT_RIVET_PROJ_CLONE(TriggerCDFRun2)
Clone on the heap.
bool minBiasDecision() const
The trigger result.
Definition: TriggerCDFRun2.hh:29
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170
Project only charged final state particles.
Definition: ChargedFinalState.hh:11
TriggerCDFRun2()
Default constructor.
Definition: TriggerCDFRun2.hh:18
Base class for all Rivet projections.
Definition: Projection.hh:29
virtual int compare(const Projection &) const
Compare with other projections.
Definition: TriggerCDFRun2.hh:40