CMS 3D CMS Logo

L1GtPatternGenerator.h
Go to the documentation of this file.
1 #ifndef GlobalTriggerAnalyzer_L1GtPatternGenerator_h
2 #define GlobalTriggerAnalyzer_L1GtPatternGenerator_h
3 
18 // system include files
19 #include <memory>
20 #include <string>
21 #include <fstream>
22 
23 // user include files
26 
29 
32 
33 // class declaration
34 class L1GtPatternWriter;
35 class L1GtPatternMap;
36 
38 {
39 
40 public:
41  explicit L1GtPatternGenerator(const edm::ParameterSet&);
42  ~L1GtPatternGenerator() override;
43 
44 protected:
46 
47 private:
49  void beginJob() override;
50 
52  void analyze(const edm::Event&, const edm::EventSetup&) override;
53 
55  void endJob() override;
56 
58  void packHfRecords(const std::string& resultName, L1GtPatternMap& allPatterns);
59 
61  static uint32_t packRegionalMuons(uint32_t rawValue);
62 
64  static uint32_t packEtMiss(uint32_t rawValue);
65 
66 private:
69 
72 
75 
81 
84 
87  std::ofstream m_fileStream;
88 
90 
93  std::vector<std::string> m_columnNames;
94  std::vector<uint32_t> m_columnLengths;
95  std::vector<int> m_bx;
96  std::vector<uint32_t> m_columnDefaults;
97  bool m_debug;
98 
99  std::unique_ptr<L1GtPatternWriter> m_writer;
100 };
101 
102 #endif /*GlobalTriggerAnalyzer_L1GtPatternGenerator_h*/
void analyze(const edm::Event &, const edm::EventSetup &) override
analyze each event
std::string m_destPath
an algorithm and a condition in that algorithm to test the object maps
static uint32_t packEtMiss(uint32_t rawValue)
edm::InputTag m_dtTag
input tags for regional muon data
std::vector< uint32_t > m_columnDefaults
std::vector< uint32_t > m_columnLengths
edm::InputTag m_gmtTag
input tag for GMT data
void beginJob() override
analyze
void extractGlobalTriggerData(const edm::Event &iEvent, L1GtPatternMap &patterns)
std::unique_ptr< L1GtPatternWriter > m_writer
std::string m_header
formatting instructions
std::string m_fileName
output file name
int iEvent
Definition: GenABIO.cc:224
edm::InputTag m_gctTag
input tag for GCT data
void packHfRecords(const std::string &resultName, L1GtPatternMap &allPatterns)
edm::InputTag m_gtTag
input tag for GT data
L1GtPatternGenerator(const edm::ParameterSet &)
std::vector< int > m_bx
void endJob() override
end of job
static uint32_t packRegionalMuons(uint32_t rawValue)
std::vector< std::string > m_columnNames