SimTracker
TrackAssociation
interface
ResolutionModel.h
Go to the documentation of this file.
1
#ifndef __SimTracker_TrackAssociation_ResolutionModel_h__
2
#define __SimTracker_TrackAssociation_ResolutionModel_h__
3
4
#include "
DataFormats/ParticleFlowReco/interface/PFCluster.h
"
5
#include "
DataFormats/TrackReco/interface/Track.h
"
6
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
7
8
#include <iostream>
9
#include <string>
10
11
class
ResolutionModel
{
12
public
:
13
ResolutionModel
(
const
edm::ParameterSet
&conf) :
_modelName
(conf.getParameter<
std
::
string
>(
"modelName"
)) {}
14
virtual
~ResolutionModel
() {}
15
// get rid of things we should never use...
16
ResolutionModel
(
const
ResolutionModel
&) =
delete
;
17
ResolutionModel
&
operator=
(
const
ResolutionModel
&) =
delete
;
18
19
virtual
float
getTimeResolution
(
const
reco::Track
&)
const
{
return
-1.f; }
20
virtual
float
getTimeResolution
(
const
reco::PFCluster
&)
const
{
return
-1.f; }
21
22
const
std::string
&
name
()
const
{
return
_modelName
; }
23
24
private
:
25
const
std::string
_modelName
;
26
};
27
28
#include "
FWCore/PluginManager/interface/PluginFactory.h
"
29
typedef
edmplugin::PluginFactory
<
ResolutionModel
*(
const
edm::ParameterSet
&)>
ResolutionModelFactory
;
30
31
#endif
PluginFactory.h
ResolutionModel::_modelName
const std::string _modelName
Definition:
ResolutionModel.h:25
ResolutionModel::operator=
ResolutionModel & operator=(const ResolutionModel &)=delete
ResolutionModel::getTimeResolution
virtual float getTimeResolution(const reco::PFCluster &) const
Definition:
ResolutionModel.h:20
Track.h
reco::Track
Definition:
Track.h:27
PFCluster.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ResolutionModel::name
const std::string & name() const
Definition:
ResolutionModel.h:22
edm::ParameterSet
Definition:
ParameterSet.h:47
edmplugin::PluginFactory
Definition:
PluginFactory.h:34
std
Definition:
JetResolutionObject.h:76
reco::PFCluster
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
Definition:
PFCluster.h:42
ParameterSet.h
ResolutionModel
Definition:
ResolutionModel.h:11
ResolutionModel::ResolutionModel
ResolutionModel(const edm::ParameterSet &conf)
Definition:
ResolutionModel.h:13
ResolutionModel::getTimeResolution
virtual float getTimeResolution(const reco::Track &) const
Definition:
ResolutionModel.h:19
ResolutionModel::~ResolutionModel
virtual ~ResolutionModel()
Definition:
ResolutionModel.h:14
Generated for CMSSW Reference Manual by
1.8.16