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
12
#include "
DataFormats/Common/interface/FwdPtr.h
"
13
#include "
DataFormats/Common/interface/RefToBaseVector.h
"
14
15
namespace
edm
{
19
template
<
class
T>
20
struct
ProductFromFwdPtrFactory
{
21
T
operator()
(
edm::FwdPtr<T>
const
&
r
)
const
{
return
T
(*
r
); }
22
};
23
26
template
<
class
T>
27
struct
FwdPtrFromProductFactory
{
28
edm::FwdPtr<T>
operator()
(
edm::View<T>
const
&view,
unsigned
int
i
)
const
{
29
return
edm::FwdPtr<T>
(view.
ptrAt
(
i
), view.
ptrAt
(
i
));
30
}
31
};
32
33
}
// namespace edm
34
35
#endif
mps_fire.i
i
Definition:
mps_fire.py:355
edm::FwdPtrFromProductFactory::operator()
edm::FwdPtr< T > operator()(edm::View< T > const &view, unsigned int i) const
Definition:
FwdPtrConversionFactory.h:28
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ProductFromFwdPtrFactory::operator()
T operator()(edm::FwdPtr< T > const &r) const
Definition:
FwdPtrConversionFactory.h:21
RefToBaseVector.h
edm::FwdPtrFromProductFactory
Definition:
FwdPtrConversionFactory.h:27
edm::FwdPtr
Definition:
FwdPtr.h:40
edm::View
Definition:
CaloClusterFwd.h:14
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
FwdPtr.h
T
long double T
Definition:
Basic3DVectorLD.h:48
edm::View::ptrAt
Ptr< value_type > ptrAt(size_type i) const
edm::ProductFromFwdPtrFactory
Definition:
FwdPtrConversionFactory.h:20
Generated for CMSSW Reference Manual by
1.8.16