CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1GtTextToRaw.h
Go to the documentation of this file.
1 #ifndef EventFilter_L1GlobalTriggerRawToDigi_L1GtTextToRaw_h
2 #define EventFilter_L1GlobalTriggerRawToDigi_L1GtTextToRaw_h
3 
18 // system include files
19 #include <memory>
20 #include <string>
21 #include <fstream>
22 
23 // user include files
26 
29 
32 
33 // forward declarations
34 
35 // class declaration
37 public:
39  explicit L1GtTextToRaw(const edm::ParameterSet&);
40 
42  ~L1GtTextToRaw() override;
43 
44 private:
46  void beginJob() override;
47 
49  virtual void cleanTextFile();
50 
52  virtual int getDataSize();
53 
55  void produce(edm::Event&, const edm::EventSetup&) override;
56 
58  void endJob() override;
59 
60 private:
63 
66 
69 
72 
74  std::ifstream m_textFile;
75 };
76 
77 #endif // EventFilter_L1GlobalTriggerRawToDigi_L1GtTextToRaw_h
virtual int getDataSize()
get the size of the record
int m_daqGtFedId
FED ID for the system.
Definition: L1GtTextToRaw.h:71
std::string m_textFileName
file name for the text file
Definition: L1GtTextToRaw.h:65
std::string m_textFileType
file type for the text file
Definition: L1GtTextToRaw.h:62
void beginJob() override
beginning of job stuff
L1GtTextToRaw(const edm::ParameterSet &)
constructor(s)
int m_rawDataSize
raw event size (including header and trailer) in units of 8 bits
Definition: L1GtTextToRaw.h:68
void produce(edm::Event &, const edm::EventSetup &) override
loop over events
virtual void cleanTextFile()
clean the text file, if needed
std::ifstream m_textFile
the file itself
Definition: L1GtTextToRaw.h:74
void endJob() override
end of job stuff
~L1GtTextToRaw() override
destructor