CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/DataFormats/L1GlobalTrigger/interface/L1GtTechnicalTrigger.h

Go to the documentation of this file.
00001 #ifndef L1GlobalTrigger_L1GtTechnicalTrigger_h
00002 #define L1GlobalTrigger_L1GtTechnicalTrigger_h
00003 
00020 // system include files
00021 #include <string>
00022 #include <iosfwd>
00023 
00024 // user include files
00025 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutSetupFwd.h"
00026 
00027 // forward declarations
00028 namespace edm
00029 {
00030 template <typename T> class Handle;
00031 }
00032 
00033 // class interface
00034 
00035 class L1GtTechnicalTrigger
00036 {
00037 
00038 public:
00039 
00041     L1GtTechnicalTrigger();
00042 
00043     L1GtTechnicalTrigger(const std::string& ttName,
00044             const unsigned int ttBitNumber, const int ttBxInEvent,
00045             const bool ttResult);
00046 
00048     L1GtTechnicalTrigger(const L1GtTechnicalTrigger&);
00049 
00051     virtual ~L1GtTechnicalTrigger();
00052 
00054     L1GtTechnicalTrigger& operator=(const L1GtTechnicalTrigger&);
00055 
00057     bool operator==(const L1GtTechnicalTrigger&) const;
00058 
00060     bool operator!=(const L1GtTechnicalTrigger&) const;
00061 
00062 public:
00063 
00065 
00066     inline const std::string gtTechnicalTriggerName() const
00067     {
00068         return m_gtTechnicalTriggerName;
00069     }
00070 
00071     inline const unsigned int gtTechnicalTriggerBitNumber() const
00072     {
00073         return m_gtTechnicalTriggerBitNumber;
00074     }
00075 
00077     inline const int bxInEvent() const
00078     {
00079         return m_bxInEvent;
00080     }
00081 
00082     inline const bool gtTechnicalTriggerResult() const
00083     {
00084         return m_gtTechnicalTriggerResult;
00085     }
00086 
00087     void setGtTechnicalTriggerName(const std::string& ttName);
00088     void setGtTechnicalTriggerBitNumber(const unsigned int ttBitNumber);
00089     void setBxInEvent(const int bxInEventValue);
00090     void setGtTechnicalTriggerResult(const bool ttResult);
00091 
00092     // other methods
00093 
00095     void print(std::ostream& myCout) const;
00096 
00098     friend std::ostream& operator<<(std::ostream&, const L1GtTechnicalTrigger&);
00099 
00100 private:
00101 
00103     std::string m_gtTechnicalTriggerName;
00104     unsigned int m_gtTechnicalTriggerBitNumber;
00105     int m_bxInEvent;
00106     bool m_gtTechnicalTriggerResult;
00107 
00108 };
00109 
00110 #endif