RecoEgamma
EgammaTools
src
validateEgammaCandidate.cc
Go to the documentation of this file.
1
#include "
RecoEgamma/EgammaTools/interface/validateEgammaCandidate.h
"
2
3
#include "
DataFormats/EgammaCandidates/interface/GsfElectron.h
"
4
5
void
egammaTools::validateGsfElectron
(
reco::GsfElectron
const
&
electron
) {
6
if
(
electron
.convVtxFitProb() > 1.0f) {
7
throw
cms::Exception
(
"EgammaError"
)
8
<<
"invalid value "
<<
electron
.convVtxFitProb() <<
" for reco::GsfElectron.conversionRejection_.vtxFitProb\n"
9
<<
"It should be either beween 0.0f and 1.0f or negative in case no matching conversion was found.\n"
10
<<
"Probably you need to update the electron collection with the EG9X105XObjectUpdateModifier plugin:\n"
11
<<
"see PhysicsTools/NanoAOD/python/electrons_cff.py for an example.\n"
;
12
}
13
}
validateEgammaCandidate.h
Exception
Definition:
hltDiff.cc:245
reco::GsfElectron
Definition:
GsfElectron.h:36
GsfElectron.h
HPSPFTauProducerPuppi_cfi.electron
electron
Definition:
HPSPFTauProducerPuppi_cfi.py:13
egammaTools::validateGsfElectron
void validateGsfElectron(reco::GsfElectron const &electron)
Definition:
validateEgammaCandidate.cc:5
Generated for CMSSW Reference Manual by
1.8.14