Skip to content

Commit

Permalink
add comments and const
Browse files Browse the repository at this point in the history
  • Loading branch information
Duchstf committed Jun 21, 2023
1 parent 8debb0e commit 70ee234
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DataFormats/L1TParticleFlow/interface/PFTau.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace l1t {
l1gt::Tau getHWTauGT() const { return l1gt::Tau::unpack(encodedTau_); }

private:
float NNValues_[80];
float NNValues_[80]; // Values for each of the 80 NN inputs
float iso_;
float fullIso_;
int id_;
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/L1TParticleFlow/src/PFTau.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ l1t::PFTau::PFTau(
const PolarLorentzVector& p, float NNValues[80], float iso, float fulliso, int id, int hwpt, int hweta, int hwphi)
: L1Candidate(p, hwpt, hweta, hwphi, /*hwQuality=*/int(0)), iso_(iso), fullIso_(fulliso), id_(id) {
for (int i0 = 0; i0 < 80; i0++)
NNValues_[i0] = NNValues[i0];
NNValues_[i0] = NNValues[i0]; // copy the array of NN inputs
}
6 changes: 3 additions & 3 deletions L1Trigger/Phase2L1ParticleFlow/plugins/L1NNTauProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ class L1NNTauProducer : public edm::stream::EDProducer<edm::GlobalCache<tensorfl
double fTauSize_;
int fMaxTaus_;
int fNParticles_;
bool fHW;
bool fEMSeed;
bool fDebug;
const bool fHW;
const bool fEMSeed;
const bool fDebug;
edm::EDGetTokenT<vector<l1t::PFCandidate>> fL1PFToken_;
};

Expand Down

0 comments on commit 70ee234

Please sign in to comment.