1 #ifndef EventFilter_Utilities_DAQSourceModelsScoutingRun3_h 2 #define EventFilter_Utilities_DAQSourceModelsScoutingRun3_h 13 #include <sys/types.h> 31 void detectVersion(
unsigned char* fileBuf, uint32_t fileHeaderOffset)
override {
44 std::vector<uint64_t>
const& fileSizes,
45 size_t fileHeaderSize)
override {
52 for (
unsigned int i = 0;
i < fileSizes.size();
i++) {
62 for (
unsigned int i = 1;
i < fileSizes.size();
i++) {
63 fileAddr += fileSizes[
i - 1];
83 return events_[0]->isRealData();
86 uint32_t
run()
const override {
104 std::vector<int>
const& numSources,
116 std::vector<std::unique_ptr<FRDEventMsgView>>
events_;
135 #endif // EventFilter_Utilities_DAQSourceModelsScoutingRun3_h void makeDirectoryEntries(std::vector< std::string > const &baseDirs, std::vector< int > const &numSources, std::string const &runDir) override
std::vector< std::filesystem::path > buPaths_
std::vector< std::pair< int, int > > sourceValidOrbitPair_
void fillSDSRawDataCollection(SDSRawDataCollection &rawData, char *buff, size_t len)
bool requireHeader() const override
constexpr size_t FRDHeaderMaxVersion
uint32_t headerSize() const override
std::vector< bool > completedBlocks_
bool nextEventView() override
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > & makeDaqProvenanceHelpers() override
bool isRealData() const override
std::vector< std::unique_ptr< FRDEventMsgView > > events_
std::vector< unsigned char * > dataBlockAddrs_
bool dataBlockInitialized() const override
std::vector< int > buNumSources_
std::vector< unsigned char * > dataBlockMaxAddrs_
void makeDataBlockView(unsigned char *addr, size_t maxSize, std::vector< uint64_t > const &fileSizes, size_t fileHeaderSize) override
bool versionCheck() const override
DataModeScoutingRun3(DAQSource *daqSource)
int dataVersion() const override
bool dataBlockCompleted() const override
uint64_t dataBlockSize() const override
std::string getChecksumError() const override
bool fitToBuffer() const override
bool dataBlockInitialized_
std::pair< bool, std::vector< std::string > > defineAdditionalFiles(std::string const &primaryName, bool fileListMode) const override
unsigned long long uint64_t
void detectVersion(unsigned char *fileBuf, uint32_t fileHeaderOffset) override
void setTCDSSearchRange(uint16_t MINTCDSuTCAFEDID, uint16_t MAXTCDSuTCAFEDID) override
void setDataBlockInitialized(bool val) override
~DataModeScoutingRun3() override
bool checksumValid() override
constexpr std::array< uint32, FRDHeaderMaxVersion+1 > FRDHeaderVersionSize
unsigned char * dataBlockAddr_
uint32_t run() const override
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > daqProvenanceHelpers_
void readEvent(edm::EventPrincipal &eventPrincipal) override
uint16_t detectedFRDversion_