CMS 3D CMS Logo

RecoTauPiZeroQualityPlugins.cc
Go to the documentation of this file.
1 /*
2  * RecoTauPiZeroStringQuality
3  *
4  * Author: Evan K. Friis, UC Davis
5  *
6  * RecoTau quality plugin that returns the value given by the supplied string
7  * expression. A string cut can additionally be applied. The PiZeros
8  * that fail the cut will be associated with a default value.
9  *
10  *
11  */
12 
15 
18 
19 namespace reco {
20  namespace tau {
21 
23  public:
26  double operator()(const RecoTauPiZero&) const override;
27 
28  private:
31  double failResult_;
32  };
33 
36  selector_(pset.getParameter<std::string>("selection")),
37  function_(pset.getParameter<std::string>("selectionPassFunction")),
38  failResult_(pset.getParameter<double>("selectionFailValue")) {}
39 
41  if (selector_(cand)) {
42  return function_(cand);
43  } else {
44  return failResult_;
45  }
46  }
47  } // namespace tau
48 } // namespace reco
49 
53  "RecoTauPiZeroStringQuality");
reco::tau::RecoTauPiZeroStringQuality::failResult_
double failResult_
Definition: RecoTauPiZeroQualityPlugins.cc:31
StringObjectFunction
Definition: StringObjectFunction.h:16
reco::tau::RecoTauPiZeroQualityPlugin
Definition: RecoTauPiZeroPlugins.h:49
metsig::tau
Definition: SignAlgoResolutions.h:49
reco::tau::RecoTauPiZeroStringQuality
Definition: RecoTauPiZeroQualityPlugins.cc:22
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
RecoTauPiZeroPlugins.h
RecoTauPiZero.h
reco::tau::RecoTauPiZeroStringQuality::operator()
double operator()(const RecoTauPiZero &) const override
Return a number indicating the quality of this PiZero.
Definition: RecoTauPiZeroQualityPlugins.cc:40
MakerMacros.h
reco::tau::RecoTauPiZeroStringQuality::function_
const StringObjectFunction< RecoTauPiZero > function_
Definition: RecoTauPiZeroQualityPlugins.cc:30
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
edmplugin::PluginFactory
Definition: PluginFactory.h:34
cand
Definition: decayParser.h:34
reco::tau::RecoTauPiZeroStringQuality::selector_
const StringCutObjectSelector< RecoTauPiZero > selector_
Definition: RecoTauPiZeroQualityPlugins.cc:29
reco::RecoTauPiZero
Definition: RecoTauPiZero.h:7
std
Definition: JetResolutionObject.h:76
StringCutObjectSelector.h
StringCutObjectSelector
Definition: StringCutObjectSelector.h:16
StringObjectFunction.h
reco::tau::RecoTauPiZeroStringQuality::RecoTauPiZeroStringQuality
RecoTauPiZeroStringQuality(const edm::ParameterSet &)
Definition: RecoTauPiZeroQualityPlugins.cc:34
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
reco::tau::RecoTauPiZeroStringQuality::~RecoTauPiZeroStringQuality
~RecoTauPiZeroStringQuality() override
Definition: RecoTauPiZeroQualityPlugins.cc:25