CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
EventSingletonSimpleFlatTableProducer< T > Class Template Reference

#include <SimpleFlatTableProducer.h>

Inheritance diagram for EventSingletonSimpleFlatTableProducer< T >:
SimpleFlatTableProducerBase< T, T > edm::stream::EDProducer<>

Public Member Functions

 EventSingletonSimpleFlatTableProducer (edm::ParameterSet const &params)
 
std::unique_ptr
< nanoaod::FlatTable
fillTable (const edm::Event &, const edm::Handle< T > &prod) const override
 
 ~EventSingletonSimpleFlatTableProducer () override
 
- Public Member Functions inherited from SimpleFlatTableProducerBase< T, T >
void produce (edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
 SimpleFlatTableProducerBase (edm::ParameterSet const &params)
 
 ~SimpleFlatTableProducerBase () 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
 

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
 
- Protected Types inherited from SimpleFlatTableProducerBase< T, T >
typedef FuncVariable< T,
StringCutObjectSelector< T >
, bool > 
BoolVar
 
typedef FuncVariable< T,
StringObjectFunction< T >
, float > 
FloatVar
 
typedef FuncVariable< T,
StringObjectFunction< T >
, int8_t > 
Int8Var
 
typedef FuncVariable< T,
StringObjectFunction< T >, int > 
IntVar
 
typedef FuncVariable< T,
StringObjectFunction< T >
, uint8_t > 
UInt8Var
 
typedef FuncVariable< T,
StringObjectFunction< T >
, unsigned int > 
UIntVar
 
- Protected Attributes inherited from SimpleFlatTableProducerBase< T, T >
const std::string doc_
 
const bool extension_
 
const std::string name_
 
const bool skipNonExistingSrc_
 
const edm::EDGetTokenT< Tsrc_
 
std::vector< std::unique_ptr
< Variable< T > > > 
vars_
 

Detailed Description

template<typename T>
class EventSingletonSimpleFlatTableProducer< T >

Definition at line 261 of file SimpleFlatTableProducer.h.

Constructor & Destructor Documentation

template<typename T >
EventSingletonSimpleFlatTableProducer< T >::~EventSingletonSimpleFlatTableProducer ( )
inlineoverride

Definition at line 265 of file SimpleFlatTableProducer.h.

265 {}

Member Function Documentation

template<typename T >
std::unique_ptr<nanoaod::FlatTable> EventSingletonSimpleFlatTableProducer< T >::fillTable ( const edm::Event ,
const edm::Handle< T > &  prod 
) const
inlineoverridevirtual

Implements SimpleFlatTableProducerBase< T, T >.

Definition at line 267 of file SimpleFlatTableProducer.h.

References SimpleFlatTableProducerBase< T, T >::extension_, SimpleFlatTableProducerBase< T, T >::name_, submitPVResolutionJobs::out, edm::Handle< T >::product(), ALCARECOEcalPhiSym_cff::var, and SimpleFlatTableProducerBase< T, T >::vars_.

267  {
268  auto out = std::make_unique<nanoaod::FlatTable>(1, this->name_, true, this->extension_);
269  std::vector<const T *> selobjs(1, prod.product());
270  for (const auto &var : this->vars_)
271  var->fill(selobjs, *out);
272  return out;
273  }
T const * product() const
Definition: Handle.h:70
std::vector< std::unique_ptr< Variable< T > > > vars_