Skip to content

Commit 8ed7282

Browse files
authored
Merge pull request #47657 from smorovic/151x-fix-hilton-tests
[DAQ] fix for raw generator creating incorrect raw files in Hilton (15_1_X)
2 parents 7bfefad + b26c627 commit 8ed7282

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)