Skip to content

Commit

Permalink
Clear memory at end of event in DeepFlavourONNXJetTagsProducer
Browse files Browse the repository at this point in the history
Measurements showed the module was holding lots of member between
events which was cleared at the beginning of the next event.
  • Loading branch information
Dr15Jones committed Dec 13, 2024
1 parent ab76956 commit f50987f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ DeepFlavourONNXJetTagsProducer::DeepFlavourONNXJetTagsProducer(const edm::Parame
}

assert(input_names_.size() == input_sizes_.size());
data_.reserve(input_sizes_.size());
}

DeepFlavourONNXJetTagsProducer::~DeepFlavourONNXJetTagsProducer() {}
Expand Down Expand Up @@ -143,6 +144,7 @@ void DeepFlavourONNXJetTagsProducer::produce(edm::Event& iEvent, const edm::Even
for (std::size_t flav_n = 0; flav_n < flav_names_.size(); ++flav_n) {
iEvent.put(std::move(output_tags[flav_n]), flav_names_[flav_n]);
}
data_.clear();
}

void DeepFlavourONNXJetTagsProducer::make_inputs(unsigned i_jet, const reco::DeepFlavourTagInfo& taginfo) {
Expand Down

0 comments on commit f50987f

Please sign in to comment.