src
DataFormats
FTLRecHit
interface
FTLTrackingRecHit.h
Go to the documentation of this file.
1
#ifndef DataFormats_FTLRecHit_FTLTrackingRecHit_h
2
#define DataFormats_FTLRecHit_FTLTrackingRecHit_h
3
5
6
#include <cassert>
7
#include "
DataFormats/TrackingRecHit/interface/RecHit2DLocalPos.h
"
8
9
template
<
typename
ObjRef>
10
class
FTLTrackingRecHit
:
public
RecHit2DLocalPos
{
11
public
:
12
typedef
ObjRef
ref_type
;
13
typedef
typename
ObjRef::value_type
obj_type
;
14
15
FTLTrackingRecHit
() {}
16
FTLTrackingRecHit
(
DetId
id
,
const
ObjRef &objref,
const
LocalPoint
&
pos
,
const
LocalError
&
err
)
17
:
RecHit2DLocalPos
(
id
),
objref_
(objref),
pos_
(
pos
),
err_
(
err
) {}
18
19
FTLTrackingRecHit<ObjRef>
*
clone
()
const override
{
return
new
FTLTrackingRecHit<ObjRef>
(*this); }
20
21
LocalPoint
localPosition
()
const override
{
return
pos_
; }
22
LocalError
localPositionError
()
const override
{
return
err_
; }
23
24
const
ObjRef &
objRef
()
const
{
return
objref_
; }
25
26
float
energy
()
const
{
return
objref_
->energy(); }
27
28
float
time
()
const
{
return
objref_
->time(); }
29
float
timeError
()
const
{
return
objref_
->timeError(); }
30
31
bool
sharesInput
(
const
TrackingRecHit
*
other
,
SharedInputType
what)
const override
{
assert
(
false
); }
32
33
protected
:
34
ObjRef
objref_
;
35
LocalPoint
pos_
;
36
LocalError
err_
;
37
};
38
39
// Instantiations and specializations for FTLRecHitRef and reco::CaloClusterPtr
40
#include "
DataFormats/FTLRecHit/interface/FTLRecHitCollections.h
"
41
#include "
DataFormats/CaloRecHit/interface/CaloClusterFwd.h
"
42
typedef
FTLTrackingRecHit<FTLRecHitRef>
FTLTrackingRecHitFromHit
;
43
typedef
std::vector<FTLTrackingRecHitFromHit>
FTLTrackingRecHitCollection
;
44
45
template
<>
46
bool
FTLTrackingRecHit<FTLRecHitRef>::sharesInput
(
const
TrackingRecHit
*
other
, SharedInputType what)
const
;
47
48
#endif
TrackingRecHit::SharedInputType
SharedInputType
definition of equality via shared input
Definition:
TrackingRecHit.h:59
FTLTrackingRecHit::sharesInput
bool sharesInput(const TrackingRecHit *other, SharedInputType what) const override
Definition:
FTLTrackingRecHit.h:31
FTLTrackingRecHit::timeError
float timeError() const
Definition:
FTLTrackingRecHit.h:29
FTLTrackingRecHit
Basic template class for a RecHit wrapping a Ref to an object.
Definition:
FTLTrackingRecHit.h:10
FTLTrackingRecHit::energy
float energy() const
Definition:
FTLTrackingRecHit.h:26
RecHit2DLocalPos
Definition:
RecHit2DLocalPos.h:8
FTLTrackingRecHit::clone
FTLTrackingRecHit< ObjRef > * clone() const override
Definition:
FTLTrackingRecHit.h:19
FTLTrackingRecHit::localPositionError
LocalError localPositionError() const override
Definition:
FTLTrackingRecHit.h:22
FTLTrackingRecHit::err_
LocalError err_
Definition:
FTLTrackingRecHit.h:36
FTLTrackingRecHit::objRef
const ObjRef & objRef() const
Definition:
FTLTrackingRecHit.h:24
TrackingRecHit
Definition:
TrackingRecHit.h:21
l1ctLayer2EG_cff.id
id
Definition:
l1ctLayer2EG_cff.py:86
cms::cuda::assert
assert(be >=bs)
submitPVResolutionJobs.err
err
Definition:
submitPVResolutionJobs.py:84
FTLTrackingRecHit::FTLTrackingRecHit
FTLTrackingRecHit(DetId id, const ObjRef &objref, const LocalPoint &pos, const LocalError &err)
Definition:
FTLTrackingRecHit.h:16
FTLRecHitCollections.h
CaloClusterFwd.h
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
FTLTrackingRecHit::pos_
LocalPoint pos_
Definition:
FTLTrackingRecHit.h:35
RecHit2DLocalPos.h
trackingPlots.other
other
Definition:
trackingPlots.py:1467
FTLTrackingRecHit::obj_type
ObjRef::value_type obj_type
Definition:
FTLTrackingRecHit.h:13
FTLTrackingRecHitCollection
std::vector< FTLTrackingRecHitFromHit > FTLTrackingRecHitCollection
Definition:
FTLTrackingRecHit.h:43
FTLTrackingRecHitFromHit
FTLTrackingRecHit< FTLRecHitRef > FTLTrackingRecHitFromHit
Definition:
FTLTrackingRecHit.h:42
FTLTrackingRecHit::ref_type
ObjRef ref_type
Definition:
FTLTrackingRecHit.h:12
pos
Definition:
PixelCalibBase.h:13
DetId
Definition:
DetId.h:17
FTLTrackingRecHit::localPosition
LocalPoint localPosition() const override
Definition:
FTLTrackingRecHit.h:21
LocalError
Definition:
LocalError.h:12
FTLTrackingRecHit::time
float time() const
Definition:
FTLTrackingRecHit.h:28
FTLTrackingRecHit::FTLTrackingRecHit
FTLTrackingRecHit()
Definition:
FTLTrackingRecHit.h:15
FTLTrackingRecHit::objref_
ObjRef objref_
Definition:
FTLTrackingRecHit.h:34
RecHit2DLocalPos::LocalPoint
GloballyPositioned< float >::LocalPoint LocalPoint
Definition:
RecHit2DLocalPos.h:10
Generated for CMSSW Reference Manual by
1.8.14