Skip to content

Commit

Permalink
code-format
Browse files Browse the repository at this point in the history
  • Loading branch information
smorovic committed Sep 9, 2021
1 parent 969d782 commit 6ee7254
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions EventFilter/Utilities/plugins/DaqFakeReader.cc
Expand Up @@ -48,7 +48,8 @@ DaqFakeReader::DaqFakeReader(const edm::ParameterSet& pset)
<< " TCDS FED ID lower than " << FEDNumbering::MINTCDSuTCAFEDID;
if (fillRandom_) {
//intialize random seed
auto time_count = static_cast<long unsigned int>(std::chrono::high_resolution_clock::now().time_since_epoch().count());
auto time_count =
static_cast<long unsigned int>(std::chrono::high_resolution_clock::now().time_since_epoch().count());
srand(time_count & 0xffffffff);
}
produces<FEDRawDataCollection>();
Expand Down Expand Up @@ -113,7 +114,7 @@ void DaqFakeReader::fillFEDs(
if (fillRandom_) {
//fill FED with random values
size_t size_ui = size - size % sizeof(unsigned int);
for (size_t i=0; i < size_ui; i += sizeof(unsigned int)) {
for (size_t i = 0; i < size_ui; i += sizeof(unsigned int)) {
*((unsigned int*)(feddata.data() + i)) = (unsigned int)rand();
}
//remainder
Expand Down
4 changes: 2 additions & 2 deletions EventFilter/Utilities/src/EvFDaqDirector.cc
Expand Up @@ -950,7 +950,8 @@ namespace evf {
bool found = (stat(fuEoLS.c_str(), &buf) == 0);
if (!found) {
if (doCreateEoLS) {
int eol_fd = open(fuEoLS.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
int eol_fd =
open(fuEoLS.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
close(eol_fd);
}
if (doCreateBoLS)
Expand Down Expand Up @@ -1778,7 +1779,6 @@ namespace evf {
if (fileBrokerUseLocalLock_)
unlockFULocal();
return noFile;

}

//handle creation of BoLS files if lumisection has changed
Expand Down
4 changes: 2 additions & 2 deletions EventFilter/Utilities/src/FedRawDataInputSource.cc
Expand Up @@ -686,7 +686,7 @@ void FedRawDataInputSource::read(edm::EventPrincipal& eventPrincipal) {
return;
}

edm::Timestamp FedRawDataInputSource::fillFEDRawDataCollection(FEDRawDataCollection& rawData, bool &tcdsInRange) {
edm::Timestamp FedRawDataInputSource::fillFEDRawDataCollection(FEDRawDataCollection& rawData, bool& tcdsInRange) {
edm::TimeValue_t time;
timeval stv;
gettimeofday(&stv, nullptr);
Expand Down Expand Up @@ -716,7 +716,7 @@ edm::Timestamp FedRawDataInputSource::fillFEDRawDataCollection(FEDRawDataCollect
selectedTCDSFed = fedId;
tcds_pointer_ = event + eventSize;
if (fedId >= FEDNumbering::MINTCDSuTCAFEDID && fedId <= FEDNumbering::MAXTCDSuTCAFEDID) {
tcdsInRange = true;
tcdsInRange = true;
}
} else
throw cms::Exception("FedRawDataInputSource::fillFEDRawDataCollection")
Expand Down

0 comments on commit 6ee7254

Please sign in to comment.