CMS 3D CMS Logo

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::FlatTablefillTable (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
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Protected Types inherited from SimpleFlatTableProducerBase< T, T >
typedef FuncVariable< StringCutObjectSelector< T >, uint8_t > BoolVar
 
typedef FuncVariable< StringObjectFunction< T >, float > FloatVar
 
typedef FuncVariable< StringObjectFunction< T >, int > IntVar
 
typedef FuncVariable< StringObjectFunction< T >, uint8_t > UInt8Var
 
- Protected Attributes inherited from SimpleFlatTableProducerBase< T, T >
const std::string doc_
 
const bool extension_
 
const std::string name_
 
const edm::EDGetTokenT< Tsrc_
 
boost::ptr_vector< Variable > vars_
 

Detailed Description

template<typename T>
class EventSingletonSimpleFlatTableProducer< T >

Definition at line 198 of file SimpleFlatTableProducer.h.

Constructor & Destructor Documentation

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

Definition at line 203 of file SimpleFlatTableProducer.h.

203 {}

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 205 of file SimpleFlatTableProducer.h.

References SimpleFlatTableProducerBase< T, TProd >::extension_, SimpleFlatTableProducerBase< T, TProd >::VariableBase::name_, MillePedeFileConverter_cfg::out, edm::Handle< T >::product(), JetChargeProducer_cfi::var, and SimpleFlatTableProducerBase< T, TProd >::vars_.

205  {
206  auto out = std::make_unique<nanoaod::FlatTable>(1, this->name_, true, this->extension_);
207  std::vector<const T *> selobjs(1, prod.product());
208  for (const auto & var : this->vars_) var.fill(selobjs, *out);
209  return out;
210  }
T const * product() const
Definition: Handle.h:74