CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/EventFilter/L1GlobalTriggerRawToDigi/interface/L1GtTextToRaw.h

Go to the documentation of this file.
00001 #ifndef EventFilter_L1GlobalTriggerRawToDigi_L1GtTextToRaw_h
00002 #define EventFilter_L1GlobalTriggerRawToDigi_L1GtTextToRaw_h
00003 
00020 // system include files
00021 #include <memory>
00022 #include <string>
00023 #include <fstream>
00024 
00025 // user include files
00026 #include "FWCore/Framework/interface/Frameworkfwd.h"
00027 #include "FWCore/Framework/interface/EDProducer.h"
00028 
00029 #include "FWCore/Framework/interface/Event.h"
00030 #include "FWCore/Framework/interface/MakerMacros.h"
00031 
00032 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00033 #include "FWCore/Utilities/interface/InputTag.h"
00034 
00035 // forward declarations
00036 
00037 // class declaration
00038 class L1GtTextToRaw : public edm::EDProducer
00039 {
00040 
00041 public:
00042 
00044     explicit L1GtTextToRaw(const edm::ParameterSet&);
00045 
00047     virtual ~L1GtTextToRaw();
00048 
00049 private:
00050 
00052     virtual void beginJob();
00053 
00055     virtual void cleanTextFile();
00056 
00058     virtual int getDataSize();
00059 
00061     virtual void produce(edm::Event&, const edm::EventSetup&);
00062 
00064     virtual void endJob();
00065 
00066 private:
00067 
00069     std::string m_textFileType;
00070 
00072     std::string m_textFileName;
00073 
00075     int m_rawDataSize;
00076 
00078     int m_daqGtFedId;
00079 
00081     std::ifstream m_textFile;
00082 
00083 };
00084 
00085 #endif // EventFilter_L1GlobalTriggerRawToDigi_L1GtTextToRaw_h