CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Classes | Typedefs | Functions
edmNew Namespace Reference

Namespaces

 dslv
 
 dstvdetails
 

Classes

class  DetSet
 
class  DetSetVector
 

Typedefs

typedef unsigned int det_id_type
 

Functions

template<typename T , typename B >
void copy (DetSetVector< T > const &dstv, edm::RangeMap< det_id_type, edm::OwnVector< B > > &rm)
 
template<typename DSTV , typename A , typename B , typename T >
void copyDetSetRange (DSTV const &dstv, std::vector< T const * > &v, std::pair< A, B > const &sel)
 
template<typename DSTV , typename A , typename B >
DSTV::Range detsetRangeFromPair (DSTV const &v, std::pair< A, B > const &p)
 
template<typename DSTV , typename A , typename B , typename F >
void foreachDetSetObject (DSTV const &v, std::pair< A, B > const &sel, F &f)
 
template<class HandleT >
edm::Ref< typename
HandleT::element_type,
typename
HandleT::element_type::value_type::value_type > 
makeRefTo (const HandleT &iHandle, typename HandleT::element_type::value_type::const_iterator itIter)
 

Typedef Documentation

typedef uint32_t edmNew::det_id_type

Definition at line 6 of file DetSetNew.h.

Function Documentation

template<typename T , typename B >
void edmNew::copy ( DetSetVector< T > const &  dstv,
edm::RangeMap< det_id_type, edm::OwnVector< B > > &  rm 
)

Definition at line 31 of file DetSet2RangeMap.h.

References edmNew::DetSetVector< T >::begin(), edmNew::DetSetVector< T >::end(), and submit::rm.

32  {
33  dstvdetails::ToRM<B> torm(rm);
34  std::for_each(dstv.begin(), dstv.end(), torm);
35  }
template<typename DSTV , typename A , typename B , typename T >
void edmNew::copyDetSetRange ( DSTV const &  dstv,
std::vector< T const * > &  v,
std::pair< A, B > const &  sel 
)

Definition at line 43 of file DetSetAlgorithm.h.

References fwrapper::cs, and create_public_pileup_plots::transform.

Referenced by HITrackingRegionForPrimaryVtxProducer::estimateMultiplicity(), LayerWithHits::LayerWithHits(), CosmicLayerPairs::selectTECHit(), CosmicLayerPairs::selectTIBHit(), CosmicLayerPairs::selectTOBHit(), and HIProtoTrackFilter::update().

45  {
46  typename DSTV::Range range = dstv.equal_range(sel.first,sel.second);
47  for(typename DSTV::const_iterator id=range.first; id!=range.second; id++){
48  size_t cs = v.size();
49  v.resize(cs+(*id).size());
50  std::transform((*id).begin(), (*id).end(),v.begin()+cs,dstvdetails::Pointer());
51  }
52  }
auto_ptr< ClusterSequence > cs
PixelRecoRange< float > Range
mathSSE::Vec4< T > v
template<typename DSTV , typename A , typename B >
DSTV::Range edmNew::detsetRangeFromPair ( DSTV const &  v,
std::pair< A, B > const &  p 
)

Definition at line 14 of file DetSetAlgorithm.h.

Referenced by foreachDetSetObject().

14  {
15  return v.equal_range(p.first,p.second);
16  }
mathSSE::Vec4< T > v
template<typename DSTV , typename A , typename B , typename F >
void edmNew::foreachDetSetObject ( DSTV const &  v,
std::pair< A, B > const &  sel,
F f 
)

Definition at line 22 of file DetSetAlgorithm.h.

References detsetRangeFromPair().

22  {
23  typedef typename DSTV::data_type data_type;
24  typename DSTV::Range range = detsetRangeFromPair(v,sel);
25  for(typename DSTV::const_iterator id=range.first; id!=range.second; id++)
26  std::for_each((*id).begin(), (*id).end(),
27  boost::function<void(const data_type &)>(boost::ref(f)));
28  }
double f[11][100]
PixelRecoRange< float > Range
DSTV::Range detsetRangeFromPair(DSTV const &v, std::pair< A, B > const &p)
mathSSE::Vec4< T > v
template<class HandleT >
edm::Ref<typename HandleT::element_type, typename HandleT::element_type::value_type::value_type> edmNew::makeRefTo ( const HandleT &  iHandle,
typename HandleT::element_type::value_type::const_iterator  itIter 
)

Definition at line 473 of file DetSetVectorNew.h.

References getHLTprescales::index.

Referenced by TkStripMeasurementDet::fastMeasurements(), TkPixelMeasurementDet::recHits(), TkStripMeasurementDet::recHits(), SiStripRecHitConverterAlgorithm::run(), cms::SiPixelRecHitConverter::run(), and TkStripMeasurementDet::simpleRecHits().

474  {
475  BOOST_MPL_ASSERT((boost::is_same<typename HandleT::element_type, DetSetVector<typename HandleT::element_type::value_type::value_type> >));
476  typename HandleT::element_type::size_type index = (itIter - &*iHandle->data().begin());
477  return edm::Ref<typename HandleT::element_type,
479  (iHandle,index);
480  }
uint16_t size_type
Container::value_type value_type