Skip to content

Commit

Permalink
Fall17_V2 soon becoming available after merge of cms-egamma/cmssw#30
Browse files Browse the repository at this point in the history
  • Loading branch information
tomc committed Jan 9, 2019
1 parent b5c29aa commit b8f06f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 2 additions & 5 deletions multilep/src/LeptonAnalyzer.cc
Expand Up @@ -218,11 +218,8 @@ bool LeptonAnalyzer::analyze(const edm::Event& iEvent, const reco::Vertex& prima
_lElectronMvaSummer16GP[_nL] = ele->userFloat("ElectronMVAEstimatorRun2Spring16GeneralPurposeV1Values"); // OLD, do not use it
_lElectronMvaSummer16HZZ[_nL] = ele->userFloat("ElectronMVAEstimatorRun2Spring16HZZV1Values"); // OLD, do not use it
_lElectronMvaFall17v1NoIso[_nL] = ele->userFloat("ElectronMVAEstimatorRun2Fall17NoIsoV1Values"); // OLD, do not use it
_lElectronMvaFall17Iso[_nL] = ele->userFloat("ElectronMVAEstimatorRun2Fall17IsoV1Values"); // REPLACE
_lElectronMvaFall17NoIso[_nL] = ele->userFloat("ElectronMVAEstimatorRun2Fall17NoIsoV1Values"); // REPLACE by lines below
// _lElectronMvaFall17Iso[_nL] = ele->userFloat("ElectronMVAEstimatorRun2Fall17IsoV2Values");
// _lElectronMvaFall17NoIso[_nL] = ele->userFloat("ElectronMVAEstimatorRun2Fall17NoIsoV2Values");
std::cout << "Temporary using Fall17 v1 electron values, the v2 values will become available really soon" << std::endl;
_lElectronMvaFall17Iso[_nL] = ele->userFloat("ElectronMVAEstimatorRun2Fall17IsoV2Values");
_lElectronMvaFall17NoIso[_nL] = ele->userFloat("ElectronMVAEstimatorRun2Fall17NoIsoV2Values");
_lElectronPassEmu[_nL] = passTriggerEmulationDoubleEG(&*ele); // Keep in mind, this trigger emulation is for 2016 DoubleEG, the SingleEG trigger emulation is different
_lElectronPassConvVeto[_nL] = ele->passConversionVeto();
_lElectronChargeConst[_nL] = ele->isGsfCtfScPixChargeConsistent();
Expand Down
4 changes: 1 addition & 3 deletions multilep/src/PhotonAnalyzer.cc
Expand Up @@ -92,9 +92,7 @@ bool PhotonAnalyzer::analyze(const edm::Event& iEvent){
_phCutBasedLoose[_nPh] = photon->photonID("cutBasedPhotonID-Fall17-94X-V2-loose");
_phCutBasedMedium[_nPh] = photon->photonID("cutBasedPhotonID-Fall17-94X-V2-medium");
_phCutBasedTight[_nPh] = photon->photonID("cutBasedPhotonID-Fall17-94X-V2-tight");
_phMva[_nPh] = photon->userFloat("PhotonMVAEstimatorRunIIFall17v1p1Values");
std::cout << "Temporary using Fall17 v1p1 photon values, the v2 values will become available really soon" << std::endl;
// _phMva[_nPh] = photon->userFloat("PhotonMVAEstimatorRunIIFall17v2Values");
_phMva[_nPh] = photon->userFloat("PhotonMVAEstimatorRunIIFall17v2Values");

_phRandomConeChargedIsolation[_nPh] = randomConeIsoUnCorr < 0 ? -1 : std::max(0., randomConeIsoUnCorr - rhoCorrCharged); // keep -1 when randomConeIso algorithm failed
_phChargedIsolation[_nPh] = std::max(0., photon->userFloat("phoChargedIsolation") - rhoCorrCharged);
Expand Down

0 comments on commit b8f06f2

Please sign in to comment.