Skip to content

Commit

Permalink
Made associated_l1EGs const in CaloJet.h to be consistent with experi…
Browse files Browse the repository at this point in the history
…mentalParams. Also modified L1CaloJetProducer to work with L1EGRateStudies plotting code
  • Loading branch information
Victor committed Nov 16, 2020
1 parent d5b8025 commit 9f24a9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DataFormats/L1TCalorimeterPhase2/interface/CaloJet.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace l1tp2 {
inline float hovere() const { return hovere_; };
inline float isolation() const { return iso_; };
inline float puCorrPt() const { return puCorrPt_; };
std::vector<std::vector<float>>& associated_l1EGs() { return associated_l1EGs_; };
const std::vector<std::vector<float>>& associated_l1EGs() const { return associated_l1EGs_; };

void setExperimentalParams(const std::map<std::string, float>& params) { experimentalParams_ = params; };
void setAssociated_l1EGs(const std::vector<std::vector<float>> l1EGs) { associated_l1EGs_ = l1EGs; };
Expand Down
2 changes: 1 addition & 1 deletion L1Trigger/L1CaloTrigger/plugins/L1CaloJetProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ void L1CaloJetProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetu
float totalPtPUcorr = -1;
l1tp2::CaloJet caloJet(caloJetObj.jetCluster, calibratedPt, hovere, ECalIsolation, totalPtPUcorr);
caloJet.setExperimentalParams(params);
caloJet.associated_l1EGs() = caloJetObj.associated_l1EGs_;
caloJet.setAssociated_l1EGs(caloJetObj.associated_l1EGs_);

// Only store jets passing ET threshold
if (params["jet_pt_calibration"] >= EtMinForCollection)
Expand Down

0 comments on commit 9f24a9c

Please sign in to comment.