Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:06

0001 #include "RecoEgamma/EgammaTools/interface/validateEgammaCandidate.h"
0002 
0003 #include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
0004 
0005 void egammaTools::validateGsfElectron(reco::GsfElectron const& electron) {
0006   if (electron.convVtxFitProb() > 1.0f) {
0007     throw cms::Exception("EgammaError")
0008         << "invalid value " << electron.convVtxFitProb() << " for reco::GsfElectron.conversionRejection_.vtxFitProb\n"
0009         << "It should be either beween 0.0f and 1.0f or negative in case no matching conversion was found.\n"
0010         << "Probably you need to update the electron collection with the EG9X105XObjectUpdateModifier plugin:\n"
0011         << "see PhysicsTools/NanoAOD/python/electrons_cff.py for an example.\n";
0012   }
0013 }