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 T , typename Selector >
void fillCollectionForThinning (edmNew::DetSet< T > const &detset, Selector &selector, unsigned int &iIndex, edmNew::DetSetVector< T > &output, edm::ThinnedAssociation &association)
 
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

◆ det_id_type

typedef uint32_t edmNew::det_id_type

Definition at line 10 of file DetSetNew.h.

Function Documentation

◆ copy()

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.

32  {
33  dstvdetails::ToRM<B> torm(rm);
34  std::for_each(dstv.begin(), dstv.end(), torm);
35  }

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

◆ copyDetSetRange()

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.

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  }

References fwrapper::cs, FastTimerService_cff::range, EgammaValidation_Wenu_cff::sel, HcalDetIdTransform::transform(), and findQualityFiles::v.

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

◆ detsetRangeFromPair()

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.

13  {
14  return v.equal_range(p.first, p.second);
15  }

References AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::v.

Referenced by foreachDetSetObject().

◆ fillCollectionForThinning()

template<typename T , typename Selector >
void edmNew::fillCollectionForThinning ( edmNew::DetSet< T > const &  detset,
Selector selector,
unsigned int &  iIndex,
edmNew::DetSetVector< T > &  output,
edm::ThinnedAssociation association 
)

Definition at line 725 of file DetSetVectorNew.h.

729  {
731  for (auto iter = detset.begin(), end = detset.end(); iter != end; ++iter, ++iIndex) {
732  edm::detail::fillCollectionForThinning(*iter, selector, iIndex, ff, association);
733  }
734  if (detset.begin() != detset.end()) {
735  // need to decrease the global index by one because the outer loop will increase it
736  --iIndex;
737  }
738  }

References edmNew::DetSet< T >::begin(), edmNew::DetSet< T >::detId(), edmNew::DetSet< T >::end(), mps_fire::end, alignCSCRings::ff, edm::detail::fillCollectionForThinning(), and convertSQLitetoXML_cfg::output.

◆ foreachDetSetObject()

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.

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  }

References detsetRangeFromPair(), f, FastTimerService_cff::range, EgammaValidation_Wenu_cff::sel, and findQualityFiles::v.

◆ makeRefTo()

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 
)
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
Range
PixelRecoRange< float > Range
Definition: PixelTripletHLTGenerator.cc:31
edmNew::detsetRangeFromPair
DSTV::Range detsetRangeFromPair(DSTV const &v, std::pair< A, B > const &p)
Definition: DetSetAlgorithm.h:13
fwrapper::cs
unique_ptr< ClusterSequence > cs
Definition: fastjetfortran_madfks.cc:47
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
hgcal::association
std::tuple< layerClusterToCaloParticle, caloParticleToLayerCluster > association
Definition: LayerClusterAssociatorByEnergyScoreImpl.h:44
edm::detail::fillCollectionForThinning
void fillCollectionForThinning(Item const &item, Selector &selector, unsigned int iIndex, Collection &output, ThinnedAssociation &association)
Definition: ThinningProducer.h:43
findQualityFiles.v
v
Definition: findQualityFiles.py:179
edm::Ref
Definition: AssociativeIterator.h:58
edmNew::DetSet::end
iterator end()
Definition: DetSetNew.h:56
alignCSCRings.ff
ff
Definition: alignCSCRings.py:148
mps_fire.end
end
Definition: mps_fire.py:242
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition: HcalDetIdTransform.cc:7
submit.rm
rm
Definition: submit.py:77
value
Definition: value.py:1
edmNew::DetSet::begin
iterator begin()
Definition: DetSetNew.h:54
edmNew::DetSet::detId
id_type detId() const
Definition: DetSetNew.h:66
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
edmNew::DetSetVector::FastFiller
Definition: DetSetVectorNew.h:202
EgammaValidation_Wenu_cff.sel
sel
Definition: EgammaValidation_Wenu_cff.py:33