Skip to content

Commit

Permalink
Merge pull request cms-sw#37678 from Sam-Harper/FRDStreamFix_1230pre6
Browse files Browse the repository at this point in the history
FRDStreamSource Dangling Reference Fix : 12_3_X
  • Loading branch information
cmsbuild authored Apr 27, 2022
2 parents 6862fc3 + 67781c4 commit 23343c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EventFilter/Utilities/plugins/FRDStreamSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ FRDStreamSource::FRDStreamSource(edm::ParameterSet const& pset, edm::InputSource
verifyAdler32_(pset.getUntrackedParameter<bool>("verifyAdler32", true)),
verifyChecksum_(pset.getUntrackedParameter<bool>("verifyChecksum", true)),
useL1EventID_(pset.getUntrackedParameter<bool>("useL1EventID", false)) {
itFileName_ = fileNames(0).begin();
endFileName_ = fileNames(0).end();
fileNames_ = fileNames(0), itFileName_ = fileNames_.begin();
endFileName_ = fileNames_.end();
openFile(*itFileName_);
produces<FEDRawDataCollection>();
}
Expand Down
1 change: 1 addition & 0 deletions EventFilter/Utilities/plugins/FRDStreamSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class FRDStreamSource : public edm::ProducerSourceFromFiles {

private:
// member data
std::vector<std::string> fileNames_;
std::vector<std::string>::const_iterator itFileName_;
std::vector<std::string>::const_iterator endFileName_;
std::ifstream fin_;
Expand Down

0 comments on commit 23343c9

Please sign in to comment.