1 #ifndef UtilAlgos_StoreManagerTrait_h 2 #define UtilAlgos_StoreManagerTrait_h 15 #include "boost/static_assert.hpp" 16 #include "boost/type_traits.hpp" 20 template<
typename Collection>
21 struct IteratorToObjectConverter {
91 template<
typename OutputCollection,
97 selected_( new OutputCollection ) {
103 for(
I i = begin;
i !=
end; ++
i ) {
105 selected_->push_back( v );
109 return evt.
put(selected_);
111 size_t size()
const {
return selected_->size(); }
113 std::unique_ptr<collection> selected_;
116 template<
typename OutputCollection>
119 produces<OutputCollection>();
123 template<
typename OutputCollection>
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
static value_type convert(const I &i)
Collection::value_type value_type
edm::OrphanHandle< collection > put(edm::Event &evt)
void cloneAndStore(const I &begin, const I &end, edm::Event &)
CollectionStoreManager(const edm::Handle< C > &h)
static value_type convert(const I &i)
static value_type convert(const I &i)
ObjectSelectorBase(const edm::ParameterSet &cfg)
Container::value_type value_type
OutputCollection collection
ObjectSelectorBase< OutputCollection > base
const std::complex< double > I
def convert(infile, ofile)
std::unique_ptr< T > value_type
CollectionStoreManager< OutputCollection > type
static value_type convert(const I &i)
edm::RefVector< Container > RefVector
static value_type convert(const I &i)
edm::RefToBase< T > value_type