Main Page
Namespaces
Classes
Package Documentation
FWCore
Framework
interface
stream
EDProducerAdaptor.h
Go to the documentation of this file.
1
#ifndef FWCore_Framework_stream_EDProducerAdaptor_h
2
#define FWCore_Framework_stream_EDProducerAdaptor_h
3
// -*- C++ -*-
4
//
5
// Package: FWCore/Framework
6
// Class : EDProducerAdaptor
7
//
16
//
17
// Original Author: Chris Jones
18
// Created: Fri, 02 Aug 2013 18:09:18 GMT
19
//
20
21
// system include files
22
23
// user include files
24
#include "
FWCore/Framework/interface/stream/EDProducerAdaptorBase.h
"
25
#include "
FWCore/Framework/interface/stream/ProducingModuleAdaptor.h
"
26
#include "
FWCore/Framework/src/MakeModuleHelper.h
"
27
// forward declarations
28
29
namespace
edm
{
30
namespace
stream {
31
template
<
typename
ABase,
typename
ModType>
struct
BaseToAdaptor;
32
33
template
<
typename
T>
using
EDProducerAdaptor
=
ProducingModuleAdaptor<T,EDProducerBase, EDProducerAdaptorBase>
;
34
35
template
<
typename
ModType>
struct
BaseToAdaptor
<
EDProducerAdaptorBase
,ModType> {
36
typedef
EDProducerAdaptor<ModType>
Type
;
37
};
38
}
39
40
template
<>
41
class
MakeModuleHelper
<
edm
::
stream::EDProducerAdaptorBase
>
42
{
43
typedef
edm::stream::EDProducerAdaptorBase
Base
;
44
public
:
45
template
<
typename
ModType>
46
static
std::unique_ptr<Base>
makeModule
(
ParameterSet
const
&
pset
) {
47
typedef
typename
stream::BaseToAdaptor<Base,ModType>::Type
Adaptor;
48
auto
module
= std::make_unique<Adaptor>(
pset
);
49
return
std::unique_ptr<Base>(
module
.release());
50
}
51
};
52
}
53
54
#endif
edm::stream::ProducingModuleAdaptor
Definition:
ProducingModuleAdaptor.h:38
edm::MakeModuleHelper< edm::stream::EDProducerAdaptorBase >::makeModule
static std::unique_ptr< Base > makeModule(ParameterSet const &pset)
Definition:
EDProducerAdaptor.h:46
edm::MakeModuleHelper
Definition:
MakeModuleHelper.h:30
ProducingModuleAdaptor.h
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
edm::stream::EDProducerAdaptor
edm::MakeModuleHelper< edm::stream::EDProducerAdaptorBase >::Base
edm::stream::EDProducerAdaptorBase Base
Definition:
EDProducerAdaptor.h:43
edm::stream::EDProducerAdaptorBase
Definition:
EDProducerAdaptorBase.h:48
EDProducerAdaptorBase.h
edm::stream::BaseToAdaptor
Definition:
EDAnalyzerAdaptor.h:39
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ParameterSet
Definition:
ParameterSet.h:36
MakeModuleHelper.h
edm::stream::BaseToAdaptor< EDProducerAdaptorBase, ModType >::Type
EDProducerAdaptor< ModType > Type
Definition:
EDProducerAdaptor.h:36
module
Definition:
vlib.h:208
Generated for CMSSW Reference Manual by
1.8.11