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 
20 // system include files
21 #include <memory>
22 #include <string>
23 #include <fstream>
24 
25 // user include files
28 
31 
34 
35 // forward declarations
36 
37 // class declaration
39 {
40 
41 public:
42 
44  explicit L1GtTextToRaw(const edm::ParameterSet&);
45 
47  virtual ~L1GtTextToRaw();
48 
49 private:
50 
52  virtual void beginJob();
53 
55  virtual void cleanTextFile();
56 
58  virtual int getDataSize();
59 
61  virtual void produce(edm::Event&, const edm::EventSetup&);
62 
64  virtual void endJob();
65 
66 private:
67 
69  std::string m_textFileType;
70 
72  std::string m_textFileName;
73 
76 
79 
81  std::ifstream m_textFile;
82 
83 };
84 
85 #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:78
std::string m_textFileName
file name for the text file
Definition: L1GtTextToRaw.h:72
virtual void endJob()
end of job stuff
std::string m_textFileType
file type for the text file
Definition: L1GtTextToRaw.h:69
L1GtTextToRaw(const edm::ParameterSet &)
constructor(s)
int m_rawDataSize
raw event size (including header and trailer) in units of 8 bits
Definition: L1GtTextToRaw.h:75
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:81
virtual ~L1GtTextToRaw()
destructor