Main Page
Namespaces
Classes
Package Documentation
SimTracker
TrackAssociation
plugins
ConfigurableFlatResolutionModel.cc
Go to the documentation of this file.
1
#include "
SimTracker/TrackAssociation/interface/ResolutionModel.h
"
2
3
class
ConfigurableFlatResolutionModel
:
public
ResolutionModel
{
4
public
:
5
ConfigurableFlatResolutionModel
(
const
edm::ParameterSet
& conf ) :
6
ResolutionModel
( conf ),
7
reso_
( conf.getParameter<double>(
"resolutionInNs"
) ) {
8
}
9
10
float
getTimeResolution
(
const
reco::Track
&)
const override
{
return
reso_
; }
11
float
getTimeResolution
(
const
reco::PFCluster
&)
const override
{
return
reso_
; }
12
13
private
:
14
const
float
reso_
;
15
};
16
17
DEFINE_EDM_PLUGIN
(
ResolutionModelFactory
,
18
ConfigurableFlatResolutionModel
,
19
"ConfigurableFlatResolutionModel"
);
reco::PFCluster
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
Definition:
PFCluster.h:47
ConfigurableFlatResolutionModel::getTimeResolution
float getTimeResolution(const reco::Track &) const override
Definition:
ConfigurableFlatResolutionModel.cc:10
edmplugin::PluginFactory
Definition:
PluginFactory.h:32
ConfigurableFlatResolutionModel
Definition:
ConfigurableFlatResolutionModel.cc:3
reco::Track
Definition:
Track.h:28
ConfigurableFlatResolutionModel::reso_
const float reso_
Definition:
ConfigurableFlatResolutionModel.cc:14
ConfigurableFlatResolutionModel::ConfigurableFlatResolutionModel
ConfigurableFlatResolutionModel(const edm::ParameterSet &conf)
Definition:
ConfigurableFlatResolutionModel.cc:5
ConfigurableFlatResolutionModel::getTimeResolution
float getTimeResolution(const reco::PFCluster &) const override
Definition:
ConfigurableFlatResolutionModel.cc:11
edm::ParameterSet
Definition:
ParameterSet.h:36
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:102
ResolutionModel
Definition:
ResolutionModel.h:11
ResolutionModel.h
Generated for CMSSW Reference Manual by
1.8.11