Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
TrackerRecHit2D
interface
TkCloner.h
Go to the documentation of this file.
1
#ifndef TKClonerRecHit_H
2
#define TKClonerRecHit_H
3
4
#include "
DataFormats/TrackingRecHit/interface/TrackingRecHit.h
"
5
#include "
FWCore/Utilities/interface/thread_safety_macros.h
"
6
7
class
SiPixelRecHit
;
8
class
SiStripRecHit2D
;
9
class
SiStripRecHit1D
;
10
class
SiStripMatchedRecHit2D
;
11
class
ProjectedSiStripRecHit2D
;
12
13
class
TkCloner
{
14
public
:
15
TrackingRecHit
*
operator
()
CMS_THREAD_SAFE
(
TrackingRecHit
const
&
hit
,
TrajectoryStateOnSurface
const
& tsos)
const
{
16
return
hit.
clone
(*
this
, tsos);
17
}
18
19
#ifdef NO_DICT
20
TrackingRecHit::ConstRecHitPointer
makeShared
(
TrackingRecHit::ConstRecHitPointer
const
& hit,
TrajectoryStateOnSurface
const
& tsos)
const
{
21
return
hit->
canImproveWithTrack
() ? hit->cloneSH(*
this
, tsos) : hit;
22
// return hit->cloneSH(*this, tsos);
23
}
24
#endif
25
26
virtual
SiPixelRecHit
*
operator()
(
SiPixelRecHit
const
& hit,
TrajectoryStateOnSurface
const
& tsos)
const
=0;
27
virtual
SiStripRecHit2D
*
operator()
(
SiStripRecHit2D
const
& hit,
TrajectoryStateOnSurface
const
& tsos)
const
=0;
28
virtual
SiStripRecHit1D
*
operator()
(
SiStripRecHit1D
const
& hit,
TrajectoryStateOnSurface
const
& tsos)
const
=0;
29
virtual
SiStripMatchedRecHit2D
*
operator()
(
SiStripMatchedRecHit2D
const
& hit,
TrajectoryStateOnSurface
const
& tsos)
const
=0;
30
virtual
ProjectedSiStripRecHit2D
*
operator()
(
ProjectedSiStripRecHit2D
const
& hit,
TrajectoryStateOnSurface
const
& tsos)
const
=0;
31
32
#ifdef NO_DICT
33
virtual
TrackingRecHit::ConstRecHitPointer
makeShared
(
SiPixelRecHit
const
& hit,
TrajectoryStateOnSurface
const
& tsos)
const
=0;
34
virtual
TrackingRecHit::ConstRecHitPointer
makeShared
(
SiStripRecHit2D
const
& hit,
TrajectoryStateOnSurface
const
& tsos)
const
=0;
35
virtual
TrackingRecHit::ConstRecHitPointer
makeShared
(
SiStripRecHit1D
const
& hit,
TrajectoryStateOnSurface
const
& tsos)
const
=0;
36
virtual
TrackingRecHit::ConstRecHitPointer
makeShared
(
SiStripMatchedRecHit2D
const
& hit,
TrajectoryStateOnSurface
const
& tsos)
const
=0;
37
virtual
TrackingRecHit::ConstRecHitPointer
makeShared
(
ProjectedSiStripRecHit2D
const
& hit,
TrajectoryStateOnSurface
const
& tsos)
const
=0;
38
#endif
39
40
};
41
#endif
cppFunctionSkipper.operator
string operator
Definition:
cppFunctionSkipper.py:10
SiStripRecHit2D
Definition:
SiStripRecHit2D.h:8
thread_safety_macros.h
TrackingRecHit
Definition:
TrackingRecHit.h:28
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:17
SiStripMatchedRecHit2D
Definition:
SiStripMatchedRecHit2D.h:8
TrackingRecHit.h
TrackingRecHit::ConstRecHitPointer
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
Definition:
TrackingRecHit.h:33
SiStripRecHit1D
Definition:
SiStripRecHit1D.h:13
TrackingRecHit::clone
virtual TrackingRecHit * clone() const =0
TrackingRecHit::canImproveWithTrack
virtual bool canImproveWithTrack() const
Definition:
TrackingRecHit.h:170
TkCloner::makeShared
TrackingRecHit *operator()[[cms TrackingRecHit::ConstRecHitPointer makeShared(TrackingRecHit::ConstRecHitPointer const &hit, TrajectoryStateOnSurface const &tsos) const
Definition:
TkCloner.h:20
ProjectedSiStripRecHit2D
Definition:
ProjectedSiStripRecHit2D.h:8
hit
Definition:
SiStripHitEffFromCalibTree.cc:85
TkCloner
Definition:
TkCloner.h:13
TkCloner::operator()
virtual SiPixelRecHit * operator()(SiPixelRecHit const &hit, TrajectoryStateOnSurface const &tsos) const =0
CMS_THREAD_SAFE
#define CMS_THREAD_SAFE
Definition:
thread_safety_macros.h:4
SiPixelRecHit
Our base class.
Definition:
SiPixelRecHit.h:23
Generated for CMSSW Reference Manual by
1.8.5