CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FRDStreamSource.h
Go to the documentation of this file.
1 #ifndef EventFilter_Utilities_FRDStreamSource_h
2 #define EventFilter_Utilities_FRDStreamSource_h
3 
9 
11 
14 
15 #include <unistd.h>
16 #include <string>
17 #include <vector>
18 #include <fstream>
19 
20 
22 
23 public:
24  // construction/destruction
26  edm::InputSourceDescription const& desc);
27  virtual ~FRDStreamSource() {};
28 
29 private:
30  // member functions
32  virtual void produce(edm::Event& e);
33 
34  void beginRun(edm::Run&) {}
35  void endRun(edm::Run&) {}
38 
39  bool openFile(const std::string& fileName);
40 
41 
42 private:
43  // member data
44  std::vector<std::string>::const_iterator itFileName_;
45  std::ifstream fin_;
46  std::auto_ptr<FEDRawDataCollection> rawData_;
47  std::vector<char> buffer_;
48  const bool verifyAdler32_;
49  const bool verifyChecksum_;
50  const bool useL1EventID_;
51  unsigned int detectedFRDversion_=0;
52 };
53 
54 #endif // EventFilter_Utilities_FRDStreamSource_h
virtual ~FRDStreamSource()
unsigned int detectedFRDversion_
std::ifstream fin_
void beginLuminosityBlock(edm::LuminosityBlock &)
void beginRun(edm::Run &)
std::vector< char > buffer_
const bool useL1EventID_
virtual void produce(edm::Event &e)
std::auto_ptr< FEDRawDataCollection > rawData_
bool openFile(const std::string &fileName)
unsigned long long TimeValue_t
Definition: Timestamp.h:28
std::vector< std::string >::const_iterator itFileName_
void endRun(edm::Run &)
const bool verifyChecksum_
const bool verifyAdler32_
virtual bool setRunAndEventInfo(edm::EventID &id, edm::TimeValue_t &theTime, edm::EventAuxiliary::ExperimentType &eType)
Definition: Run.h:43
void endLuminosityBlock(edm::LuminosityBlock &)
FRDStreamSource(edm::ParameterSet const &pset, edm::InputSourceDescription const &desc)