Skip to content

Commit

Permalink
constexpr static for numParticleGroups
Browse files Browse the repository at this point in the history
  • Loading branch information
wpmccormack committed Sep 1, 2021
1 parent 4b26c31 commit c1a914b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions RecoBTag/FeatureTools/src/deep_helpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ namespace btagbtvdeep {
assert(min <= pad_value && pad_value <= max);

for (unsigned i = 0; i < input.size(); ++i) {
datavec.push_back( std::clamp((catch_infs(input[i], replace_inf_value) - center) * norm_factor, min, max) );
datavec.push_back(std::clamp((catch_infs(input[i], replace_inf_value) - center) * norm_factor, min, max));
}
datavec.insert(datavec.end(), target_length-input.size(), pad_value);
datavec.insert(datavec.end(), target_length - input.size(), pad_value);

return target_length;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ParticleNetSonicJetTagsProducer : public TritonEDProducer<> {
std::unordered_map<std::string, PreprocessParams> prep_info_map_; // preprocessing info for each input group
bool debug_ = false;
bool skippedInference_ = false;
const unsigned numParticleGroups_ = 3;
constexpr static unsigned numParticleGroups_ = 3;
};

ParticleNetSonicJetTagsProducer::ParticleNetSonicJetTagsProducer(const edm::ParameterSet &iConfig)
Expand Down

0 comments on commit c1a914b

Please sign in to comment.