CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/CondFormats/L1TObjects/interface/L1GtCondition.h

Go to the documentation of this file.
00001 #ifndef CondFormats_L1TObjects_L1GtCondition_h
00002 #define CondFormats_L1TObjects_L1GtCondition_h
00003 
00020 // system include files
00021 #include <string>
00022 #include <vector>
00023 
00024 #include <iostream>
00025 
00026 // user include files
00027 #include "CondFormats/L1TObjects/interface/L1GtFwd.h"
00028 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutSetupFwd.h"
00029 
00030 // forward declarations
00031 
00032 // class declaration
00033 class L1GtCondition
00034 {
00035 
00036 public:
00037 
00040     L1GtCondition();
00041 
00043     L1GtCondition(const std::string& );
00044 
00046     L1GtCondition(const std::string&,
00047                   const L1GtConditionCategory&, const L1GtConditionType& );
00048 
00050     virtual ~L1GtCondition();
00051 
00052 public:
00053 
00055     inline const std::string& condName() const
00056     {
00057         return m_condName;
00058     }
00059 
00060     inline void setCondName(const std::string& cName)
00061     {
00062         m_condName = cName;
00063     }
00064 
00066     inline const L1GtConditionCategory& condCategory() const
00067     {
00068         return m_condCategory;
00069     }
00070 
00071     inline void setCondCategory(const L1GtConditionCategory& cCategory)
00072     {
00073         m_condCategory = cCategory;
00074     }
00075 
00077     inline const L1GtConditionType& condType() const
00078     {
00079         return m_condType;
00080     }
00081 
00082     inline void setCondType(const L1GtConditionType& cType)
00083     {
00084         m_condType = cType;
00085     }
00086 
00088     inline const std::vector<L1GtObject>& objectType() const
00089     {
00090         return m_objectType;
00091     }
00092 
00093     inline void setObjectType(const std::vector<L1GtObject>& objType)
00094     {
00095         m_objectType = objType;
00096     }
00097 
00099     inline const bool condGEq() const
00100     {
00101         return m_condGEq;
00102     }
00103 
00104     inline void setCondGEq(const bool& cGEq)
00105     {
00106         m_condGEq = cGEq;
00107     }
00108 
00110     inline const int& condChipNr() const
00111     {
00112         return m_condChipNr;
00113     }
00114 
00115     inline void setCondChipNr(const int& cChipNr)
00116     {
00117         m_condChipNr = cChipNr;
00118     }
00119 
00120 public:
00121 
00123     const int nrObjects() const;
00124 
00127     const bool wsc() const;
00128 
00131     const bool corr() const;
00132 
00134     virtual void print(std::ostream& myCout) const;
00135 
00137     friend std::ostream& operator<<(std::ostream&, const L1GtCondition&);
00138 
00139 protected:
00140 
00142     std::string m_condName;
00143 
00145     L1GtConditionCategory m_condCategory;
00146 
00148     L1GtConditionType m_condType;
00149 
00151     std::vector<L1GtObject> m_objectType;
00152 
00154     bool m_condGEq;
00155 
00157     int m_condChipNr;
00158 
00159 
00160 };
00161 
00162 #endif /*CondFormats_L1TObjects_L1GtCondition_h*/