Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-05-12 09:05:03

0001 // -*- C++ -*-
0002 #ifndef RIVET_TriggerCDFRun0Run1_HH
0003 #define RIVET_TriggerCDFRun0Run1_HH
0004 
0005 #include "Rivet/Projection.hh"
0006 #include "Rivet/Event.hh"
0007 #include "Rivet/Particle.hh"
0008 #include "Rivet/Projections/Beam.hh"
0009 
0010 namespace Rivet {
0011 
0012 
0013   /// @brief Access to the min bias triggers used by CDF in Run 0 and Run 1
0014   ///
0015   /// @todo Should really inherit from TriggerProjection!
0016   class TriggerCDFRun0Run1 : public Projection {
0017   public:
0018 
0019     /// Default constructor.
0020     TriggerCDFRun0Run1() {
0021       setName("TriggerCDFRun0Run1");
0022 
0023       declare(ChargedFinalState(Cuts::etaIn(-5.9, 5.9)), "CFS");
0024     }
0025 
0026     /// Clone on the heap.
0027     RIVET_DEFAULT_PROJ_CLONE(TriggerCDFRun0Run1);
0028 
0029     /// Import to avoid warnings about overload-hiding
0030     using Projection::operator =;
0031 
0032 
0033     /// The trigger result
0034     bool minBiasDecision() const {
0035       return _decision_mb;
0036     }
0037 
0038     /// Project on to the Event
0039     void project(const Event& evt);
0040 
0041 
0042   protected:
0043 
0044     /// Compare with other projections.
0045     virtual CmpState compare(const Projection&) const {
0046       return CmpState::EQ;
0047     }
0048 
0049 
0050   protected:
0051 
0052     /// The min-bias trigger decision
0053     bool _decision_mb;
0054 
0055   };
0056 
0057 
0058 }
0059 
0060 #endif