CMS 3D CMS Logo

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  ~FRDStreamSource() override {};
28 
29 private:
30  // member functions
32  void produce(edm::Event& e) override;
33 
34  bool openFile(const std::string& fileName);
35 
36 
37 private:
38  // member data
39  std::vector<std::string>::const_iterator itFileName_;
40  std::ifstream fin_;
41  std::unique_ptr<FEDRawDataCollection> rawData_;
42  std::vector<char> buffer_;
43  const bool verifyAdler32_;
44  const bool verifyChecksum_;
45  const bool useL1EventID_;
46  unsigned int detectedFRDversion_=0;
47 };
48 
49 #endif // EventFilter_Utilities_FRDStreamSource_h
unsigned int detectedFRDversion_
std::ifstream fin_
std::unique_ptr< FEDRawDataCollection > rawData_
void produce(edm::Event &e) override
std::vector< char > buffer_
~FRDStreamSource() override
const bool useL1EventID_
bool setRunAndEventInfo(edm::EventID &id, edm::TimeValue_t &theTime, edm::EventAuxiliary::ExperimentType &eType) override
bool openFile(const std::string &fileName)
unsigned long long TimeValue_t
Definition: Timestamp.h:28
std::vector< std::string >::const_iterator itFileName_
const bool verifyChecksum_
const bool verifyAdler32_
FRDStreamSource(edm::ParameterSet const &pset, edm::InputSourceDescription const &desc)