1 #ifndef EventFilter_Utilities_DAQSourceModelsFRD_h 2 #define EventFilter_Utilities_DAQSourceModelsFRD_h 20 unsigned char*& tcds_pointer);
23 void detectVersion(
unsigned char* fileBuf, uint32_t fileHeaderOffset)
override {
35 std::vector<uint64_t>
const& fileSizes,
36 size_t fileHeaderSize)
override {
50 uint32_t
run()
const override {
return event_->run(); }
68 std::vector<int>
const& numSources,
72 return std::make_pair(
true, std::vector<std::string>());
79 std::unique_ptr<edm::streamer::FRDEventMsgView>
event_;
105 void detectVersion(
unsigned char* fileBuf, uint32_t fileHeaderOffset)
override {
116 throw cms::Exception(
"DataModeFRDStriped::dataBlockSize") <<
" empty event array";
122 std::vector<uint64_t>
const& fileSizes,
123 size_t fileHeaderSize)
override {
131 auto fileAddr =
addr;
132 for (
unsigned int i = 1;
i < fileSizes.size();
i++) {
133 fileAddr += fileSizes[
i - 1];
153 return events_[0]->isRealData();
156 uint32_t
run()
const override {
177 std::vector<int>
const& numSources,
189 std::vector<std::unique_ptr<edm::streamer::FRDEventMsgView>>
events_;
204 #endif // EventFilter_Utilities_DAQSourceModelsFRD_h std::string getChecksumError() const override
std::string getChecksumError() const override
std::pair< bool, std::vector< std::string > > defineAdditionalFiles(std::string const &primaryName, bool fileListMode) const override
bool isRealData() const override
bool checksumValid() override
bool checksumValid() override
void detectVersion(unsigned char *fileBuf, uint32_t fileHeaderOffset) override
uint16_t detectedFRDversion_
constexpr std::array< uint32, FRDHeaderMaxVersion+1 > FRDHeaderVersionSize
edm::Timestamp fillFRDCollection(FEDRawDataCollection &rawData, bool &tcdsInRange, unsigned char *&tcds_pointer)
~DataModeFRDStriped() override
uint64_t dataBlockSize() const override
edm::Timestamp fillFEDRawDataCollection(FEDRawDataCollection &rawData, bool &tcdsInRange, unsigned char *&tcds_pointer)
constexpr size_t FRDHeaderMaxVersion
bool versionCheck() const override
void makeDataBlockView(unsigned char *addr, size_t maxSize, std::vector< uint64_t > const &fileSizes, size_t fileHeaderSize) override
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > daqProvenanceHelpers_
bool nextEventView() override
std::unique_ptr< edm::streamer::FRDEventMsgView > event_
void readEvent(edm::EventPrincipal &eventPrincipal) override
uint32_t headerSize() const override
std::vector< unsigned char * > dataBlockMaxAddrs_
bool dataBlockInitialized_
void setTCDSSearchRange(uint16_t MINTCDSuTCAFEDID, uint16_t MAXTCDSuTCAFEDID) override
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > & makeDaqProvenanceHelpers() override
std::vector< std::filesystem::path > buPaths_
bool dataBlockInitialized() const override
uint16_t MINTCDSuTCAFEDID_
uint16_t detectedFRDversion_
uint32_t run() const override
bool nextEventView() override
void readEvent(edm::EventPrincipal &eventPrincipal) override
bool dataBlockCompleted() const override
std::pair< bool, std::vector< std::string > > defineAdditionalFiles(std::string const &primaryName, bool) const override
void setTCDSSearchRange(uint16_t MINTCDSuTCAFEDID, uint16_t MAXTCDSuTCAFEDID) override
bool fitToBuffer() const override
DataModeFRDStriped(DAQSource *daqSource)
unsigned long long uint64_t
bool fitToBuffer() const override
void makeDirectoryEntries(std::vector< std::string > const &baseDirs, std::vector< int > const &numSources, std::string const &runDir) override
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > daqProvenanceHelpers_
unsigned char * dataBlockAddr_
uint64_t dataBlockSize() const override
std::vector< std::unique_ptr< edm::streamer::FRDEventMsgView > > events_
int dataVersion() const override
DataModeFRD(DAQSource *daqSource)
bool versionCheck() const override
void makeDirectoryEntries(std::vector< std::string > const &baseDirs, std::vector< int > const &numSources, std::string const &runDir) override
bool requireHeader() const override
bool dataBlockCompleted() const override
int dataVersion() const override
uint32_t run() const override
uint16_t MINTCDSuTCAFEDID_
uint16_t MAXTCDSuTCAFEDID_
bool dataBlockInitialized() const override
void detectVersion(unsigned char *fileBuf, uint32_t fileHeaderOffset) override
void setDataBlockInitialized(bool) override
bool isRealData() const override
std::vector< unsigned char * > dataBlockAddrs_
bool requireHeader() const override
uint16_t MAXTCDSuTCAFEDID_
unsigned char * dataBlockAddr_
void setDataBlockInitialized(bool val) override
void makeDataBlockView(unsigned char *addr, size_t maxSize, std::vector< uint64_t > const &fileSizes, size_t fileHeaderSize) override
uint32_t headerSize() const override
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > & makeDaqProvenanceHelpers() override