7 template <
typename TIn,
typename TCol>
12 doc_(params.existsAs<std::
string>(
"doc") ? params.getParameter<std::
string>(
"doc") :
""),
13 src_(consumes<TIn>(params.getParameter<edm::
InputTag>(
"src"))) {
14 produces<nanoaod::FlatTable>();
23 const auto&
in = *
src;
24 auto out = std::make_unique<nanoaod::FlatTable>(
in.size(),
name_,
false,
false);
26 (*out).template addColumn<TCol>(this->
name_,
in, this->
doc_);
~NativeArrayTableProducer() override
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
NativeArrayTableProducer(edm::ParameterSet const ¶ms)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
NativeArrayTableProducer< std::vector< double >, float > DoubleArrayTableProducer
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
NativeArrayTableProducer< std::vector< bool >, bool > BoolArrayTableProducer
NativeArrayTableProducer< std::vector< float >, float > FloatArrayTableProducer
NativeArrayTableProducer< std::vector< int >, int > IntArrayTableProducer
const edm::EDGetTokenT< TIn > src_