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;
40 uint32_t
nCharged =
dm.getParameter<uint32_t>(
"nCharged");
41 uint32_t
nPiZeros =
dm.getParameter<uint32_t>(
"nPiZeros");
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 53 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_.
57 std::map<reco::PFTau::hadronicDecayMode, MeanAndWidthFuncs>::const_iterator
64 meanFunc = transform->second.first.get();
65 rmsFunc = transform->second.second.get();
68 double mean = (*meanFunc)(*tau);
69 double rms = (*rmsFunc)(*tau);
71 double result = (rms > 0) ? (weightedDeltaR - mean)/rms : -1.;
73 return std::vector<double>(1,
result);
std::map< reco::PFTau::hadronicDecayMode, MeanAndWidthFuncs > transforms_
StringObjectFunction< PFTau > TauFunc
MeanAndWidthFuncs defaultTransform_
double OpeningDeltaR(Tau tau)