Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
pallabidas committed Jul 24, 2024
1 parent 0f5d08d commit dc5f6b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
7 changes: 1 addition & 6 deletions L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloJetEmulator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ void Phase2L1CaloJetEmulator::produce(edm::Event& iEvent, const edm::EventSetup&
float hfEta[nHfEta][nHfPhi];
float hfPhi[nHfEta][nHfPhi];
for (int iphi = 0; iphi < nHfPhi; iphi++) {
//std::cout<<iphi<<"\t"<<l1t::CaloTools::towerPhi(30, iphi)<<std::endl;
for (int ieta = 0; ieta < nHfEta; ieta++) {
hfTowers[2 * ieta][iphi] = 0;
hfTowers[2 * ieta + 1][iphi] = 0;
Expand All @@ -364,7 +363,6 @@ void Phase2L1CaloJetEmulator::produce(edm::Event& iEvent, const edm::EventSetup&
temp = ieta - nHfEta / 2 + l1t::CaloTools::kHFBegin + 1;
hfEta[ieta][iphi] = l1t::CaloTools::towerEta(temp);
hfPhi[ieta][iphi] = l1t::CaloTools::towerPhi(temp, iphi + 1);
//if(iphi==0) std::cout<<l1t::CaloTools::towerPhi(temp, iphi)<<std::endl;
}
}

Expand All @@ -381,7 +379,6 @@ void Phase2L1CaloJetEmulator::produce(edm::Event& iEvent, const edm::EventSetup&
ieta = nHfEta / 2 + (hit.id().ieta() - (l1t::CaloTools::kHFBegin + 1));
}
int iphi = hit.id().iphi() - 1; // HF phi runs between 1-72
//std::cout<<hit.id().ieta()<<"\t"<<ieta<<"\t"<<iphi<<std::endl;
if (abs(hit.id().ieta()) <= 33 && abs(hit.id().ieta()) >= 29)
et = et - all_nvtx_to_PU_sub_funcs["hf"]["er29to33"].Eval(EstimatedNvtx);
if (abs(hit.id().ieta()) <= 37 && abs(hit.id().ieta()) >= 34)
Expand All @@ -390,9 +387,7 @@ void Phase2L1CaloJetEmulator::produce(edm::Event& iEvent, const edm::EventSetup&
et = et - all_nvtx_to_PU_sub_funcs["hf"]["er38to41"].Eval(EstimatedNvtx);
if (et < 0)
et = 0;
//if (et > 1.)
// hfTowers[ieta][iphi] = et; // suppress <= 1 GeV towers
// split tower energy
// split tower energy
hfTowers[2 * ieta][iphi] = et / 2;
hfTowers[2 * ieta + 1][iphi] = et / 2;
if ((ieta < 2 || ieta >= nHfEta - 2) && iphi % 4 == 2) {
Expand Down
18 changes: 0 additions & 18 deletions L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloPFClusterEmulator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ void Phase2L1CaloPFClusterEmulator::produce(edm::Event& iEvent, const edm::Event
ieta = nHfEta / 2 + (hit.id().ieta() - (l1t::CaloTools::kHFBegin + 1));
}
int iphi = hit.id().iphi() - 1; // HF phi runs between 1-72
//std::cout<<ieta<<"\t"<<l1t::CaloTools::towerEta(hit.id().ieta())<<"\t"<<iphi<<"\t"<<l1t::CaloTools::towerPhi(ieta, iphi)<<std::endl;
// split tower energy
hfTowers[2 * ieta][iphi] = et / 2;
hfTowers[2 * ieta + 1][iphi] = et / 2;
Expand All @@ -242,13 +241,6 @@ void Phase2L1CaloPFClusterEmulator::produce(edm::Event& iEvent, const edm::Event
}
}

// for (int iphi = 0; iphi < nHfPhi; iphi++) {
// for (int ieta = 0; ieta < 2*nHfEta; ieta++) {
// std::cout<<hfTowers[ieta][iphi]<<" ";
// }
// std::cout<<"\n";
// }

for (int ieta = 0; ieta < 2 * nHfEta; ieta++) {
for (int iphi = 0; iphi < nHfPhi / 6; iphi++) {
if (ieta < nHfEta) {
Expand All @@ -269,16 +261,6 @@ void Phase2L1CaloPFClusterEmulator::produce(edm::Event& iEvent, const edm::Event
}
}

// for (int k = 0; k < 12; k++) {
// std::cout<<"------------"<<std::endl;
// for (int iphi = 0; iphi < 12; iphi++) {
// for (int ieta = 0; ieta < 24; ieta++) {
// std::cout<<regionsHF[k][ieta][iphi]<<" ";
// }
// std::cout<<"\n";
// }
// }

float temporaryHF[nHfEta][nHfPhi / 6];
int etaoffsetHF = 0;
int phioffsetHF = -2;
Expand Down

0 comments on commit dc5f6b8

Please sign in to comment.