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 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
L1GtTextToRaw::m_textFile
std::ifstream m_textFile
the file itself
Definition: L1GtTextToRaw.h:74
EDProducer.h
L1GtTextToRaw::m_daqGtFedId
int m_daqGtFedId
FED ID for the system.
Definition: L1GtTextToRaw.h:71
L1GtTextToRaw::~L1GtTextToRaw
~L1GtTextToRaw() override
destructor
Definition: L1GtTextToRaw.cc:68
L1GtTextToRaw::getDataSize
virtual int getDataSize()
get the size of the record
Definition: L1GtTextToRaw.cc:81
L1GtTextToRaw::beginJob
void beginJob() override
beginning of job stuff
Definition: L1GtTextToRaw.cc:75
MakerMacros.h
L1GtTextToRaw::m_textFileName
std::string m_textFileName
file name for the text file
Definition: L1GtTextToRaw.h:65
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtTextToRaw
Definition: L1GtTextToRaw.h:36
L1GtTextToRaw::m_textFileType
std::string m_textFileType
file type for the text file
Definition: L1GtTextToRaw.h:62
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
edm::EventSetup
Definition: EventSetup.h:57
L1GtTextToRaw::m_rawDataSize
int m_rawDataSize
raw event size (including header and trailer) in units of 8 bits
Definition: L1GtTextToRaw.h:68
InputTag.h
L1GtTextToRaw::produce
void produce(edm::Event &, const edm::EventSetup &) override
loop over events
Definition: L1GtTextToRaw.cc:92
Frameworkfwd.h
L1GtTextToRaw::L1GtTextToRaw
L1GtTextToRaw(const edm::ParameterSet &)
constructor(s)
Definition: L1GtTextToRaw.cc:33
edm::EDProducer
Definition: EDProducer.h:36
L1GtTextToRaw::endJob
void endJob() override
end of job stuff
Definition: L1GtTextToRaw.cc:155
L1GtTextToRaw::cleanTextFile
virtual void cleanTextFile()
clean the text file, if needed
Definition: L1GtTextToRaw.cc:78
ParameterSet.h
edm::Event
Definition: Event.h:73