CMS 3D CMS Logo

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 {
38 
39 public:
40 
42  explicit L1GtTextToRaw(const edm::ParameterSet&);
43 
45  ~L1GtTextToRaw() override;
46 
47 private:
48 
50  void beginJob() override;
51 
53  virtual void cleanTextFile();
54 
56  virtual int getDataSize();
57 
59  void produce(edm::Event&, const edm::EventSetup&) override;
60 
62  void endJob() override;
63 
64 private:
65 
68 
71 
74 
77 
79  std::ifstream m_textFile;
80 
81 };
82 
83 #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:76
std::string m_textFileName
file name for the text file
Definition: L1GtTextToRaw.h:70
std::string m_textFileType
file type for the text file
Definition: L1GtTextToRaw.h:67
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:73
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:79
void endJob() override
end of job stuff
~L1GtTextToRaw() override
destructor