Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef __RecoEgamma_EgammaTools_EgammaCandidateValidation_H__
0002 #define __RecoEgamma_EgammaTools_EgammaCandidateValidation_H__
0003 
0004 #include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h"
0005 
0006 namespace egammaTools {
0007 
0008   void validateGsfElectron(reco::GsfElectron const& electron);
0009 
0010   template <class Candidate>
0011   void validateEgammaCandidate(Candidate const& candidate) {
0012     if constexpr (std::is_same<Candidate, reco::GsfElectron>()) {
0013       validateGsfElectron(candidate);
0014     }
0015   }
0016 
0017 }  // namespace egammaTools
0018 
0019 #endif