CMS 3D CMS Logo

validateEgammaCandidate.h
Go to the documentation of this file.
1 #ifndef __RecoEgamma_EgammaTools_EgammaCandidateValidation_H__
2 #define __RecoEgamma_EgammaTools_EgammaCandidateValidation_H__
3 
5 
6 namespace egammaTools {
7 
9 
10  template <class Candidate>
11  void validateEgammaCandidate(Candidate const& candidate) {
12  if constexpr (std::is_same<Candidate, reco::GsfElectron>()) {
13  validateGsfElectron(candidate);
14  }
15  }
16 
17 } // namespace egammaTools
18 
19 #endif
configurableAnalysis::Candidate
char Candidate[]
Definition: modules.cc:20
egammaTools::validateEgammaCandidate
void validateEgammaCandidate(Candidate const &candidate)
Definition: validateEgammaCandidate.h:11
reco::GsfElectron
Definition: GsfElectron.h:35
egammaTools
Definition: EcalClusterLocal.h:14
GsfElectronFwd.h
HPSPFTauProducerPuppi_cfi.electron
electron
Definition: HPSPFTauProducerPuppi_cfi.py:13
egammaTools::validateGsfElectron
void validateGsfElectron(reco::GsfElectron const &electron)
Definition: validateEgammaCandidate.cc:5