CMS 3D CMS Logo

L1GtPatternWriter.h
Go to the documentation of this file.
1 #ifndef GlobalTriggerAnalyzer_L1GtPatternWriter_h
2 #define GlobalTriggerAnalyzer_L1GtPatternWriter_h
3 
18 #include <iosfwd>
19 #include <string>
20 #include <vector>
21 #include <cstdint>
22 
23 class L1GtPatternMap;
24 class L1GtPatternLine;
25 
29 public:
41  L1GtPatternWriter(std::ostream& destination,
42  const std::string& header,
43  const std::string& footer,
44  const std::vector<std::string>& columns,
45  const std::vector<uint32_t>& lengths,
46  const std::vector<uint32_t>& defaultValues,
47  const std::vector<int>& bx,
48  bool debug = false);
49 
51  void writePatterns(const L1GtPatternMap& patterns);
52 
54  virtual void writePatternLine(const L1GtPatternLine& line);
55 
57  void close();
58 
59  virtual ~L1GtPatternWriter();
60 
61 protected:
64  static uint32_t mask(uint32_t length);
65 
66 private:
67  std::ostream& m_dest;
70  std::vector<std::string> m_columns;
71  std::vector<uint32_t> m_lengths;
72  std::vector<uint32_t> m_defaults;
73  std::vector<int> m_bx;
74  bool m_debug;
75 
76  uint32_t m_lineNo;
77 };
78 
79 #endif /*GlobalTriggerAnalyzer_L1GtPatternWriter_h*/
L1GtPatternWriter
Definition: L1GtPatternWriter.h:28
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
L1GtPatternWriter::close
void close()
Definition: L1GtPatternWriter.cc:107
L1GtPatternWriter::m_debug
bool m_debug
Definition: L1GtPatternWriter.h:74
L1GtPatternWriter::m_dest
std::ostream & m_dest
Definition: L1GtPatternWriter.h:67
debug
#define debug
Definition: HDRShower.cc:19
L1GtPatternWriter::m_footer
std::string m_footer
Definition: L1GtPatternWriter.h:69
L1GtPatternLine
Definition: L1GtPatternLine.h:28
L1GtPatternWriter::~L1GtPatternWriter
virtual ~L1GtPatternWriter()
Definition: L1GtPatternWriter.cc:113
L1GtPatternWriter::m_columns
std::vector< std::string > m_columns
Definition: L1GtPatternWriter.h:70
l1GtPatternGenerator_cfi.lengths
lengths
Definition: l1GtPatternGenerator_cfi.py:92
L1GtPatternWriter::writePatternLine
virtual void writePatternLine(const L1GtPatternLine &line)
Definition: L1GtPatternWriter.cc:74
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLTMuonOfflineAnalyzer_cff.destination
destination
Definition: HLTMuonOfflineAnalyzer_cff.py:50
L1GtPatternWriter::L1GtPatternWriter
L1GtPatternWriter(std::ostream &destination, const std::string &header, const std::string &footer, const std::vector< std::string > &columns, const std::vector< uint32_t > &lengths, const std::vector< uint32_t > &defaultValues, const std::vector< int > &bx, bool debug=false)
Definition: L1GtPatternWriter.cc:28
L1GtPatternWriter::m_lengths
std::vector< uint32_t > m_lengths
Definition: L1GtPatternWriter.h:71
L1GtPatternMap
Definition: L1GtPatternMap.h:22
L1GtPatternWriter::m_defaults
std::vector< uint32_t > m_defaults
Definition: L1GtPatternWriter.h:72
mps_check.columns
columns
Definition: mps_check.py:244
L1GtPatternWriter::mask
static uint32_t mask(uint32_t length)
Definition: L1GtPatternWriter.cc:115
L1GtPatternWriter::m_bx
std::vector< int > m_bx
Definition: L1GtPatternWriter.h:73
RecoTauValidation_cfi.header
header
Definition: RecoTauValidation_cfi.py:291
mps_splice.line
line
Definition: mps_splice.py:76
L1GtPatternWriter::m_header
std::string m_header
Definition: L1GtPatternWriter.h:68
L1GtPatternWriter::m_lineNo
uint32_t m_lineNo
Definition: L1GtPatternWriter.h:76
L1GtPatternWriter::writePatterns
void writePatterns(const L1GtPatternMap &patterns)
Definition: L1GtPatternWriter.cc:50