rivet is hosted by Hepforge, IPPP Durham
TriggerCDFRun0Run1.hh
Go to the documentation of this file.
00001 // -*- C++ -*-
00002 #ifndef RIVET_TriggerCDFRun0Run1_HH
00003 #define RIVET_TriggerCDFRun0Run1_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 TriggerCDFRun0Run1 : public Projection {
00015   public:
00016 
00017     /// Default constructor.
00018     TriggerCDFRun0Run1() {
00019       setName("TriggerCDFRun0Run1");
00020 
00021       addProjection(ChargedFinalState(-5.9, 5.9), "CFS");
00022     }
00023 
00024     /// Clone on the heap.
00025     virtual const Projection* clone() const {
00026       return new TriggerCDFRun0Run1(*this);
00027     }
00028 
00029 
00030   public:
00031 
00032     /// The trigger result
00033     bool minBiasDecision() const {
00034       return _decision_mb;
00035     }
00036 
00037     /// Project on to the Event
00038     void project(const Event& evt);
00039 
00040 
00041   protected:
00042 
00043     /// Compare with other projections.
00044     virtual int compare(const Projection& UNUSED(p)) const {
00045       return EQUIVALENT;
00046     }
00047 
00048 
00049   private:
00050 
00051     /// The min bias trigger decision
00052     bool _decision_mb;
00053 
00054   };
00055 
00056 
00057 }
00058 
00059 #endif