RecoLocalTracker
ClusterParameterEstimator
interface
PixelFakeCPE.h
Go to the documentation of this file.
1
#ifndef RecoLocalTracker_Fake_PixelCluster_Parameter_Estimator_H
2
#define RecoLocalTracker_Fake_PixelCluster_Parameter_Estimator_H
3
4
#include "
DataFormats/GeometrySurface/interface/LocalError.h
"
5
#include "
DataFormats/GeometryVector/interface/LocalPoint.h
"
6
7
#include "
Geometry/CommonDetUnit/interface/GeomDet.h
"
8
#include "
DataFormats/TrajectoryState/interface/LocalTrajectoryParameters.h
"
9
#include "
TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h
"
10
11
#include "
DataFormats/SiPixelCluster/interface/SiPixelCluster.h
"
12
#include "
DataFormats/TrackerRecHit2D/interface/SiPixelRecHitQuality.h
"
13
#include <tuple>
14
15
#include "
RecoLocalTracker/ClusterParameterEstimator/interface/FakeCPE.h
"
16
#include "
RecoLocalTracker/ClusterParameterEstimator/interface/PixelClusterParameterEstimator.h
"
17
18
class
PixelFakeCPE
final :
public
PixelClusterParameterEstimator
{
19
public
:
20
PixelFakeCPE
() =
default
;
21
~PixelFakeCPE
()
override
=
default
;
22
23
typedef
std::pair<LocalPoint, LocalError>
LocalValues
;
24
typedef
std::vector<LocalValues>
VLocalValues
;
25
26
using
ReturnType
= std::tuple<LocalPoint, LocalError, SiPixelRecHitQuality::QualWordType>;
27
28
// here just to implement it in the clients;
29
// to be properly implemented in the sub-classes in order to make them thread-safe
30
31
ReturnType
getParameters
(
const
SiPixelCluster
&
cl
,
const
GeomDetUnit
&det)
const override
{
32
auto
const
&lv =
fakeCPE
().
map
().
get
(
cl
, det);
33
return
{lv.first, lv.second, 0};
34
}
35
36
ReturnType
getParameters
(
const
SiPixelCluster
&
cl
,
37
const
GeomDetUnit
&det,
38
const
LocalTrajectoryParameters
&)
const override
{
39
return
getParameters
(
cl
, det);
40
}
41
42
void
setFakeCPE
(
FakeCPE
*iFakeCPE) {
m_fakeCPE
= iFakeCPE; }
43
FakeCPE
const
&
fakeCPE
()
const
{
return
*
m_fakeCPE
; }
44
45
private
:
46
FakeCPE
const
*
m_fakeCPE
=
nullptr
;
47
};
48
49
#endif
PixelClusterParameterEstimator
Definition:
PixelClusterParameterEstimator.h:15
TrajectoryStateOnSurface.h
SiPixelRecHitQuality.h
GeomDet
Definition:
GeomDet.h:27
PixelClusterParameterEstimator.h
SiPixelCluster.h
SiPixelCluster
Pixel cluster – collection of neighboring pixels above threshold.
Definition:
SiPixelCluster.h:28
PixelFakeCPE::LocalValues
std::pair< LocalPoint, LocalError > LocalValues
Definition:
PixelFakeCPE.h:23
FakeCPE.h
PixelFakeCPE::~PixelFakeCPE
~PixelFakeCPE() override=default
PixelFakeCPE::PixelFakeCPE
PixelFakeCPE()=default
LocalTrajectoryParameters
Definition:
LocalTrajectoryParameters.h:25
GetRecoTauVFromDQM_MC_cff.cl
cl
Definition:
GetRecoTauVFromDQM_MC_cff.py:38
LocalTrajectoryParameters.h
PixelFakeCPE::getParameters
ReturnType getParameters(const SiPixelCluster &cl, const GeomDetUnit &det, const LocalTrajectoryParameters &) const override
Definition:
PixelFakeCPE.h:36
LocalError.h
PixelFakeCPE::setFakeCPE
void setFakeCPE(FakeCPE *iFakeCPE)
Definition:
PixelFakeCPE.h:42
PixelFakeCPE
Definition:
PixelFakeCPE.h:18
PixelFakeCPE::m_fakeCPE
const FakeCPE * m_fakeCPE
Definition:
PixelFakeCPE.h:46
FakeCPE
Definition:
FakeCPE.h:17
PixelFakeCPE::fakeCPE
const FakeCPE & fakeCPE() const
Definition:
PixelFakeCPE.h:43
FakeCPE::Map::get
LocalValues const & get(const Cluster &cluster, const GeomDetUnit &gd) const
Definition:
FakeCPE.h:35
FakeCPE::map
Map & map()
Definition:
FakeCPE.h:61
GeomDet.h
PixelFakeCPE::getParameters
ReturnType getParameters(const SiPixelCluster &cl, const GeomDetUnit &det) const override
Definition:
PixelFakeCPE.h:31
LocalPoint.h
PixelFakeCPE::VLocalValues
std::vector< LocalValues > VLocalValues
Definition:
PixelFakeCPE.h:24
PixelClusterParameterEstimator::ReturnType
std::tuple< LocalPoint, LocalError, SiPixelRecHitQuality::QualWordType > ReturnType
Definition:
PixelClusterParameterEstimator.h:22
Generated for CMSSW Reference Manual by
1.8.16