CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/L1Trigger/GlobalTriggerAnalyzer/interface/L1GtPatternLine.h

Go to the documentation of this file.
00001 #ifndef GlobalTriggerAnalyzer_L1GtPatternLine_h
00002 #define GlobalTriggerAnalyzer_L1GtPatternLine_h
00003 
00021 #include <string>
00022 #include <map>
00023 #include <boost/cstdint.hpp>
00024 
00030 class L1GtPatternLine
00031 {
00032 public:
00038   void push(const std::string& prefix, boost::uint32_t value);
00039 
00044   void set(const std::string& name, boost::uint32_t value);
00045 
00047   void print(std::ostream& out) const;
00048 
00053   bool has(const std::string& colname) const;
00054 
00056   std::string nextName(const std::string& prefix); 
00057 
00059   std::string name(const std::string& prefix, unsigned int i) const;
00060 
00062   boost::uint32_t get(const std::string& name) const;
00063 
00064 private:
00065   typedef std::map<std::string, boost::uint32_t> ColumnMap;
00066   ColumnMap m_columns;
00067 };
00068 
00069 
00070 #endif /*GlobalTriggerAnalyzer_L1GtPatternLine_h*/