Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
CommonTools
UtilAlgos
interface
StoreContainerTrait.h
Go to the documentation of this file.
1
#ifndef UtilAlgos_StoreContainerTrait_h
2
#define UtilAlgos_StoreContainerTrait_h
3
/* \class helper::StoreContainerTrait
4
*
5
* \author Luca Lista, INFN
6
*/
7
#include "
DataFormats/Common/interface/RefVector.h
"
8
#include "
DataFormats/Common/interface/RefToBaseVector.h
"
9
#include "
DataFormats/Common/interface/PtrVector.h
"
10
#include "
DataFormats/Common/interface/AssociationVector.h
"
11
12
namespace
helper {
13
template
<
typename
OutputCollection>
14
struct
StoreContainerTrait
{
15
typedef
std::vector<const typename OutputCollection::value_type *>
type
;
16
};
17
18
template
<
typename
C>
19
struct
StoreContainerTrait
<edm::
RefVector
<C> > {
20
typedef
edm::RefVector<C>
type
;
21
};
22
23
template
<
typename
T>
24
struct
StoreContainerTrait
<edm::
RefToBaseVector
<T> > {
25
typedef
edm::RefToBaseVector<T>
type
;
26
};
27
28
template
<
typename
T>
29
struct
StoreContainerTrait
<edm::
PtrVector
<T> > {
30
typedef
edm::PtrVector<T>
type
;
31
};
32
33
template
<
typename
R,
typename
C>
34
struct
StoreContainerTrait
<edm::AssociationVector<R, C> > {
35
typedef
typename
StoreContainerTrait<typename R::product_type>::type
type
;
36
};
37
}
// namespace helper
38
39
#endif
helper::StoreContainerTrait
Definition:
StoreContainerTrait.h:14
helper::StoreContainerTrait::type
std::vector< const typename OutputCollection::value_type * > type
Definition:
StoreContainerTrait.h:15
helper::StoreContainerTrait< edm::RefVector< C > >::type
edm::RefVector< C > type
Definition:
StoreContainerTrait.h:20
PtrVector.h
helper::StoreContainerTrait< edm::PtrVector< T > >::type
edm::PtrVector< T > type
Definition:
StoreContainerTrait.h:30
RefVector.h
RefToBaseVector
RefToBaseVector.h
edm::RefToBaseVector
Definition:
EDProductfwd.h:29
edm::RefVector
Definition:
EDProductfwd.h:27
PtrVector
AssociationVector.h
helper::StoreContainerTrait< edm::AssociationVector< R, C > >::type
StoreContainerTrait< typename R::product_type >::type type
Definition:
StoreContainerTrait.h:35
edm::PtrVector
Definition:
PtrVector.h:36
reco::JetExtendedAssociation::RefVector
edm::RefVector< Container > RefVector
Definition:
JetExtendedAssociation.h:34
helper::StoreContainerTrait< edm::RefToBaseVector< T > >::type
edm::RefToBaseVector< T > type
Definition:
StoreContainerTrait.h:25
Generated for CMSSW Reference Manual by
1.8.5