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 public:
39  explicit L1GtPatternGenerator(const edm::ParameterSet&);
40  ~L1GtPatternGenerator() override;
41 
42 protected:
44 
45 private:
47  void beginJob() override;
48 
50  void analyze(const edm::Event&, const edm::EventSetup&) override;
51 
53  void endJob() override;
54 
56  void packHfRecords(const std::string& resultName, L1GtPatternMap& allPatterns);
57 
59  static uint32_t packRegionalMuons(uint32_t rawValue);
60 
62  static uint32_t packEtMiss(uint32_t rawValue);
63 
64 private:
67 
70 
73 
79 
82 
85  std::ofstream m_fileStream;
86 
88 
91  std::vector<std::string> m_columnNames;
92  std::vector<uint32_t> m_columnLengths;
93  std::vector<int> m_bx;
94  std::vector<uint32_t> m_columnDefaults;
95  bool m_debug;
96 
97  std::unique_ptr<L1GtPatternWriter> m_writer;
98 };
99 
100 #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