Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
DataFormats
TrackerRecHit2D
src
SiStripMatchedRecHit2D.cc
Go to the documentation of this file.
1
#include "
DataFormats/TrackerRecHit2D/interface/SiStripMatchedRecHit2D.h
"
2
3
bool
SiStripMatchedRecHit2D::sharesInput
(
const
TrackingRecHit
*
other
,
SharedInputType
what)
const
{
4
if
(what ==
all
&& (
geographicalId
() !=
other
->geographicalId()))
5
return
false
;
6
7
if
(!
sameDetModule
(*
other
))
8
return
false
;
9
10
if
(
trackerHitRTTI::isMatched
(*
other
)) {
11
const
SiStripMatchedRecHit2D
* otherMatched = static_cast<const SiStripMatchedRecHit2D*>(
other
);
12
return
sharesClusters
(*
this
, *otherMatched, what);
13
}
14
15
if
(what ==
all
)
16
return
false
;
17
// what about multi ???
18
if
(!
trackerHitRTTI::isFromDet
(*
other
))
19
return
false
;
20
21
auto
const
& otherClus = reinterpret_cast<const BaseTrackerRecHit*>(
other
)->firstClusterRef();
22
return
(otherClus ==
stereoClusterRef
()) || (otherClus ==
monoClusterRef
());
23
}
24
25
bool
SiStripMatchedRecHit2D::sharesInput
(
TrackerSingleRecHit
const
&
other
)
const
{
26
return
other
.sameCluster(
monoClusterRef
()) ||
other
.sameCluster(
stereoClusterRef
());
27
}
28
29
// it does not have components anymore...
30
std::vector<const TrackingRecHit*>
SiStripMatchedRecHit2D::recHits
()
const
{
31
std::vector<const TrackingRecHit*>
rechits
;
32
return
rechits
;
33
}
34
35
std::vector<TrackingRecHit*>
SiStripMatchedRecHit2D::recHits
() {
36
std::vector<TrackingRecHit*>
rechits
;
37
return
rechits
;
38
}
BaseTrackerRecHit::sameDetModule
bool sameDetModule(TrackingRecHit const &hit) const
Definition:
BaseTrackerRecHit.h:133
TrackingRecHit::geographicalId
DetId geographicalId() const
Definition:
TrackingRecHit.h:120
TrackingRecHit::SharedInputType
SharedInputType
definition of equality via shared input
Definition:
TrackingRecHit.h:59
trackingPlots.other
other
Definition:
trackingPlots.py:1465
trackerHitRTTI::isMatched
bool isMatched(TrackingRecHit const &hit)
Definition:
trackerHitRTTI.h:32
TrackingRecHit::all
Definition:
TrackingRecHit.h:59
SiStripMatchedRecHit2D::stereoClusterRef
OmniClusterRef const & stereoClusterRef() const
Definition:
SiStripMatchedRecHit2D.h:34
TrackInfoProducer_cfi.rechits
rechits
Definition:
TrackInfoProducer_cfi.py:9
trackerHitRTTI::isFromDet
bool isFromDet(TrackingRecHit const &hit)
Definition:
trackerHitRTTI.h:35
SiStripMatchedRecHit2D::monoClusterRef
OmniClusterRef const & monoClusterRef() const
Definition:
SiStripMatchedRecHit2D.h:35
TrackingRecHit
Definition:
TrackingRecHit.h:21
SiStripMatchedRecHit2D::sharesInput
bool sharesInput(const TrackingRecHit *other, SharedInputType what) const override
Definition:
SiStripMatchedRecHit2D.cc:3
SiStripMatchedRecHit2D
Definition:
SiStripMatchedRecHit2D.h:8
TrackerSingleRecHit
Definition:
TrackerSingleRecHit.h:11
SiStripMatchedRecHit2D.h
SiStripMatchedRecHit2D::recHits
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
Definition:
SiStripMatchedRecHit2D.cc:30
sharesClusters
bool sharesClusters(SiStripMatchedRecHit2D const &h1, SiStripMatchedRecHit2D const &h2, TrackingRecHit::SharedInputType what)
Definition:
SiStripMatchedRecHit2D.h:76
Generated for CMSSW Reference Manual by
1.8.16