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(); }
70 return std::make_pair(
true, std::vector<std::string>());
77 std::unique_ptr<FRDEventMsgView>
event_;
103 void detectVersion(
unsigned char* fileBuf, uint32_t fileHeaderOffset)
override {
114 throw cms::Exception(
"DataModeFRDStriped::dataBlockSize") <<
" empty event array";
120 std::vector<uint64_t>
const& fileSizes,
121 size_t fileHeaderSize)
override {
129 auto fileAddr =
addr;
130 for (
unsigned int i = 1;
i < fileSizes.size();
i++) {
131 fileAddr += fileSizes[
i - 1];
151 return events_[0]->isRealData();
154 uint32_t
run()
const override {
185 std::vector<std::unique_ptr<FRDEventMsgView>>
events_;
200 #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
constexpr size_t FRDHeaderMaxVersion
uint16_t detectedFRDversion_
edm::Timestamp fillFRDCollection(FEDRawDataCollection &rawData, bool &tcdsInRange, unsigned char *&tcds_pointer)
~DataModeFRDStriped() override
void makeDirectoryEntries(std::vector< std::string > const &baseDirs, std::string const &runDir) override
uint64_t dataBlockSize() const override
edm::Timestamp fillFEDRawDataCollection(FEDRawDataCollection &rawData, bool &tcdsInRange, unsigned char *&tcds_pointer)
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::unique_ptr< FRDEventMsgView > > events_
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > daqProvenanceHelpers_
bool nextEventView() override
void readEvent(edm::EventPrincipal &eventPrincipal) override
std::unique_ptr< FRDEventMsgView > event_
uint32_t headerSize() const override
std::vector< unsigned char * > dataBlockMaxAddrs_
bool dataBlockInitialized_
void makeDirectoryEntries(std::vector< std::string > const &baseDirs, std::string const &runDir) override
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
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > daqProvenanceHelpers_
unsigned char * dataBlockAddr_
uint64_t dataBlockSize() const override
int dataVersion() const override
DataModeFRD(DAQSource *daqSource)
bool versionCheck() const 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
constexpr std::array< uint32, FRDHeaderMaxVersion+1 > FRDHeaderVersionSize
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