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
n
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
c
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
src
DataFormats
Common
interface
getRef.h
Go to the documentation of this file.
1
#ifndef DataFormats_Common_getRef_h
2
#define DataFormats_Common_getRef_h
3
/* \function edm::getRef(...)
4
*
5
* \author Luca Lista, INFN
6
*
7
*/
8
#include "
DataFormats/Common/interface/Ref.h
"
9
#include "
DataFormats/Common/interface/View.h
"
10
#include "
DataFormats/Common/interface/Handle.h
"
11
12
namespace
edm
{
13
namespace
helper
{
14
template
<
typename
C>
15
struct
MatcherGetRef
{
16
typedef
Ref<C>
ref_type
;
17
static
ref_type
getRef
(
const
Handle<C>
&
c
,
size_t
k
) {
return
ref_type
(
c
,
k
); }
18
};
19
20
template
<
typename
T>
21
struct
MatcherGetRef
<
View
<
T
> > {
22
typedef
RefToBase<T>
ref_type
;
23
static
ref_type
getRef
(
const
Handle
<
View<T>
>&
v
,
size_t
k
) {
return
v
->refAt(
k
); }
24
};
25
}
// namespace helper
26
27
template
<
typename
C>
28
typename
helper::MatcherGetRef<C>::ref_type
getRef
(
const
Handle<C>
&
c
,
size_t
k
) {
29
return
helper::MatcherGetRef<C>::getRef
(
c
,
k
);
30
}
31
}
// namespace edm
32
33
#endif
edm::getRef
helper::MatcherGetRef< C >::ref_type getRef(const Handle< C > &c, size_t k)
Definition:
getRef.h:28
edm::View< T >
helper
Definition:
helper.py:1
edm::Ref
Definition:
AssociativeIterator.h:58
edm::Handle
Definition:
AssociativeIterator.h:50
edm::helper::MatcherGetRef< View< T > >::getRef
static ref_type getRef(const Handle< View< T > > &v, size_t k)
Definition:
getRef.h:23
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
edm::RefToBase
Definition:
AssociativeIterator.h:54
edm::View
Definition:
CaloClusterFwd.h:14
edm::helper::MatcherGetRef
Definition:
getRef.h:15
View.h
Ref.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::helper::MatcherGetRef::ref_type
Ref< C > ref_type
Definition:
getRef.h:16
edm::helper::MatcherGetRef::getRef
static ref_type getRef(const Handle< C > &c, size_t k)
Definition:
getRef.h:17
T
long double T
Definition:
Basic3DVectorLD.h:48
dqmdumpme.k
k
Definition:
dqmdumpme.py:60
edm::helper::MatcherGetRef< View< T > >::ref_type
RefToBase< T > ref_type
Definition:
getRef.h:22
Handle.h
Generated for CMSSW Reference Manual by
1.8.14