template<typename KeyRefProd, typename CVal, typename KeySelector = AnySelector, typename ValSelector = AnySelector>
class AssociationVectorSelector< KeyRefProd, CVal, KeySelector, ValSelector >
Definition at line 17 of file AssociationVectorSelector.h.
template<typename KeyRefProd , typename CVal , typename KeySelector , typename ValSelector >
Implements edm::EDProducer.
Definition at line 46 of file AssociationVectorSelector.h.
References clone(), edm::Event::getByLabel(), edm::Event::getRefBeforePut(), i, getGTfromDQMFile::obj, edm::Event::put(), and findQualityFiles::size.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
52 vector<typename CVal::value_type> selectedValues;
53 size_t size = association->size();
54 selected->reserve(
size);
55 selectedValues.reserve(
size);
57 i != association->end(); ++
i) {
62 selectedValues.push_back(
i->second);
68 auto_ptr<association_t> selectedAssociation(
new association_t(ref, selected.get()));
69 size = selected->size();
71 for(
size_t i = 0;
i !=
size; ++
i)
72 selectedAssociation->setValue(
i, selectedValues[
i]);
73 evt.
put(selectedAssociation);
transient_vector_type::const_iterator const_iterator
edm::InputTag association_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
association_t::CKey collection_t
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
RefProd< PROD > getRefBeforePut()
KeyRef::value_type key_type
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
edm::AssociationVector< KeyRefProd, CVal > association_t
tuple size
Write out results.