CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edmNew::dstvdetails::ToRM< B > Struct Template Reference

#include <DetSet2RangeMap.h>

Public Member Functions

template<typename T >
void operator() (edmNew::DetSet< T > const &ds)
 
 ToRM (edm::RangeMap< det_id_type, edm::OwnVector< B > > &irm)
 

Public Attributes

edm::RangeMap< det_id_type, edm::OwnVector< B > > * rm
 

Detailed Description

template<typename B>
struct edmNew::dstvdetails::ToRM< B >

Definition at line 16 of file DetSet2RangeMap.h.

Constructor & Destructor Documentation

◆ ToRM()

template<typename B>
edmNew::dstvdetails::ToRM< B >::ToRM ( edm::RangeMap< det_id_type, edm::OwnVector< B > > &  irm)
inline

Definition at line 17 of file DetSet2RangeMap.h.

17 : rm(&irm) {}

Member Function Documentation

◆ operator()()

template<typename B>
template<typename T >
void edmNew::dstvdetails::ToRM< B >::operator() ( edmNew::DetSet< T > const &  ds)
inline

Definition at line 20 of file DetSet2RangeMap.h.

20  {
21  // make it easy
22  // std::vector<T const *> v(ds.size());
23  //std::transform(ds.begin(),ds.end(),v.begin(),dstvdetails::Pointer());
24  if (!ds.empty())
25  rm->put(ds.id(), ds.begin(), ds.end());
26  }

References edmNew::DetSet< T >::begin(), edmNew::DetSet< T >::empty(), edmNew::DetSet< T >::end(), edmNew::DetSet< T >::id(), edm::RangeMap< ID, C, P >::put(), and edmNew::dstvdetails::ToRM< B >::rm.

Member Data Documentation

◆ rm

template<typename B>
edm::RangeMap<det_id_type, edm::OwnVector<B> >* edmNew::dstvdetails::ToRM< B >::rm

Definition at line 18 of file DetSet2RangeMap.h.

Referenced by edmNew::dstvdetails::ToRM< B >::operator()().

edm::RangeMap::put
void put(ID id, CI begin, CI end)
insert an object range with specified identifier
Definition: RangeMap.h:111
edmNew::DetSet::end
iterator end()
Definition: DetSetNew.h:56
edmNew::DetSet::id
id_type id() const
Definition: DetSetNew.h:64
edmNew::DetSet::begin
iterator begin()
Definition: DetSetNew.h:54
edmNew::dstvdetails::ToRM::rm
edm::RangeMap< det_id_type, edm::OwnVector< B > > * rm
Definition: DetSet2RangeMap.h:18
edmNew::DetSet::empty
bool empty() const
Definition: DetSetNew.h:70