CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
NativeArrayTableProducer< TIn, TCol > Class Template Reference
Inheritance diagram for NativeArrayTableProducer< TIn, TCol >:
edm::stream::EDProducer<>

Public Member Functions

 NativeArrayTableProducer (edm::ParameterSet const &params)
 
void produce (edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
 ~NativeArrayTableProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Protected Attributes

const std::string doc_
 
const std::string name_
 
const edm::EDGetTokenT< TIn > src_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

template<typename TIn, typename TCol>
class NativeArrayTableProducer< TIn, TCol >

Definition at line 8 of file NativeArrayTableProducer.cc.

Constructor & Destructor Documentation

◆ NativeArrayTableProducer()

template<typename TIn , typename TCol >
NativeArrayTableProducer< TIn, TCol >::NativeArrayTableProducer ( edm::ParameterSet const &  params)
inline

Definition at line 10 of file NativeArrayTableProducer.cc.

11  : name_(params.getParameter<std::string>("name")),
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>();
15  }

◆ ~NativeArrayTableProducer()

template<typename TIn , typename TCol >
NativeArrayTableProducer< TIn, TCol >::~NativeArrayTableProducer ( )
inlineoverride

Definition at line 17 of file NativeArrayTableProducer.cc.

17 {}

Member Function Documentation

◆ produce()

template<typename TIn , typename TCol >
void NativeArrayTableProducer< TIn, TCol >::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
inlineoverride

Definition at line 19 of file NativeArrayTableProducer.cc.

19  {
21  iEvent.getByToken(src_, src);
22 
23  const auto& in = *src;
24  auto out = std::make_unique<nanoaod::FlatTable>(in.size(), name_, false, false);
25  out->setDoc(doc_);
26  (*out).template addColumn<TCol>(this->name_, in, this->doc_);
27  iEvent.put(std::move(out));
28  }

References NativeArrayTableProducer< TIn, TCol >::doc_, iEvent, recoMuon::in, eostools::move(), NativeArrayTableProducer< TIn, TCol >::name_, MillePedeFileConverter_cfg::out, edm::Event::put(), TrackRefitter_38T_cff::src, and NativeArrayTableProducer< TIn, TCol >::src_.

Member Data Documentation

◆ doc_

template<typename TIn , typename TCol >
const std::string NativeArrayTableProducer< TIn, TCol >::doc_
protected

◆ name_

template<typename TIn , typename TCol >
const std::string NativeArrayTableProducer< TIn, TCol >::name_
protected

◆ src_

template<typename TIn , typename TCol >
const edm::EDGetTokenT<TIn> NativeArrayTableProducer< TIn, TCol >::src_
protected
NativeArrayTableProducer::src_
const edm::EDGetTokenT< TIn > src_
Definition: NativeArrayTableProducer.cc:33
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
edm::Handle
Definition: AssociativeIterator.h:50
TrackRefitter_38T_cff.src
src
Definition: TrackRefitter_38T_cff.py:24
recoMuon::in
Definition: RecoMuonEnumerators.h:6
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::Event::put
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
eostools.move
def move(src, dest)
Definition: eostools.py:511
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
NativeArrayTableProducer::doc_
const std::string doc_
Definition: NativeArrayTableProducer.cc:32
edm::InputTag
Definition: InputTag.h:15
NativeArrayTableProducer::name_
const std::string name_
Definition: NativeArrayTableProducer.cc:31