1 #ifndef DataFormats_Common_FillView_h
2 #define DataFormats_Common_FillView_h
26 template <
class COLLECTION>
30 std::vector<void const*>& ptrs,
33 typedef COLLECTION product_type;
35 typedef typename product_type::const_iterator iter;
38 ptrs.reserve(ptrs.size() + coll.size());
39 helpers.reserve(ptrs.size() + coll.size());
41 for (iter
i = coll.begin(),
e = coll.end();
i!=
e; ++
i, ++
key) {
43 ptrs.push_back(address);
44 helpers.emplace_back(
id,key);
48 template <
class COLLECTION>
52 std::vector<void const*>& ptrs,
56 template <
class T,
class A>
60 std::vector<void const*>& ptrs,
66 template <
class T,
class A>
70 std::vector<void const*>& ptrs,
76 template <
class T,
class A>
80 std::vector<void const*>& ptrs,
86 template <
class T,
class A,
class Comp>
90 std::vector<void const*>& ptrs,
static const element_type * address(const iter &i)
void reallyFillView(COLLECTION const &coll, ProductID const &id, std::vector< void const * > &ptrs, FillViewHelperVector &helpers)
COLLECTION::value_type element_type
void fillView(AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper > const &obj, ProductID const &id, std::vector< void const * > &pointers, FillViewHelperVector &helpers)
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector