CMS 3D CMS Logo

ConfigurableFlatResolutionModel.cc
Go to the documentation of this file.
2 
4 public:
6  : ResolutionModel(conf), reso_(conf.getParameter<double>("resolutionInNs")) {}
7 
8  float getTimeResolution(const reco::Track &) const override { return reso_; }
9  float getTimeResolution(const reco::PFCluster &) const override { return reso_; }
10 
11 private:
12  const float reso_;
13 };
14 
ConfigurableFlatResolutionModel
Definition: ConfigurableFlatResolutionModel.cc:3
ConfigurableFlatResolutionModel::reso_
const float reso_
Definition: ConfigurableFlatResolutionModel.cc:12
reco::Track
Definition: Track.h:27
ConfigurableFlatResolutionModel::ConfigurableFlatResolutionModel
ConfigurableFlatResolutionModel(const edm::ParameterSet &conf)
Definition: ConfigurableFlatResolutionModel.cc:5
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
ConfigurableFlatResolutionModel::getTimeResolution
float getTimeResolution(const reco::Track &) const override
Definition: ConfigurableFlatResolutionModel.cc:8
ConfigurableFlatResolutionModel::getTimeResolution
float getTimeResolution(const reco::PFCluster &) const override
Definition: ConfigurableFlatResolutionModel.cc:9
edm::ParameterSet
Definition: ParameterSet.h:47
edmplugin::PluginFactory
Definition: PluginFactory.h:34
ResolutionModel.h
reco::PFCluster
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
Definition: PFCluster.h:42
ResolutionModel
Definition: ResolutionModel.h:11