24 if (
m.globalTrack().isNonnull()) {
25 norm_chi2 =
m.globalTrack()->normalizedChi2();
26 n_Valid_hits =
m.globalTrack()->hitPattern().numberOfValidMuonHits();
27 }
else if (
m.innerTrack().isNonnull()) {
28 norm_chi2 =
m.innerTrack()->normalizedChi2();
29 n_Valid_hits =
m.innerTrack()->hitPattern().numberOfValidMuonHits();
35 this->
setValue(
"Muon_norm_chi2_extended", norm_chi2);
36 this->
setValue(
"Muon_n_Valid_hits_extended", n_Valid_hits);
41 descriptions.
add(
"EvaluateMuonMVAID",
desc);
static edm::ParameterSetDescription getDescription()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void setValue(const std::string var, float val)
#define DEFINE_FWK_MODULE(type)
void fillAdditionalVariables(const pat::Muon &m) override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Analysis-level muon class.
EvaluateMuonMVAID(const edm::ParameterSet &iConfig, const BaseMVACache *cache)