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