TriggerCDFRun2.hh
Go to the documentation of this file.
00001 // -*- C++ -*- 00002 #ifndef RIVET_TriggerCDFRun2_HH 00003 #define RIVET_TriggerCDFRun2_HH 00004 00005 #include "Rivet/Projection.hh" 00006 #include "Rivet/Event.hh" 00007 #include "Rivet/Particle.hh" 00008 #include "Rivet/Projections/Beam.hh" 00009 00010 namespace Rivet { 00011 00012 00013 /// @brief Access to the min bias triggers used by CDF in Run 0 and Run 1 00014 class TriggerCDFRun2 : public Projection { 00015 public: 00016 00017 /// Default constructor. 00018 TriggerCDFRun2() { 00019 setName("TriggerCDFRun2"); 00020 00021 addProjection(ChargedFinalState(-4.7, 4.7), "CFS"); 00022 } 00023 00024 /// Clone on the heap. 00025 DEFAULT_RIVET_PROJ_CLONE(TriggerCDFRun2); 00026 00027 00028 /// The trigger result 00029 bool minBiasDecision() const { 00030 return _decision_mb; 00031 } 00032 00033 /// Project on to the Event 00034 void project(const Event& evt); 00035 00036 00037 protected: 00038 00039 /// Compare with other projections. 00040 virtual int compare(const Projection& UNUSED(p)) const { 00041 return EQUIVALENT; 00042 } 00043 00044 00045 private: 00046 00047 /// The min bias trigger decision 00048 bool _decision_mb; 00049 00050 }; 00051 00052 00053 } 00054 00055 #endif Generated on Tue Dec 13 2016 16:32:41 for The Rivet MC analysis system by ![]() |