4 std::vector<int>
const& numSources,
9 buPaths_.emplace_back(baseDirP / runDirP);
18 std::vector<std::string> additionalFiles;
25 return std::make_pair(
true, additionalFiles);
36 additionalFiles.push_back(newPath.generic_string());
41 additionalFiles.push_back(newPath.generic_string() +
"_" +
std::to_string(
j));
44 return std::make_pair(
true, additionalFiles);
52 gettimeofday(&stv,
nullptr);
89 size_t orbitSize = len -
pos;
95 fedData.
resize(orbitSize, 4);
97 memcpy(fedData.
data(), buff +
pos, orbitSize);
143 <<
" event id:" <<
events_.back()->event() <<
" lumi:" <<
events_.back()->lumi()
144 <<
" run:" <<
events_.back()->run() <<
" of size:" <<
events_.back()->size()
145 <<
" bytes does not fit into the buffer or has corrupted header";
155 bool allBlocksCompleted =
true;
170 allBlocksCompleted =
false;
176 if (allBlocksCompleted) {
179 return !allBlocksCompleted;
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)
std::vector< bool > completedBlocks_
bool nextEventView() override
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > & makeDaqProvenanceHelpers() override
std::vector< std::unique_ptr< FRDEventMsgView > > events_
std::vector< unsigned char * > dataBlockAddrs_
static std::string to_string(const XMLCh *ch)
std::vector< int > buNumSources_
std::vector< unsigned char * > dataBlockMaxAddrs_
int currentLumiSection() const
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp, ProductProvenance const &productProvenance) const
void makeEventWrapper(edm::EventPrincipal &eventPrincipal, edm::EventAuxiliary &aux)
std::string getChecksumError() const override
edm::ProcessHistoryID & processHistoryID()
unsigned long long TimeValue_t
std::pair< bool, std::vector< std::string > > defineAdditionalFiles(std::string const &primaryName, bool fileListMode) const override
void resize(size_t newsize, size_t wordsize=8)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
bool checksumValid() override
int eventRunNumber() const
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > daqProvenanceHelpers_
void readEvent(edm::EventPrincipal &eventPrincipal) override