CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
21 public:
22  // construction/destruction
24  ~FRDStreamSource() override{};
25 
26 private:
27  // member functions
29  edm::TimeValue_t& theTime,
30  edm::EventAuxiliary::ExperimentType& eType) override;
31  void produce(edm::Event& e) override;
32 
33  bool openFile(const std::string& fileName);
34 
35 private:
36  // member data
37  std::vector<std::string>::const_iterator itFileName_;
38  std::vector<std::string>::const_iterator endFileName_;
39  std::ifstream fin_;
40  std::unique_ptr<FEDRawDataCollection> rawData_;
41  std::vector<char> buffer_;
42  const bool verifyAdler32_;
43  const bool verifyChecksum_;
44  const bool useL1EventID_;
45  uint16_t detectedFRDversion_ = 0;
46  uint16_t flags_ = 0;
47 };
48 
49 #endif // EventFilter_Utilities_FRDStreamSource_h
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_
std::vector< std::string >::const_iterator endFileName_
const bool verifyAdler32_
uint16_t detectedFRDversion_
FRDStreamSource(edm::ParameterSet const &pset, edm::InputSourceDescription const &desc)