#include <AssociationVector2ValueMap.h>
Public Member Functions | |
AssociationVector2ValueMap (const edm::ParameterSet &) | |
Private Types | |
typedef edm::AssociationVector < KeyRefProd, CVal > | av_t |
typedef av_t::CKey | collection_t |
typedef CVal::value_type | value_t |
typedef edm::ValueMap< value_t > | vm_t |
Private Member Functions | |
void | produce (edm::Event &, const edm::EventSetup &) override |
Private Attributes | |
edm::InputTag | av_ |
Definition at line 16 of file AssociationVector2ValueMap.h.
typedef edm::AssociationVector<KeyRefProd, CVal> AssociationVector2ValueMap< KeyRefProd, CVal >::av_t [private] |
Definition at line 20 of file AssociationVector2ValueMap.h.
typedef av_t::CKey AssociationVector2ValueMap< KeyRefProd, CVal >::collection_t [private] |
Definition at line 23 of file AssociationVector2ValueMap.h.
typedef CVal::value_type AssociationVector2ValueMap< KeyRefProd, CVal >::value_t [private] |
Definition at line 21 of file AssociationVector2ValueMap.h.
typedef edm::ValueMap<value_t> AssociationVector2ValueMap< KeyRefProd, CVal >::vm_t [private] |
Definition at line 22 of file AssociationVector2ValueMap.h.
AssociationVector2ValueMap< KeyRefProd, CVal >::AssociationVector2ValueMap | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 35 of file AssociationVector2ValueMap.h.
: av_(cfg.template getParameter<edm::InputTag>("src")) { produces<vm_t>(); }
void AssociationVector2ValueMap< KeyRefProd, CVal >::produce | ( | edm::Event & | evt, |
const edm::EventSetup & | |||
) | [override, private, virtual] |
Implements edm::EDProducer.
Definition at line 41 of file AssociationVector2ValueMap.h.
References edm::helper::Filler< Map >::fill(), edm::Event::getByLabel(), i, edm::helper::Filler< Map >::insert(), edm::Event::put(), findQualityFiles::size, and makeHLTPrescaleTable::values.
{ using namespace edm; using namespace std; Handle<av_t> av; evt.getByLabel(av_, av); auto_ptr<vm_t> vm(new vm_t); typename vm_t::Filler filler(*vm); filler.fill(); size_t size = av->size(); vector<value_t> values; values.reserve(size); for(typename av_t::const_iterator i = av->begin(); i != av->end(); ++i) { values.push_back(i->second); } filler.insert(av->keyProduct(), values.begin(), values.end()); evt.put(vm); }
edm::InputTag AssociationVector2ValueMap< KeyRefProd, CVal >::av_ [private] |
Definition at line 25 of file AssociationVector2ValueMap.h.