CMS 3D CMS Logo

Namespaces | Classes | Typedefs | Functions
edmNew Namespace Reference

Namespaces

 dslv
 
 dstvdetails
 

Classes

struct  CapacityExaustedException
 
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 10 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 32 of file DetSet2RangeMap.h.

References edmNew::DetSetVector< T >::begin(), edmNew::DetSetVector< T >::end(), and edmNew::dstvdetails::ToRM< B >::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 42 of file DetSetAlgorithm.h.

References fwrapper::cs, FastTimerService_cff::range, and HcalDetIdTransform::transform().

Referenced by HITrackingRegionForPrimaryVtxProducer::estimateMultiplicity(), LayerWithHits::LayerWithHits(), HIProtoTrackFilterProducer::produce(), CosmicLayerPairs::selectTECHit(), CosmicLayerPairs::selectTIBHit(), and CosmicLayerPairs::selectTOBHit().

42  {
43  typename DSTV::Range range = dstv.equal_range(sel.first, sel.second);
44  for (typename DSTV::const_iterator id = range.first; id != range.second; id++) {
45  size_t cs = v.size();
46  v.resize(cs + (*id).size());
47  std::transform((*id).begin(), (*id).end(), v.begin() + cs, dstvdetails::Pointer());
48  }
49  }
PixelRecoRange< float > Range
unique_ptr< ClusterSequence > cs
unsigned transform(const HcalDetId &id, unsigned transformCode)
template<typename DSTV , typename A , typename B >
DSTV::Range edmNew::detsetRangeFromPair ( DSTV const &  v,
std::pair< A, B > const &  p 
)

Definition at line 13 of file DetSetAlgorithm.h.

Referenced by foreachDetSetObject().

13  {
14  return v.equal_range(p.first, p.second);
15  }
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 20 of file DetSetAlgorithm.h.

References detsetRangeFromPair(), and FastTimerService_cff::range.

20  {
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)));
25  }
PixelRecoRange< float > Range
double f[11][100]
DSTV::Range detsetRangeFromPair(DSTV const &v, std::pair< A, B > const &p)
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 735 of file DetSetVectorNew.h.

Referenced by TkStripMeasurementDet::advance(), OuterTrackerMonitorTTCluster::analyze(), OuterTrackerMonitorTTStub::analyze(), TkStripMeasurementDet::hit(), TTClusterAssociator< T >::produce(), TTStubAssociator< T >::produce(), TTStubBuilder< T >::produce(), SiPixelClusterShapeCacheProducer::produce(), Phase2TrackerRecHits::produce(), ClusterTPAssociationProducer::produce(), cms::SiPixelRecHitConverter::produce(), and MTDTrackingRecHitProducer::run().

736  {
737  static_assert(std::is_same<typename HandleT::element_type,
738  DetSetVector<typename HandleT::element_type::value_type::value_type> >::value,
739  "Handle and DetSetVector do not have compatible types.");
740  auto index = itIter - &iHandle->data().front();
742  iHandle.id(), &(*itIter), index);
743  }
Definition: value.py:1