reco::tau::RecoTauDiscriminantInvariantWidth::RecoTauDiscriminantInvariantWidth |
( |
const edm::ParameterSet & |
pset | ) |
|
|
explicit |
Definition at line 35 of file RecoTauDiscriminantInvariantWidth.cc.
References defaultTransform_, symbols::dm, stringResolutionProvider_cfi::functions, edm::ParameterSet::getParameter(), hpstanc_transforms::nCharged, hpstanc_transforms::nPiZeros, AlCaHLTBitMon_QueryRunRegistry::string, transforms_, reco::tau::translateDecayMode(), and HistogramManager_cfi::VPSet().
37 typedef std::vector<edm::ParameterSet>
VPSet;
T getParameter(std::string const &) const
std::pair< TauFuncPtr, TauFuncPtr > MeanAndWidthFuncs
RecoTauDiscriminantPlugin(const edm::ParameterSet &pset)
PFTau::hadronicDecayMode translateDecayMode(unsigned int nCharged, unsigned int nPiZero)
std::map< reco::PFTau::hadronicDecayMode, MeanAndWidthFuncs > transforms_
StringObjectFunction< PFTau > TauFunc
MeanAndWidthFuncs defaultTransform_
std::vector< double > reco::tau::RecoTauDiscriminantInvariantWidth::operator() |
( |
const reco::PFTauRef & |
tau | ) |
const |
|
overridevirtual |
Implements reco::tau::RecoTauDiscriminantPlugin.
Definition at line 54 of file RecoTauDiscriminantInvariantWidth.cc.
References defaultTransform_, DEFINE_EDM_PLUGIN, SiStripPI::mean, reco::tau::disc::OpeningDeltaR(), mps_fire::result, SiStripPI::rms, create_public_lumi_plots::transform, and transforms_.
58 std::map<reco::PFTau::hadronicDecayMode, MeanAndWidthFuncs>::const_iterator
65 meanFunc = transform->second.first.get();
66 rmsFunc = transform->second.second.get();
69 double mean = (*meanFunc)(*tau);
70 double rms = (*rmsFunc)(*tau);
72 double result = (rms > 0) ? (weightedDeltaR - mean)/rms : -1.;
74 return std::vector<double>(1,
result);
std::map< reco::PFTau::hadronicDecayMode, MeanAndWidthFuncs > transforms_
StringObjectFunction< PFTau > TauFunc
MeanAndWidthFuncs defaultTransform_
double OpeningDeltaR(Tau tau)