CommonTools
CandUtils
interface
CandMapTrait.h
Go to the documentation of this file.
1
#ifndef CommonTools_CandUtils_CandMapTrait_h
2
#define CommonTools_CandUtils_CandMapTrait_h
3
4
#include "
DataFormats/Common/interface/AssociationMap.h
"
5
#include "
DataFormats/Candidate/interface/CandidateFwd.h
"
6
7
/* \class reco::helper::CandMapTrait<T>
8
*
9
* \author Luca Lista, INFN
10
*
11
* \version $Id: CandMapTrait.h,v 1.2 2007/10/20 16:00:52 llista Exp $
12
*
13
*/
14
namespace
reco
{
15
namespace
helper
{
16
template
<
typename
C1,
typename
C2 = C1>
17
struct
CandMapTrait
{
18
typedef
edm::AssociationMap<edm::OneToOne<C1, C2>
>
type
;
19
};
20
21
template
<
typename
C1>
22
struct
CandMapTrait
<C1,
CandidateView
> {
23
typedef
edm::AssociationMap<edm::OneToOneGeneric<C1, CandidateView>
>
type
;
24
};
25
26
template
<
typename
C2>
27
struct
CandMapTrait
<
CandidateView
, C2> {
28
typedef
edm::AssociationMap<edm::OneToOneGeneric<CandidateView, C2>
>
type
;
29
};
30
31
template
<>
32
struct
CandMapTrait
<
CandidateView
,
CandidateView
> {
33
typedef
edm::AssociationMap<edm::OneToOneGeneric<CandidateView, CandidateView>
>
type
;
34
};
35
36
template
<
typename
C>
37
struct
CandRefTrait
{
38
typedef
edm::Ref<C>
ref_type
;
39
typedef
edm::RefProd<C>
refProd_type
;
40
};
41
42
template
<
typename
T>
43
struct
CandRefTrait
<
edm
::
View
<T> > {
44
typedef
edm::RefToBase<T>
ref_type
;
45
typedef
edm::RefToBaseProd<T>
refProd_type
;
46
};
47
}
// namespace helper
48
}
// namespace reco
49
50
#endif
edm::RefProd
Definition:
EDProductfwd.h:25
sistrip::View
View
Definition:
ConstantsForView.h:26
reco::helper::CandMapTrait::type
edm::AssociationMap< edm::OneToOne< C1, C2 > > type
Definition:
CandMapTrait.h:18
edm
HLT enums.
Definition:
AlignableModifier.h:19
reco::helper::CandRefTrait::refProd_type
edm::RefProd< C > refProd_type
Definition:
CandMapTrait.h:39
AssociationMap.h
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
reco::helper::CandRefTrait::ref_type
edm::Ref< C > ref_type
Definition:
CandMapTrait.h:38
edm::Ref
Definition:
AssociativeIterator.h:58
reco::helper::CandMapTrait< C1, CandidateView >::type
edm::AssociationMap< edm::OneToOneGeneric< C1, CandidateView > > type
Definition:
CandMapTrait.h:23
CandidateFwd.h
reco::helper::CandRefTrait< edm::View< T > >::ref_type
edm::RefToBase< T > ref_type
Definition:
CandMapTrait.h:44
edm::View
Definition:
CaloClusterFwd.h:14
edm::AssociationMap
Definition:
AssociationMap.h:48
helper
Definition:
helper.py:1
reco::helper::CandRefTrait
Definition:
CandMapTrait.h:37
reco::helper::CandMapTrait< CandidateView, CandidateView >::type
edm::AssociationMap< edm::OneToOneGeneric< CandidateView, CandidateView > > type
Definition:
CandMapTrait.h:33
reco::helper::CandMapTrait
Definition:
CandMapTrait.h:17
reco::helper::CandMapTrait< CandidateView, C2 >::type
edm::AssociationMap< edm::OneToOneGeneric< CandidateView, C2 > > type
Definition:
CandMapTrait.h:28
reco::helper::CandRefTrait< edm::View< T > >::refProd_type
edm::RefToBaseProd< T > refProd_type
Definition:
CandMapTrait.h:45
edm::RefToBase
Definition:
AssociativeIterator.h:54
edm::RefToBaseProd
Definition:
RefToBase.h:65
Generated for CMSSW Reference Manual by
1.8.16