Main Page
Namespaces
Classes
Package Documentation
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),
18
objref_
(objref),
19
pos_
(pos),
err_
(err) {}
20
21
FTLTrackingRecHit<ObjRef>
*
clone
()
const override
{
return
new
FTLTrackingRecHit<ObjRef>
(*this); }
22
23
LocalPoint
localPosition
()
const override
{
return
pos_
; }
24
LocalError
localPositionError
()
const override
{
return
err_
; }
25
26
const
ObjRef &
objRef
()
const
{
return
objref_
; }
27
28
float
energy
()
const
{
return
objref_
->energy(); }
29
30
float
time
()
const
{
return
objref_
->time(); }
31
float
timeError
()
const
{
return
objref_
->timeError(); }
32
33
bool
sharesInput
(
const
TrackingRecHit
*
other
,
SharedInputType
what)
const override
{ assert(
false
); }
34
protected
:
35
ObjRef
objref_
;
36
LocalPoint
pos_
;
37
LocalError
err_
;
38
};
39
40
41
// Instantiations and specializations for FTLRecHitRef and reco::CaloClusterPtr
42
#include "
DataFormats/FTLRecHit/interface/FTLRecHitCollections.h
"
43
#include "
DataFormats/CaloRecHit/interface/CaloClusterFwd.h
"
44
typedef
FTLTrackingRecHit<FTLRecHitRef>
FTLTrackingRecHitFromHit
;
45
typedef
std::vector<FTLTrackingRecHitFromHit>
FTLTrackingRecHitCollection
;
46
47
template
<>
48
bool
FTLTrackingRecHit<FTLRecHitRef>::sharesInput
(
const
TrackingRecHit
*
other
,
SharedInputType
what)
const
;
49
50
#endif
TrackingRecHit::SharedInputType
SharedInputType
definition of equality via shared input
Definition:
TrackingRecHit.h:55
FTLTrackingRecHit
Basic template class for a RecHit wrapping a Ref to an object.
Definition:
FTLTrackingRecHit.h:10
RecHit2DLocalPos
Definition:
RecHit2DLocalPos.h:9
FTLTrackingRecHit::err_
LocalError err_
Definition:
FTLTrackingRecHit.h:37
TrackingRecHit
Definition:
TrackingRecHit.h:23
FTLTrackingRecHit::objRef
const ObjRef & objRef() const
Definition:
FTLTrackingRecHit.h:26
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::time
float time() const
Definition:
FTLTrackingRecHit.h:30
FTLTrackingRecHit::pos_
LocalPoint pos_
Definition:
FTLTrackingRecHit.h:36
RecHit2DLocalPos.h
trackingPlots.other
other
Definition:
trackingPlots.py:1453
FTLTrackingRecHit::obj_type
ObjRef::value_type obj_type
Definition:
FTLTrackingRecHit.h:13
FTLTrackingRecHitCollection
std::vector< FTLTrackingRecHitFromHit > FTLTrackingRecHitCollection
Definition:
FTLTrackingRecHit.h:45
FTLTrackingRecHit::sharesInput
bool sharesInput(const TrackingRecHit *other, SharedInputType what) const override
Definition:
FTLTrackingRecHit.h:33
FTLTrackingRecHit::timeError
float timeError() const
Definition:
FTLTrackingRecHit.h:31
FTLTrackingRecHitFromHit
FTLTrackingRecHit< FTLRecHitRef > FTLTrackingRecHitFromHit
Definition:
FTLTrackingRecHit.h:44
FTLTrackingRecHit::ref_type
ObjRef ref_type
Definition:
FTLTrackingRecHit.h:12
pos
Definition:
PixelAliasList.h:18
DetId
Definition:
DetId.h:18
FTLTrackingRecHit::localPositionError
LocalError localPositionError() const override
Definition:
FTLTrackingRecHit.h:24
LocalError
Definition:
LocalError.h:12
FTLTrackingRecHit::clone
FTLTrackingRecHit< ObjRef > * clone() const override
Definition:
FTLTrackingRecHit.h:21
FTLTrackingRecHit::FTLTrackingRecHit
FTLTrackingRecHit()
Definition:
FTLTrackingRecHit.h:15
FTLTrackingRecHit::energy
float energy() const
Definition:
FTLTrackingRecHit.h:28
FTLTrackingRecHit::objref_
ObjRef objref_
Definition:
FTLTrackingRecHit.h:35
RecHit2DLocalPos::LocalPoint
GloballyPositioned< float >::LocalPoint LocalPoint
Definition:
RecHit2DLocalPos.h:12
FTLTrackingRecHit::localPosition
LocalPoint localPosition() const override
Definition:
FTLTrackingRecHit.h:23
Generated for CMSSW Reference Manual by
1.8.11