Go to the documentation of this file. 1 #ifndef DataFormats_Common_DetSetAlgorithm_h
2 #define DataFormats_Common_DetSetAlgorithm_h
12 template <
typename DSTV,
typename A,
typename B>
14 return v.equal_range(
p.first,
p.second);
19 template <
typename DSTV,
typename A,
typename B,
typename F>
21 typedef typename DSTV::data_type data_type;
23 for (
typename DSTV::const_iterator
id =
range.first;
id !=
range.second;
id++)
24 std::for_each((*id).begin(), (*id).end(), std::function<void(const data_type &)>(std::ref(
f)));
27 namespace dstvdetails {
41 template <
typename DSTV,
typename A,
typename B,
typename T>
44 for (
typename DSTV::const_iterator
id =
range.first;
id !=
range.second;
id++) {
46 v.resize(
cs + (*id).size());
52 #endif // DataFormats_Common_DetSetAlgorithm_h
PixelRecoRange< float > Range
DSTV::Range detsetRangeFromPair(DSTV const &v, std::pair< A, B > const &p)
unique_ptr< ClusterSequence > cs
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
void copyDetSetRange(DSTV const &dstv, std::vector< T const * > &v, std::pair< A, B > const &sel)
const H * operator()(H const &h) const
void foreachDetSetObject(DSTV const &v, std::pair< A, B > const &sel, F &f)