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::ifstream fin_;
39  std::unique_ptr<FEDRawDataCollection> rawData_;
40  std::vector<char> buffer_;
41  const bool verifyAdler32_;
42  const bool verifyChecksum_;
43  const bool useL1EventID_;
44  uint16_t detectedFRDversion_ = 0;
45  uint16_t flags_ = 0;
46 };
47 
48 #endif // EventFilter_Utilities_FRDStreamSource_h
LuminosityBlock.h
FRDStreamSource::fin_
std::ifstream fin_
Definition: FRDStreamSource.h:38
FRDStreamSource::FRDStreamSource
FRDStreamSource(edm::ParameterSet const &pset, edm::InputSourceDescription const &desc)
Definition: FRDStreamSource.cc:20
FRDStreamSource::detectedFRDversion_
uint16_t detectedFRDversion_
Definition: FRDStreamSource.h:44
edm::InputSourceDescription
Definition: InputSourceDescription.h:20
FRDStreamSource::useL1EventID_
const bool useL1EventID_
Definition: FRDStreamSource.h:43
FRDStreamSource::produce
void produce(edm::Event &e) override
Definition: FRDStreamSource.cc:174
FRDStreamSource::openFile
bool openFile(const std::string &fileName)
Definition: FRDStreamSource.cc:176
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:30
FRDStreamSource::itFileName_
std::vector< std::string >::const_iterator itFileName_
Definition: FRDStreamSource.h:37
FRDStreamSource::verifyChecksum_
const bool verifyChecksum_
Definition: FRDStreamSource.h:42
FRDStreamSource::~FRDStreamSource
~FRDStreamSource() override
Definition: FRDStreamSource.h:24
Run.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FRDStreamSource
Definition: FRDStreamSource.h:20
FRDStreamSource::flags_
uint16_t flags_
Definition: FRDStreamSource.h:45
edm::ParameterSet
Definition: ParameterSet.h:47
Timestamp.h
Event.h
FRDStreamSource::verifyAdler32_
const bool verifyAdler32_
Definition: FRDStreamSource.h:41
FEDRawDataCollection.h
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::buffer_
std::vector< char > buffer_
Definition: FRDStreamSource.h:40
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:39
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37