src
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
edm::View< T >
mps_fire.i
i
Definition:
mps_fire.py:428
edm::FwdPtrFromProductFactory::operator()
edm::FwdPtr< T > operator()(edm::View< T > const &view, unsigned int i) const
Definition:
FwdPtrConversionFactory.h:28
edm::FwdPtrFromProductFactory
Definition:
FwdPtrConversionFactory.h:27
RefToBaseVector.h
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
edm::ProductFromFwdPtrFactory
Definition:
FwdPtrConversionFactory.h:20
FwdPtr.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ProductFromFwdPtrFactory::operator()
T operator()(edm::FwdPtr< T > const &r) const
Definition:
FwdPtrConversionFactory.h:21
T
long double T
Definition:
Basic3DVectorLD.h:48
edm::FwdPtr
Definition:
FwdPtr.h:40
Generated for CMSSW Reference Manual by
1.8.14