Main Page
Namespaces
Classes
Package Documentation
CommonTools
UtilAlgos
interface
FwdPtrConversionFactory.h
Go to the documentation of this file.
1
#ifndef CommonTools_UtilAlgos_FwdPtrConversionFactory_h
2
#define CommonTools_UtilAlgos_FwdPtrConversionFactory_h
3
4
13
#include "
DataFormats/Common/interface/FwdPtr.h
"
14
#include "
DataFormats/Common/interface/RefToBaseVector.h
"
15
16
17
namespace
edm
{
21
template
<
class
T>
22
struct
ProductFromFwdPtrFactory
{
23
T
operator()
(
edm::FwdPtr<T>
const
&
r
)
const
{
return
T
(*r); }
24
};
25
26
27
28
31
template
<
class
T>
32
struct
FwdPtrFromProductFactory
{
33
edm::FwdPtr<T>
operator()
(
edm::View<T>
const
& view,
unsigned
int
i
)
const
{
return
edm::FwdPtr<T>
(view.ptrAt(i),view.ptrAt(i)); }
34
};
35
36
37
38
}
39
40
#endif
edm::View< T >
mps_fire.i
i
Definition:
mps_fire.py:329
edm::ProductFromFwdPtrFactory::operator()
T operator()(edm::FwdPtr< T > const &r) const
Definition:
FwdPtrConversionFactory.h:23
edm::FwdPtrFromProductFactory
Definition:
FwdPtrConversionFactory.h:32
RefToBaseVector.h
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
edm::ProductFromFwdPtrFactory
Definition:
FwdPtrConversionFactory.h:22
FwdPtr.h
edm
HLT enums.
Definition:
AlignableModifier.h:17
T
long double T
Definition:
Basic3DVectorLD.h:66
edm::FwdPtr
Definition:
FwdPtr.h:40
Generated for CMSSW Reference Manual by
1.8.11