CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtPatternGenerator.h
Go to the documentation of this file.
1 #ifndef GlobalTriggerAnalyzer_L1GtPatternGenerator_h
2 #define GlobalTriggerAnalyzer_L1GtPatternGenerator_h
3 
20 // system include files
21 #include <memory>
22 #include <string>
23 #include <fstream>
24 
25 // user include files
28 
31 
34 
35 // class declaration
36 class L1GtPatternWriter;
37 class L1GtPatternMap;
38 
40 {
41 
42 public:
43  explicit L1GtPatternGenerator(const edm::ParameterSet&);
45 
46 protected:
48 
49 private:
51  virtual void beginJob();
52 
54  virtual void analyze(const edm::Event&, const edm::EventSetup&);
55 
57  virtual void endJob();
58 
60  void packHfRecords(const std::string& resultName, L1GtPatternMap& allPatterns);
61 
63  static uint32_t packRegionalMuons(uint32_t rawValue);
64 
66  static uint32_t packEtMiss(uint32_t rawValue);
67 
68 private:
71 
74 
77 
83 
86 
89  std::ofstream m_fileStream;
90 
92 
95  std::vector<std::string> m_columnNames;
96  std::vector<uint32_t> m_columnLengths;
97  std::vector<int> m_bx;
98  std::vector<uint32_t> m_columnDefaults;
99  bool m_debug;
100 
101  std::auto_ptr<L1GtPatternWriter> m_writer;
102 };
103 
104 #endif /*GlobalTriggerAnalyzer_L1GtPatternGenerator_h*/
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
virtual void endJob()
end of job
std::auto_ptr< L1GtPatternWriter > m_writer
std::vector< uint32_t > m_columnDefaults
std::vector< uint32_t > m_columnLengths
edm::InputTag m_gmtTag
input tag for GMT data
void extractGlobalTriggerData(const edm::Event &iEvent, L1GtPatternMap &patterns)
std::string m_header
formatting instructions
std::string m_fileName
output file name
int iEvent
Definition: GenABIO.cc:243
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
virtual void beginJob()
analyze
L1GtPatternGenerator(const edm::ParameterSet &)
std::vector< int > m_bx
virtual void analyze(const edm::Event &, const edm::EventSetup &)
analyze each event
static uint32_t packRegionalMuons(uint32_t rawValue)
std::vector< std::string > m_columnNames