Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoTauTag
RecoTau
plugins
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
13
#include "
RecoTauTag/RecoTau/interface/RecoTauPiZeroPlugins.h
"
14
#include "
DataFormats/TauReco/interface/RecoTauPiZero.h
"
15
16
#include "
CommonTools/Utils/interface/StringCutObjectSelector.h
"
17
#include "
CommonTools/Utils/interface/StringObjectFunction.h
"
18
19
namespace
reco
{
namespace
tau
{
20
21
class
RecoTauPiZeroStringQuality
:
public
RecoTauPiZeroQualityPlugin
{
22
public
:
23
explicit
RecoTauPiZeroStringQuality
(
const
edm::ParameterSet
&);
24
~RecoTauPiZeroStringQuality
() {}
25
double
operator()
(
const
RecoTauPiZero
&)
const override
;
26
private
:
27
const
StringCutObjectSelector<RecoTauPiZero>
selector_
;
28
const
StringObjectFunction<RecoTauPiZero>
function_
;
29
double
failResult_
;
30
};
31
32
RecoTauPiZeroStringQuality::RecoTauPiZeroStringQuality
(
33
const
edm::ParameterSet
& pset):
RecoTauPiZeroQualityPlugin
(pset),
34
selector_(pset.getParameter<std::
string
>(
"selection"
)),
35
function_(pset.getParameter<std::
string
>(
"selectionPassFunction"
)),
36
failResult_(pset.getParameter<double>(
"selectionFailValue"
)) {}
37
38
double
RecoTauPiZeroStringQuality::operator()
(
const
RecoTauPiZero
& cand)
const
{
39
if
(
selector_
(cand)) {
40
return
function_
(cand);
41
}
42
else
{
43
return
failResult_
;
44
}
45
}
46
}}
// end namespace reco::tau
47
48
#include "
FWCore/Framework/interface/MakerMacros.h
"
49
DEFINE_EDM_PLUGIN
(
RecoTauPiZeroQualityPluginFactory
,
50
reco::tau::RecoTauPiZeroStringQuality
,
51
"RecoTauPiZeroStringQuality"
);
StringObjectFunction
Definition:
StringObjectFunction.h:16
StringCutObjectSelector
Definition:
StringCutObjectSelector.h:16
MakerMacros.h
reco::tau::RecoTauPiZeroStringQuality::function_
const StringObjectFunction< RecoTauPiZero > function_
Definition:
RecoTauPiZeroQualityPlugins.cc:28
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:106
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
StringObjectFunction.h
reco::tau::RecoTauPiZeroStringQuality::RecoTauPiZeroStringQuality
RecoTauPiZeroStringQuality(const edm::ParameterSet &)
Definition:
RecoTauPiZeroQualityPlugins.cc:32
reco::tau::RecoTauPiZeroStringQuality::operator()
double operator()(const RecoTauPiZero &) const override
Return a number indicating the quality of this PiZero.
Definition:
RecoTauPiZeroQualityPlugins.cc:38
StringCutObjectSelector.h
edmplugin::PluginFactory
Definition:
PluginFactory.h:31
reco::tau::RecoTauPiZeroQualityPlugin
Definition:
RecoTauPiZeroPlugins.h:49
reco::tau::RecoTauPiZeroStringQuality::selector_
const StringCutObjectSelector< RecoTauPiZero > selector_
Definition:
RecoTauPiZeroQualityPlugins.cc:27
metsig::tau
Definition:
SignAlgoResolutions.h:40
RecoTauPiZero.h
RecoTauPiZeroPlugins.h
reco::tau::RecoTauPiZeroStringQuality::failResult_
double failResult_
Definition:
RecoTauPiZeroQualityPlugins.cc:29
reco::RecoTauPiZero
Definition:
RecoTauPiZero.h:7
reco::tau::RecoTauPiZeroStringQuality
Definition:
RecoTauPiZeroQualityPlugins.cc:21
edm::ParameterSet
Definition:
ParameterSet.h:36
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:101
reco::tau::RecoTauPiZeroStringQuality::~RecoTauPiZeroStringQuality
~RecoTauPiZeroStringQuality()
Definition:
RecoTauPiZeroQualityPlugins.cc:24
Generated for CMSSW Reference Manual by
1.8.5