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*/
L1GtPatternGenerator::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
analyze each event
Definition: L1GtPatternGenerator.cc:216
L1GtPatternGenerator::endJob
void endJob() override
end of job
Definition: L1GtPatternGenerator.cc:303
L1GtPatternGenerator::m_rpcfTag
edm::InputTag m_rpcfTag
Definition: L1GtPatternGenerator.h:78
L1GtPatternGenerator::m_dtTag
edm::InputTag m_dtTag
input tags for regional muon data
Definition: L1GtPatternGenerator.h:75
L1GtPatternGenerator::m_destPath
std::string m_destPath
an algorithm and a condition in that algorithm to test the object maps
Definition: L1GtPatternGenerator.h:81
L1GtPatternGenerator::m_footer
std::string m_footer
Definition: L1GtPatternGenerator.h:90
L1GtPatternWriter
Definition: L1GtPatternWriter.h:28
L1GtPatternGenerator::extractGlobalTriggerData
void extractGlobalTriggerData(const edm::Event &iEvent, L1GtPatternMap &patterns)
Definition: L1GtPatternGenerator.cc:158
L1GtPatternGenerator::packRegionalMuons
static uint32_t packRegionalMuons(uint32_t rawValue)
Definition: L1GtPatternGenerator.cc:151
L1GtPatternGenerator::m_header
std::string m_header
formatting instructions
Definition: L1GtPatternGenerator.h:89
L1GtPatternGenerator::m_columnLengths
std::vector< uint32_t > m_columnLengths
Definition: L1GtPatternGenerator.h:92
L1GtPatternGenerator::m_gmtTag
edm::InputTag m_gmtTag
input tag for GMT data
Definition: L1GtPatternGenerator.h:69
L1GtPatternGenerator::m_fileStream
std::ofstream m_fileStream
Definition: L1GtPatternGenerator.h:85
EDAnalyzer.h
L1GtPatternGenerator::m_debug
bool m_debug
Definition: L1GtPatternGenerator.h:95
L1GtPatternGenerator::m_rpcbTag
edm::InputTag m_rpcbTag
Definition: L1GtPatternGenerator.h:77
edm::EDAnalyzer
Definition: EDAnalyzer.h:29
L1GtPatternGenerator::packEtMiss
static uint32_t packEtMiss(uint32_t rawValue)
L1GtPatternGenerator
Definition: L1GtPatternGenerator.h:37
L1GtPatternGenerator::beginJob
void beginJob() override
analyze
Definition: L1GtPatternGenerator.cc:289
L1GtPatternGenerator::packHfRecords
void packHfRecords(const std::string &resultName, L1GtPatternMap &allPatterns)
Definition: L1GtPatternGenerator.cc:191
L1GtPatternGenerator::m_cscTag
edm::InputTag m_cscTag
Definition: L1GtPatternGenerator.h:76
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtPatternGenerator::m_fileName
std::string m_fileName
output file name
Definition: L1GtPatternGenerator.h:84
L1GtPatternGenerator::~L1GtPatternGenerator
~L1GtPatternGenerator() override
Definition: L1GtPatternGenerator.cc:69
L1GtPatternGenerator::m_writer
std::unique_ptr< L1GtPatternWriter > m_writer
Definition: L1GtPatternGenerator.h:97
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
iEvent
int iEvent
Definition: GenABIO.cc:224
L1GtPatternGenerator::m_gctTag
edm::InputTag m_gctTag
input tag for GCT data
Definition: L1GtPatternGenerator.h:66
edm::EventSetup
Definition: EventSetup.h:57
InputTag.h
L1GtPatternGenerator::m_gtTag
edm::InputTag m_gtTag
input tag for GT data
Definition: L1GtPatternGenerator.h:72
L1GtPatternGenerator::L1GtPatternGenerator
L1GtPatternGenerator(const edm::ParameterSet &)
Definition: L1GtPatternGenerator.cc:37
L1GtPatternMap
Definition: L1GtPatternMap.h:22
Frameworkfwd.h
L1GtPatternGenerator::m_bx
std::vector< int > m_bx
Definition: L1GtPatternGenerator.h:93
EventSetup.h
ParameterSet.h
L1GtPatternGenerator::m_columnDefaults
std::vector< uint32_t > m_columnDefaults
Definition: L1GtPatternGenerator.h:94
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
L1GtPatternGenerator::m_columnNames
std::vector< std::string > m_columnNames
Definition: L1GtPatternGenerator.h:91