File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 33
44#include < filesystem>
55#include < queue>
6+ #include " oneapi/tbb/concurrent_unordered_set.h"
67
78#include " EventFilter/Utilities/interface/DAQSourceModels.h"
89#include " DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
@@ -169,8 +170,8 @@ class DataModeFRDPreUnpack : public DataMode {
169170 uint16_t MINTCDSuTCAFEDID_ = FEDNumbering::MINTCDSuTCAFEDID;
170171 uint16_t MAXTCDSuTCAFEDID_ = FEDNumbering::MAXTCDSuTCAFEDID;
171172 bool eventCached_ = false ;
172- std::unordered_set <unsigned short > fedIdSet_;
173- unsigned int expectedFedsInEvent_ = 0 ;
173+ oneapi::tbb::concurrent_unordered_set <unsigned short > fedIdSet_;
174+ std::atomic< unsigned int > expectedFedsInEvent_ = 0 ;
174175 bool verifyFEDs_ = true ;
175176};
176177
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ class FedRawDataInputSource : public edm::RawInputSource {
185185
186186 std::map<unsigned int , unsigned int > sourceEventsReport_;
187187 std::mutex monlock_;
188- expectedFedsInEvent_ = 0 ;
188+ unsigned int expectedFedsInEvent_ = 0 ;
189189};
190190
191191#endif // EventFilter_Utilities_FedRawDataInputSource_h
Original file line number Diff line number Diff line change @@ -658,7 +658,7 @@ edm::Timestamp FedRawDataInputSource::fillFEDRawDataCollection(FEDRawDataCollect
658658 tcds_pointer_ = nullptr ;
659659 tcdsInRange = false ;
660660 uint16_t selectedTCDSFed = 0 ;
661- fedsInEvent = 0 ;
661+ unsigned int fedsInEvent = 0 ;
662662 while (eventSize > 0 ) {
663663 assert (eventSize >= FEDTrailer::length);
664664 eventSize -= FEDTrailer::length;
@@ -706,7 +706,7 @@ edm::Timestamp FedRawDataInputSource::fillFEDRawDataCollection(FEDRawDataCollect
706706
707707 if (fedsInEvent != expectedFedsInEvent_ && expectedFedsInEvent_)
708708 edm::LogWarning (" DataModeFRDStriped:::fillFRDCollection" )
709- << " Event " << events_. at ( 0 ) ->event () << " does not contain same number of FEDs as previous: "
709+ << " Event " << event_ ->event () << " does not contain same number of FEDs as previous: "
710710 << fedsInEvent << " /" << expectedFedsInEvent_;
711711
712712 return tstamp;
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ CMDLINE_STARTFU="cmsRun startFU_daqsource.py daqSourceMode=FRDStriped runNumber=
171171${CMDLINE_STARTFU} > out_2_fu.log 2>&1 || diefu " ${CMDLINE_STARTFU} " $? $OUTDIR out_2_fu.log
172172rm -rf $OUTDIR /{ramdisk,data,* .log}
173173
174- echo " running DAQSource test with FRDPreUnpack "
174+ echo " running DAQSource test with unpacking in reader threads "
175175CMDLINE_STARTBU=" cmsRun startBU.py runNumber=${runnumber} fffBaseDir=${OUTDIR} maxLS=2 fedMeanSize=128 eventsPerFile=20 eventsPerLS=35 frdFileVersion=1"
176176CMDLINE_STARTFU=" cmsRun startFU_daqsource.py daqSourceMode=FRDPreUnpack runNumber=${runnumber} fffBaseDir=${OUTDIR} "
177177${CMDLINE_STARTBU} > out_2_bu.log 2>&1 || diebu " ${CMDLINE_STARTBU} " $? $OUTDIR
You can’t perform that action at this time.
0 commit comments