Skip to content

Commit b26c627

Browse files
committed
fixing incorrect condition that caused counter to never be reset at the start of a lumisection.
Impacts fakeBU generator that is used for Hilton tests, and caused prematurely closing files with large testing samples.
1 parent 2bed69b commit b26c627

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

EventFilter/Utilities/plugins/RawEventOutputModuleForBU.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class RawEventOutputModuleForBU : public edm::one::OutputModule<edm::one::WatchR
5454
std::vector<unsigned int> sourceIdList_;
5555
unsigned int totevents_ = 0;
5656
unsigned int index_ = 0;
57-
bool firstLumi_ = true;
5857
};
5958

6059
template <class Consumer>
@@ -184,11 +183,8 @@ void RawEventOutputModuleForBU<Consumer>::beginLuminosityBlock(edm::LuminosityBl
184183
std::string destinationDir = edm::Service<evf::EvFDaqDirector>()->buBaseRunDir();
185184
int run = edm::Service<evf::EvFDaqDirector>()->getRunNumber();
186185
std::cout << " writing to destination dir " << destinationDir << " name: " << filename << std::endl;
186+
totevents_ = 0;
187187
templateConsumer_->initialize(destinationDir, filename, run, ls.id().luminosityBlock());
188-
if (!firstLumi_) {
189-
totevents_ = 0;
190-
firstLumi_ = false;
191-
}
192188
}
193189

194190
template <class Consumer>

0 commit comments

Comments
 (0)