CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 {
38 
39 public:
40 
42  explicit L1GtTextToRaw(const edm::ParameterSet&);
43 
45  virtual ~L1GtTextToRaw();
46 
47 private:
48 
50  virtual void beginJob();
51 
53  virtual void cleanTextFile();
54 
56  virtual int getDataSize();
57 
59  virtual void produce(edm::Event&, const edm::EventSetup&);
60 
62  virtual void endJob();
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
virtual void endJob()
end of job stuff
std::string m_textFileType
file type for the text file
Definition: L1GtTextToRaw.h:67
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
virtual void beginJob()
beginning of job stuff
virtual void cleanTextFile()
clean the text file, if needed
virtual void produce(edm::Event &, const edm::EventSetup &)
loop over events
std::ifstream m_textFile
the file itself
Definition: L1GtTextToRaw.h:79
virtual ~L1GtTextToRaw()
destructor