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 
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
LuminosityBlock.h
FRDStreamSource::fin_
std::ifstream fin_
Definition: FRDStreamSource.h:39
FRDStreamSource::FRDStreamSource
FRDStreamSource(edm::ParameterSet const &pset, edm::InputSourceDescription const &desc)
Definition: FRDStreamSource.cc:20
FRDStreamSource::detectedFRDversion_
uint16_t detectedFRDversion_
Definition: FRDStreamSource.h:45
edm::InputSourceDescription
Definition: InputSourceDescription.h:21
FRDStreamSource::useL1EventID_
const bool useL1EventID_
Definition: FRDStreamSource.h:44
FRDStreamSource::produce
void produce(edm::Event &e) override
Definition: FRDStreamSource.cc:175
FRDStreamSource::openFile
bool openFile(const std::string &fileName)
Definition: FRDStreamSource.cc:177
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
FRDStreamSource::setRunAndEventInfo
bool setRunAndEventInfo(edm::EventID &id, edm::TimeValue_t &theTime, edm::EventAuxiliary::ExperimentType &eType) override
Definition: FRDStreamSource.cc:31
FRDStreamSource::itFileName_
std::vector< std::string >::const_iterator itFileName_
Definition: FRDStreamSource.h:37
FRDStreamSource::verifyChecksum_
const bool verifyChecksum_
Definition: FRDStreamSource.h:43
FRDStreamSource::~FRDStreamSource
~FRDStreamSource() override
Definition: FRDStreamSource.h:24
Run.h
FRDStreamSource
Definition: FRDStreamSource.h:20
FRDStreamSource::flags_
uint16_t flags_
Definition: FRDStreamSource.h:46
edm::ParameterSet
Definition: ParameterSet.h:47
Timestamp.h
Event.h
FRDStreamSource::verifyAdler32_
const bool verifyAdler32_
Definition: FRDStreamSource.h:42
FEDRawDataCollection.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
InputSourceMacros.h
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
Frameworkfwd.h
edm::ProducerSourceFromFiles
Definition: ProducerSourceFromFiles.h:17
edm::EventAuxiliary::ExperimentType
ExperimentType
Definition: EventAuxiliary.h:18
FRDStreamSource::endFileName_
std::vector< std::string >::const_iterator endFileName_
Definition: FRDStreamSource.h:38
FRDStreamSource::buffer_
std::vector< char > buffer_
Definition: FRDStreamSource.h:41
edm::EventID
Definition: EventID.h:31
edm::Event
Definition: Event.h:73
ProducerSourceFromFiles.h
edm::TimeValue_t
unsigned long long TimeValue_t
Definition: Timestamp.h:28
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
FRDStreamSource::rawData_
std::unique_ptr< FEDRawDataCollection > rawData_
Definition: FRDStreamSource.h:40
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37