CMS 3D CMS Logo

Public Member Functions | Public Attributes

edmNew::dstvdetails::ToRM< B > Struct Template Reference

#include <DetSet2RangeMap.h>

List of all members.

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

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.

: rm(&irm){}

Member Function Documentation

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.

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.

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

Member Data Documentation

Definition at line 18 of file DetSet2RangeMap.h.

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