Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ double PhotonMVABasedHaloTagger::calculateMVA(const reco::Photon* pho,
////set all the above calculated variables as input to the MVA

const auto& vCov = lazyToolnoZS.localCovariances(*(pho->superCluster()->seed()));
double spp = (isnan(vCov[2]) ? 0. : sqrt(vCov[2]));
double spp = (std::isnan(vCov[2]) ? 0. : sqrt(vCov[2]));

///https://cmssdt.cern.ch/lxr/source/RecoEgamma/ElectronIdentification/src/ElectronMVAEstimator.cc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ void Primary4DVertexValidation::analyze(const edm::Event& iEvent, const edm::Eve
unsigned int noPIDtype = 0;
if (probPi[*iTrack] == -1) {
noPIDtype = 1;
} else if (isnan(probPi[*iTrack])) {
} else if (std::isnan(probPi[*iTrack])) {
noPIDtype = 2;
} else if (probPi[*iTrack] == 1 && probK[*iTrack] == 0 && probP[*iTrack] == 0) {
noPIDtype = 3;
Expand Down