CMS 3D CMS Logo

List of all members | Public Member Functions
FirstObjectSimpleFlatTableProducer< T > Class Template Reference

#include <SimpleFlatTableProducer.h>

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

Public Member Functions

std::unique_ptr< nanoaod::FlatTablefillTable (const edm::Event &iEvent, const edm::Handle< edm::View< T >> &prod) const override
 
 FirstObjectSimpleFlatTableProducer (edm::ParameterSet const &params)
 
 ~FirstObjectSimpleFlatTableProducer () override
 
- Public Member Functions inherited from SimpleFlatTableProducerBase< T, edm::View< T > >
virtual std::unique_ptr< nanoaod::FlatTablefillTable (const edm::Event &iEvent, const edm::Handle< edm::View< T > > &prod) const=0
 
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 hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () 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, edm::View< 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, edm::View< T > >
const std::string doc_
 
const bool extension_
 
const std::string name_
 
const edm::EDGetTokenT< edm::View< T > > src_
 
boost::ptr_vector< Variable > vars_
 

Detailed Description

template<typename T>
class FirstObjectSimpleFlatTableProducer< T >

Definition at line 241 of file SimpleFlatTableProducer.h.

Constructor & Destructor Documentation

◆ FirstObjectSimpleFlatTableProducer()

template<typename T >
FirstObjectSimpleFlatTableProducer< T >::FirstObjectSimpleFlatTableProducer ( edm::ParameterSet const &  params)
inline

◆ ~FirstObjectSimpleFlatTableProducer()

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

Definition at line 246 of file SimpleFlatTableProducer.h.

246 {}

Member Function Documentation

◆ fillTable()

template<typename T >
std::unique_ptr<nanoaod::FlatTable> FirstObjectSimpleFlatTableProducer< T >::fillTable ( const edm::Event iEvent,
const edm::Handle< edm::View< T >> &  prod 
) const
inlineoverride

Definition at line 248 of file SimpleFlatTableProducer.h.

249  {
250  auto out = std::make_unique<nanoaod::FlatTable>(1, this->name_, true, this->extension_);
251  std::vector<const T *> selobjs(1, &(*prod)[0]);
252  for (const auto &var : this->vars_)
253  var.fill(selobjs, *out);
254  return out;
255  }

References SimpleFlatTableProducerBase< T, edm::View< T > >::extension_, SimpleFlatTableProducerBase< T, edm::View< T > >::name_, MillePedeFileConverter_cfg::out, dumpMFGeometry_cfg::prod, trigObjTnPSource_cfi::var, and SimpleFlatTableProducerBase< T, edm::View< T > >::vars_.

CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
SimpleFlatTableProducerBase< T, edm::View< T > >::vars_
boost::ptr_vector< Variable > vars_
Definition: SimpleFlatTableProducer.h:114
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
SimpleFlatTableProducerBase< T, edm::View< T > >::name_
const std::string name_
Definition: SimpleFlatTableProducer.h:58
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
SimpleFlatTableProducerBase
Definition: SimpleFlatTableProducer.h:15
SimpleFlatTableProducerBase< T, edm::View< T > >::extension_
const bool extension_
Definition: SimpleFlatTableProducer.h:60