test
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 
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&);
43 
44 protected:
46 
47 private:
49  virtual void beginJob();
50 
52  virtual void analyze(const edm::Event&, const edm::EventSetup&);
53 
55  virtual void endJob();
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::auto_ptr<L1GtPatternWriter> m_writer;
100 };
101 
102 #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)
PhiMemoryImage patterns[9]
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:230
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