Skip to content

Commit

Permalink
Merge pull request #40505 from smuzaffar/generators-llvm14-warn2
Browse files Browse the repository at this point in the history
[GENERATORS] [CLANG] Fixes warnings reported by clang 14
  • Loading branch information
cmsbuild authored Feb 7, 2023
2 parents 3c3b7bc + 8b4c11c commit e079023
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ bool PythiaFilterEMJetHeep::filter(edm::StreamID, edm::Event& iEvent, const edm:
float setCone_iso = 0;
float setCone_clust = 0;
float setEM = 0;
float setHAD = 0;
float ptMaxHadron = 0;
float setCharged = 0;
unsigned int Ncharged = 0;
Expand Down Expand Up @@ -231,8 +230,6 @@ bool PythiaFilterEMJetHeep::filter(edm::StreamID, edm::Event& iEvent, const edm:
setCone_clust += pt_;
if (apid == 22 || apid == 11)
setEM += pt_;
if (apid > 100)
setHAD += pt_;
if (apid > 100 && pt_ > ptMaxHadron)
ptMaxHadron = pt_;
if (charged && pt_ > 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@ bool PythiaFilterGammaJetWithOutBg::filter(edm::StreamID, edm::Event& iEvent, co
}

double etPhoton = 0;
double etPhotonCharged = 0;
double etCone = 0;
double etConeCharged = 0;
double ptMaxHadron = 0;

for (HepMC::GenEvent::particle_const_iterator p = myGenEvent->particles_begin(); p != myGenEvent->particles_end();
Expand All @@ -167,14 +164,6 @@ bool PythiaFilterGammaJetWithOutBg::filter(edm::StreamID, edm::Event& iEvent, co
continue;
double pt = (*p)->momentum().perp();

ParticleDataTable const& pdt = iSetup.getData(particleDataTableToken_);

int charge3 = ((pdt.particle((*p)->pdg_id()))->ID().threeCharge());

etCone += pt;
if (charge3 && pt < 2)
etConeCharged += pt;

//select particles matching a crystal array centered on photon
if (inEB) {
if (std::abs(eta - etaPhoton) > deltaEB || std::abs(deltaPhi(phi, phiPhoton)) > deltaEB)
Expand All @@ -184,8 +173,6 @@ bool PythiaFilterGammaJetWithOutBg::filter(edm::StreamID, edm::Event& iEvent, co
continue;

etPhoton += pt;
if (charge3 && pt < 2)
etPhotonCharged += pt;
if (apid > 100 && apid != 310 && pt > ptMaxHadron)
ptMaxHadron = pt;
}
Expand Down

0 comments on commit e079023

Please sign in to comment.