CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
edmNew::DetSetVector< T > Class Template Reference

#include <DetSetNew.h>

Inheritance diagram for edmNew::DetSetVector< T >:
edmNew::dstvdetails::DetSetVectorTrans

Classes

class  FastFiller
 
class  FindForDetSetVector
 
struct  IterHelp
 
class  TSFastFiller
 

Public Types

typedef std::vector< data_type >
::const_iterator 
const_DataIter
 
typedef IdContainer::const_iterator const_IdIter
 
typedef
boost::transform_iterator
< IterHelp, const_IdIter
const_iterator
 
typedef std::pair
< const_IdIter, const_DataIter
const_IterPair
 
typedef T data_type
 
typedef std::vector< data_typeDataContainer
 
typedef std::vector< data_type >
::iterator 
DataIter
 
typedef edmNew::DetSet< TDetSet
 
typedef dslv::LazyGetter< TGetter
 
typedef unsigned int id_type
 
typedef std::vector< ItemIdContainer
 
typedef IdContainer::iterator IdIter
 
typedef Trans::Item Item
 
typedef std::pair< IdIter,
DataIter
IterPair
 
typedef id_type key_type
 
typedef std::pair
< const_iterator,
const_iterator
Range
 
typedef
edm::refhelper::FindForNewDetSetVector
< data_type
RefFinder
 
typedef edmNew::DetSetVector< Tself
 
typedef unsigned int size_type
 
typedef
dstvdetails::DetSetVectorTrans 
Trans
 
typedef DetSet value_type
 

Public Member Functions

const_iterator begin (bool update=false) const
 
void clean ()
 
data_type const * data (size_t cell) const
 
DataContainer const & data () const
 
size_type dataSize () const
 
size_type detsetSize (size_t cell) const
 
 DetSetVector (int isubdet=0)
 
 DetSetVector (std::shared_ptr< dslv::LazyGetter< T >> iGetter, const std::vector< det_id_type > &iDets, int isubdet=0)
 
 DetSetVector (const DetSetVector &)=default
 
 DetSetVector (DetSetVector &&)=default
 
bool empty () const
 
const_iterator end (bool update=false) const
 
template<typename CMP >
Range equal_range (id_type i, CMP cmp, bool update=false) const
 
bool exists (id_type i) const
 
const_iterator find (id_type i, bool update=false) const
 
const_IdIter findItem (id_type i) const
 
id_type id (size_t cell) const
 
IdContainer const & ids () const
 
DetSet insert (id_type iid, data_type const *idata, size_type isize)
 
DetSet insert (id_type iid, size_type isize)
 
bool isValid (id_type i) const
 
Item const & item (size_t cell) const
 
bool onDemand () const
 
data_type operator() (size_t cell, size_t frame) const
 
DetSetVectoroperator= (const DetSetVector &)=delete
 
DetSetVectoroperator= (DetSetVector &&)=default
 
DetSet operator[] (id_type i) const
 
void pop_back (id_type iid)
 
Itempush_back (id_type iid)
 
void reserve (size_t isize, size_t dsize)
 
void resize (size_t isize, size_t dsize)
 
void shrink_to_fit ()
 
size_type size () const
 
int subdetId () const
 
void swap (DetSetVector &rh)
 
void swap (IdContainer &iic, DataContainer &idc)
 
 ~DetSetVector ()
 

Static Public Member Functions

static short Class_Version ()
 

Private Member Functions

ItemaddItem (id_type iid, size_type isize)
 
void update (Item const &item) const
 
- Private Member Functions inherited from edmNew::dstvdetails::DetSetVectorTrans
 DetSetVectorTrans ()
 
 DetSetVectorTrans (const DetSetVectorTrans &rh)
 
 DetSetVectorTrans (DetSetVectorTrans &&rh)
 
DetSetVectorTransoperator= (const DetSetVectorTrans &)=delete
 
DetSetVectorTransoperator= (DetSetVectorTrans &&rh)
 
bool ready () const
 
void swap (DetSetVectorTrans &rh)
 

Private Attributes

DataContainer m_data
 
std::vector< Trans::Itemm_ids
 
int m_subdetId
 
- Private Attributes inherited from edmNew::dstvdetails::DetSetVectorTrans
std::atomic< size_typem_dataSize
 
std::atomic< bool > m_filling
 
std::shared_ptr< void > m_getter
 

Friends

class ::TestDetSet
 
class edmNew::DetSet< T >
 
class FastFiller
 
class FindForDetSetVector
 
class TSFastFiller
 

Additional Inherited Members

- Private Types inherited from edmNew::dstvdetails::DetSetVectorTrans
typedef unsigned int id_type
 
typedef unsigned int size_type
 

Detailed Description

template<typename T>
class edmNew::DetSetVector< T >

an optitimized container that linearized a "map of vector". It corresponds to a set of variable size array of T each belonging to a "Det" identified by an 32bit id

FIXME interface to be finalized once use-cases fully identified

although it is sorted internally it is strongly adviced to fill it already sorted....

Definition at line 13 of file DetSetNew.h.

Member Typedef Documentation

template<typename T>
typedef std::vector<data_type>::const_iterator edmNew::DetSetVector< T >::const_DataIter

Definition at line 175 of file DetSetVectorNew.h.

template<typename T>
typedef IdContainer::const_iterator edmNew::DetSetVector< T >::const_IdIter

Definition at line 174 of file DetSetVectorNew.h.

template<typename T>
typedef boost::transform_iterator<IterHelp, const_IdIter> edmNew::DetSetVector< T >::const_iterator

Definition at line 197 of file DetSetVectorNew.h.

template<typename T>
typedef std::pair<const_IdIter, const_DataIter> edmNew::DetSetVector< T >::const_IterPair

Definition at line 176 of file DetSetVectorNew.h.

template<typename T>
typedef T edmNew::DetSetVector< T >::data_type

Definition at line 161 of file DetSetVectorNew.h.

template<typename T>
typedef std::vector<data_type> edmNew::DetSetVector< T >::DataContainer

Definition at line 170 of file DetSetVectorNew.h.

template<typename T>
typedef std::vector<data_type>::iterator edmNew::DetSetVector< T >::DataIter

Definition at line 172 of file DetSetVectorNew.h.

template<typename T>
typedef edmNew::DetSet<T> edmNew::DetSetVector< T >::DetSet

Definition at line 163 of file DetSetVectorNew.h.

template<typename T>
typedef dslv::LazyGetter<T> edmNew::DetSetVector< T >::Getter

Definition at line 164 of file DetSetVectorNew.h.

template<typename T>
typedef unsigned int edmNew::DetSetVector< T >::id_type

Definition at line 160 of file DetSetVectorNew.h.

template<typename T>
typedef std::vector<Item> edmNew::DetSetVector< T >::IdContainer

Definition at line 169 of file DetSetVectorNew.h.

template<typename T>
typedef IdContainer::iterator edmNew::DetSetVector< T >::IdIter

Definition at line 171 of file DetSetVectorNew.h.

template<typename T>
typedef Trans::Item edmNew::DetSetVector< T >::Item

Definition at line 158 of file DetSetVectorNew.h.

template<typename T>
typedef std::pair<IdIter, DataIter> edmNew::DetSetVector< T >::IterPair

Definition at line 173 of file DetSetVectorNew.h.

template<typename T>
typedef id_type edmNew::DetSetVector< T >::key_type

Definition at line 167 of file DetSetVectorNew.h.

template<typename T>
typedef std::pair<const_iterator, const_iterator> edmNew::DetSetVector< T >::Range

Definition at line 198 of file DetSetVectorNew.h.

Definition at line 178 of file DetSetVectorNew.h.

template<typename T>
typedef edmNew::DetSetVector<T> edmNew::DetSetVector< T >::self

Definition at line 162 of file DetSetVectorNew.h.

template<typename T>
typedef unsigned int edmNew::DetSetVector< T >::size_type

Definition at line 159 of file DetSetVectorNew.h.

template<typename T>
typedef dstvdetails::DetSetVectorTrans edmNew::DetSetVector< T >::Trans

Definition at line 157 of file DetSetVectorNew.h.

template<typename T>
typedef DetSet edmNew::DetSetVector< T >::value_type

Definition at line 166 of file DetSetVectorNew.h.

Constructor & Destructor Documentation

template<typename T>
edmNew::DetSetVector< T >::DetSetVector ( int  isubdet = 0)
inlineexplicit

Definition at line 412 of file DetSetVectorNew.h.

412 : m_subdetId(isubdet) {}
template<typename T>
edmNew::DetSetVector< T >::DetSetVector ( std::shared_ptr< dslv::LazyGetter< T >>  iGetter,
const std::vector< det_id_type > &  iDets,
int  isubdet = 0 
)
template<typename T>
edmNew::DetSetVector< T >::~DetSetVector ( )
inline

Definition at line 416 of file DetSetVectorNew.h.

416  {
417  // delete content if T is pointer...
418  }
template<typename T>
edmNew::DetSetVector< T >::DetSetVector ( const DetSetVector< T > &  )
default
template<typename T>
edmNew::DetSetVector< T >::DetSetVector ( DetSetVector< T > &&  )
default

Member Function Documentation

template<typename T>
Item& edmNew::DetSetVector< T >::addItem ( id_type  iid,
size_type  isize 
)
inlineprivate

Definition at line 498 of file DetSetVectorNew.h.

References edmNew::dstvdetails::errorIdExists(), cuda_std::lower_bound(), edmNew::DetSetVector< T >::m_data, edmNew::DetSetVector< T >::m_ids, eostools::move(), and AlCaHLTBitMon_ParallelJobs::p.

Referenced by edmNew::DetSetVector< T >::insert(), and edmNew::DetSetVector< T >::push_back().

498  {
499  Item it(iid, size_type(m_data.size()), isize);
500  IdIter p = std::lower_bound(m_ids.begin(), m_ids.end(), it);
501  if (p != m_ids.end() && !(it < *p))
503  return *m_ids.insert(p, std::move(it));
504  }
std::vector< Trans::Item > m_ids
IdContainer::iterator IdIter
def move
Definition: eostools.py:511
void errorIdExists(det_id_type iid)
__host__ __device__ constexpr RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
template<typename T>
const_iterator edmNew::DetSetVector< T >::begin ( bool  update = false) const
inline

Definition at line 545 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::m_ids, and edmNew::DetSetVector< T >::update().

Referenced by SiPixelPhase1TrackClustersV::analyze(), OuterTrackerMonitorTTCluster::analyze(), SiPixelTrackResidualSource::analyze(), OuterTrackerMonitorTTStub::analyze(), SiPixelHitEfficiencySource::analyze(), PixelLumiDQM::analyze(), FWPhase2TrackerCluster1DDetProxyBuilder::build(), FWSiPixelClusterDetProxyBuilder::build(), FWSiStripClusterProxyBuilder::build(), FWPhase2TrackerCluster1DProxyBuilder::build(), FWSiPixelClusterProxyBuilder::build(), HLTTrackClusterRemoverNew::cleanup(), HITrackClusterRemover::cleanup(), SiStripFineDelayHit::closestCluster(), edmNew::copy(), MultiplicityProducer< T >::detSetMultiplicity(), SiPixelClusterModule::fill(), NearbyPixelClustersAnalyzer::fillClusterFrames(), SiStripCommissioningSource::fillHistos(), ClusterMultiplicityFilter::filter(), NearbyPixelClustersProducer::findAllNearbyClusters(), NearbyPixelClustersAnalyzer::findClosestCluster(), SiPixelClusterSource::getrococcupancye(), HLTPixelActivityFilter::hltFilter(), ShallowSimhitClustersProducer::match_cluster(), SiStripClusterToDigiProducer::process(), ShallowClustersProducer::produce(), JetCoreClusterSplitter::produce(), reco::CentralityProducer::produce(), ClusterSummaryProducer::produce(), tadqm::TrackAnalyzer::setLumi(), ClusterChecker::tooManyClusters(), MeasurementTrackerEventProducer::updatePhase2OT(), and MeasurementTrackerEventProducer::updatePixels().

545  {
546  return boost::make_transform_iterator(m_ids.begin(), IterHelp(*this, update));
547  }
void update(Item const &item) const
std::vector< Trans::Item > m_ids
template<typename T>
static short edmNew::DetSetVector< T >::Class_Version ( )
inlinestatic

Definition at line 589 of file DetSetVectorNew.h.

591 :
592  //for testing
template<typename T>
void edmNew::DetSetVector< T >::clean ( )
inline

Definition at line 461 of file DetSetVectorNew.h.

References visualization-live-secondInstance_cfg::m, and edmNew::DetSetVector< T >::m_ids.

Referenced by edmNew::DetSetVector< T >::shrink_to_fit().

461  {
462  m_ids.erase(std::remove_if(m_ids.begin(), m_ids.end(), [](Item const& m) { return 0 == m.size; }), m_ids.end());
463  }
std::vector< Trans::Item > m_ids
template<typename T>
data_type const* edmNew::DetSetVector< T >::data ( size_t  cell) const
inline
template<typename T>
DataContainer const& edmNew::DetSetVector< T >::data ( ) const
inline

Definition at line 586 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::m_data.

586 { return m_data; }
template<typename T>
size_type edmNew::DetSetVector< T >::dataSize ( ) const
inline
template<typename T>
size_type edmNew::DetSetVector< T >::detsetSize ( size_t  cell) const
inline

Definition at line 577 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::m_ids.

577 { return m_ids[cell].size; }
std::vector< Trans::Item > m_ids
template<typename T>
bool edmNew::DetSetVector< T >::empty ( ) const
inline
template<typename T>
const_iterator edmNew::DetSetVector< T >::end ( bool  update = false) const
inline

Definition at line 550 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::m_ids, and edmNew::DetSetVector< T >::update().

Referenced by fireworks::addSiStripClusters(), SiPixelPhase1TrackClustersV::analyze(), OuterTrackerMonitorTTCluster::analyze(), SiPixelTrackResidualSource::analyze(), OuterTrackerMonitorTTStub::analyze(), SiPixelHitEfficiencySource::analyze(), PixelLumiDQM::analyze(), FWPhase2TrackerCluster1DDetProxyBuilder::build(), FWSiPixelClusterDetProxyBuilder::build(), FWSiStripClusterProxyBuilder::build(), FWPhase2TrackerCluster1DProxyBuilder::build(), FWSiPixelClusterProxyBuilder::build(), HLTTrackClusterRemoverNew::cleanup(), HITrackClusterRemover::cleanup(), SiStripFineDelayHit::closestCluster(), edmNew::copy(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), MultiplicityProducer< T >::detSetMultiplicity(), SiPixelClusterModule::fill(), NearbyPixelClustersAnalyzer::fillClusterFrames(), SiStripCommissioningSource::fillHistos(), ClusterMultiplicityFilter::filter(), edmNew::DetSetVector< T >::find(), NearbyPixelClustersProducer::findAllNearbyClusters(), NearbyPixelClustersAnalyzer::findClosestCluster(), SiPixelClusterSource::getrococcupancye(), HLTPixelActivityFilter::hltFilter(), ShallowSimhitClustersProducer::match_cluster(), SiStripClusterToDigiProducer::process(), ShallowClustersProducer::produce(), JetCoreClusterSplitter::produce(), TopBottomClusterInfoProducer::produce(), reco::CentralityProducer::produce(), ClusterSummaryProducer::produce(), fireworks::pushNearbyPixelHits(), tadqm::TrackAnalyzer::setLumi(), ClusterChecker::tooManyClusters(), MeasurementTrackerEventProducer::updatePhase2OT(), and MeasurementTrackerEventProducer::updatePixels().

550  {
551  return boost::make_transform_iterator(m_ids.end(), IterHelp(*this, update));
552  }
void update(Item const &item) const
std::vector< Trans::Item > m_ids
template<typename T>
template<typename CMP >
Range edmNew::DetSetVector< T >::equal_range ( id_type  i,
CMP  cmp,
bool  update = false 
) const
inline

Definition at line 557 of file DetSetVectorNew.h.

References mps_fire::i, edmNew::DetSetVector< T >::m_ids, AlCaHLTBitMon_ParallelJobs::p, and edmNew::DetSetVector< T >::update().

557  {
558  std::pair<const_IdIter, const_IdIter> p = std::equal_range(m_ids.begin(), m_ids.end(), i, cmp);
559  return Range(boost::make_transform_iterator(p.first, IterHelp(*this, update)),
560  boost::make_transform_iterator(p.second, IterHelp(*this, update)));
561  }
void update(Item const &item) const
std::pair< const_iterator, const_iterator > Range
std::vector< Trans::Item > m_ids
template<typename T>
bool edmNew::DetSetVector< T >::exists ( id_type  i) const
inline

Definition at line 509 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::findItem(), and edmNew::DetSetVector< T >::m_ids.

509 { return findItem(i) != m_ids.end(); }
const_IdIter findItem(id_type i) const
std::vector< Trans::Item > m_ids
template<typename T>
const_iterator edmNew::DetSetVector< T >::find ( id_type  i,
bool  update = false 
) const
inline
template<typename T>
const_IdIter edmNew::DetSetVector< T >::findItem ( id_type  i) const
inline

Definition at line 539 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::m_ids, and AlCaHLTBitMon_ParallelJobs::p.

Referenced by edmNew::DetSetVector< T >::exists(), edmNew::DetSetVector< T >::find(), edmNew::DetSetVector< T >::isValid(), edmNew::DetSetVector< T >::operator[](), and edmNew::DetSetVector< T >::pop_back().

539  {
540  std::pair<const_IdIter, const_IdIter> p = std::equal_range(m_ids.begin(), m_ids.end(), Item(i));
541  return (p.first != p.second) ? p.first : m_ids.end();
542  }
std::vector< Trans::Item > m_ids
template<typename T>
id_type edmNew::DetSetVector< T >::id ( size_t  cell) const
inline
template<typename T>
IdContainer const& edmNew::DetSetVector< T >::ids ( ) const
inline

Definition at line 585 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::m_ids.

585 { return m_ids; }
std::vector< Trans::Item > m_ids
template<typename T>
DetSet edmNew::DetSetVector< T >::insert ( id_type  iid,
data_type const *  idata,
size_type  isize 
)
inline
template<typename T>
DetSet edmNew::DetSetVector< T >::insert ( id_type  iid,
size_type  isize 
)
inline

Definition at line 474 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::addItem(), edmNew::DetSetVector< T >::item(), edmNew::DetSetVector< T >::m_data, and edmNew::dstvdetails::DetSetVectorTrans::m_dataSize.

Referenced by BeautifulSoup.PageElement::_invert(), and SequenceTypes.Schedule::_replaceIfHeldDirectly().

474  {
475  Item& item = addItem(iid, isize);
476  m_data.resize(m_data.size() + isize);
477  m_dataSize = m_data.size();
478  return DetSet(*this, item, false);
479  }
Item const & item(size_t cell) const
Item & addItem(id_type iid, size_type isize)
std::atomic< size_type > m_dataSize
edmNew::DetSet< T > DetSet
template<typename T>
bool edmNew::DetSetVector< T >::isValid ( id_type  i) const
inline

Definition at line 511 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::findItem(), edmNew::DetSetVector< T >::m_ids, and AlCaHLTBitMon_ParallelJobs::p.

Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().

511  {
513  return p != m_ids.end() && (*p).isValid();
514  }
const_IdIter findItem(id_type i) const
std::vector< Trans::Item > m_ids
IdContainer::const_iterator const_IdIter
template<typename T>
Item const& edmNew::DetSetVector< T >::item ( size_t  cell) const
inline

Definition at line 581 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::m_ids.

Referenced by edmNew::DetSetVector< T >::insert(), and edmNew::DetSetVector< T >::FindForDetSetVector::operator()().

581 { return m_ids[cell]; }
std::vector< Trans::Item > m_ids
template<typename T>
bool edmNew::DetSetVector< T >::onDemand ( ) const
inline

Definition at line 430 of file DetSetVectorNew.h.

References edmNew::dstvdetails::DetSetVectorTrans::m_getter.

Referenced by edmNew::DetSetVector< T >::dataSize().

430 { return static_cast<bool>(m_getter); }
template<typename T>
data_type edmNew::DetSetVector< T >::operator() ( size_t  cell,
size_t  frame 
) const
inline

Definition at line 573 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::m_data, and edmNew::DetSetVector< T >::m_ids.

573 { return m_data[m_ids[cell].offset + frame]; }
std::vector< Trans::Item > m_ids
template<typename T>
DetSetVector& edmNew::DetSetVector< T >::operator= ( const DetSetVector< T > &  )
delete
template<typename T>
DetSetVector& edmNew::DetSetVector< T >::operator= ( DetSetVector< T > &&  )
default
template<typename T>
DetSet edmNew::DetSetVector< T >::operator[] ( id_type  i) const
inline

Definition at line 524 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::findItem(), edmNew::DetSetVector< T >::m_ids, AlCaHLTBitMon_ParallelJobs::p, and edmNew::dstvdetails::throw_range().

524  {
526  if (p == m_ids.end())
528  return DetSet(*this, *p, true);
529  }
const_IdIter findItem(id_type i) const
std::vector< Trans::Item > m_ids
void throw_range(det_id_type iid)
IdContainer::const_iterator const_IdIter
edmNew::DetSet< T > DetSet
template<typename T>
void edmNew::DetSetVector< T >::pop_back ( id_type  iid)
inline

Definition at line 485 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::findItem(), edmNew::DetSetVector< T >::m_data, edmNew::dstvdetails::DetSetVectorTrans::m_dataSize, edmNew::DetSetVector< T >::m_ids, and AlCaHLTBitMon_ParallelJobs::p.

485  {
486  const_IdIter p = findItem(iid);
487  if (p == m_ids.end())
488  return; //bha!
489  // sanity checks... (shall we throw or assert?)
490  if ((*p).isValid() && (*p).size > 0 && m_data.size() == (*p).offset + (*p).size) {
491  m_data.resize((*p).offset);
492  m_dataSize = m_data.size();
493  }
494  m_ids.erase(m_ids.begin() + (p - m_ids.begin()));
495  }
const_IdIter findItem(id_type i) const
std::vector< Trans::Item > m_ids
std::atomic< size_type > m_dataSize
IdContainer::const_iterator const_IdIter
template<typename T>
Item& edmNew::DetSetVector< T >::push_back ( id_type  iid)
inline

Definition at line 482 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::addItem().

Referenced by TTClusterBuilder< T >::produce(), and TTStubBuilder< T >::updateStubs().

482 { return addItem(iid, 0); }
Item & addItem(id_type iid, size_type isize)
template<typename T>
void edmNew::DetSetVector< T >::reserve ( size_t  isize,
size_t  dsize 
)
inline

Definition at line 444 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::m_data, and edmNew::DetSetVector< T >::m_ids.

444  {
445  m_ids.reserve(isize);
446  m_data.reserve(dsize);
447  }
std::vector< Trans::Item > m_ids
template<typename T>
void edmNew::DetSetVector< T >::resize ( size_t  isize,
size_t  dsize 
)
inline

Definition at line 455 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::m_data, edmNew::dstvdetails::DetSetVectorTrans::m_dataSize, and edmNew::DetSetVector< T >::m_ids.

455  {
456  m_ids.resize(isize);
457  m_data.resize(dsize);
458  m_dataSize = m_data.size();
459  }
std::vector< Trans::Item > m_ids
std::atomic< size_type > m_dataSize
template<typename T>
void edmNew::DetSetVector< T >::shrink_to_fit ( )
inline

Definition at line 449 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::clean(), edmNew::DetSetVector< T >::m_data, and edmNew::DetSetVector< T >::m_ids.

Referenced by cms::SiPixelRecHitConverter::produce().

449  {
450  clean();
451  m_ids.shrink_to_fit();
452  m_data.shrink_to_fit();
453  }
std::vector< Trans::Item > m_ids
template<typename T>
size_type edmNew::DetSetVector< T >::size ( void  ) const
inline
template<typename T>
int edmNew::DetSetVector< T >::subdetId ( ) const
inline

Definition at line 563 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::m_subdetId.

563 { return m_subdetId; }
template<typename T>
void edmNew::DetSetVector< T >::swap ( DetSetVector< T > &  rh)
inline

Definition at line 432 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::m_data, edmNew::DetSetVector< T >::m_ids, edmNew::DetSetVector< T >::m_subdetId, edm::swap(), and std::swap().

Referenced by SiPixelClusterProducer::run().

432  {
434  std::swap(m_subdetId, rh.m_subdetId);
435  std::swap(m_ids, rh.m_ids);
436  std::swap(m_data, rh.m_data);
437  }
std::vector< Trans::Item > m_ids
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:117
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
template<typename T>
void edmNew::DetSetVector< T >::swap ( IdContainer iic,
DataContainer idc 
)
inline

Definition at line 439 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::m_data, edmNew::DetSetVector< T >::m_ids, and std::swap().

439  {
440  std::swap(m_ids, iic);
441  std::swap(m_data, idc);
442  }
std::vector< Trans::Item > m_ids
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
template<typename T >
void edmNew::DetSetVector< T >::update ( Item const &  item) const
inlineprivate

Definition at line 635 of file DetSetVectorNew.h.

References cms::cuda::assert(), alignCSCRings::ff, PVValHelper::fill(), edmNew::dstvdetails::DetSetVectorTrans::Item::initialize(), edmNew::dstvdetails::DetSetVectorTrans::Item::initializing(), and edmNew::dstvdetails::DetSetVectorTrans::Item::isValid().

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), edmNew::DetSetVector< T >::begin(), edmNew::DetSetVector< T >::end(), edmNew::DetSetVector< T >::equal_range(), edmNew::DetSetVector< T >::find(), dqm-mbProfile.Profile::finish(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().

635  {
636  // no m_getter or already updated
637  if (!m_getter) {
638  assert(item.isValid());
639  return;
640  }
641  if (item.initialize()) {
643  {
644  TSFastFiller ff(*this, item);
645  static_cast<Getter*>(m_getter.get())->fill(ff);
646  }
647  assert(item.isValid());
648  }
649  }
friend class TSFastFiller
assert(be >=bs)
Item const & item(size_t cell) const
dslv::LazyGetter< T > Getter
void fill(std::map< std::string, TH1 * > &h, const std::string &s, double x)

Friends And Related Function Documentation

template<typename T>
friend class ::TestDetSet
friend

Definition at line 593 of file DetSetVectorNew.h.

template<typename T>
friend class edmNew::DetSet< T >
friend

Definition at line 390 of file DetSetVectorNew.h.

template<typename T>
friend class FastFiller
friend

Definition at line 388 of file DetSetVectorNew.h.

template<typename T>
friend class FindForDetSetVector
friend

Definition at line 410 of file DetSetVectorNew.h.

template<typename T>
friend class TSFastFiller
friend

Definition at line 389 of file DetSetVectorNew.h.

Member Data Documentation

template<typename T>
DataContainer edmNew::DetSetVector< T >::m_data
mutableprivate
template<typename T>
std::vector<Trans::Item> edmNew::DetSetVector< T >::m_ids
private
template<typename T>
int edmNew::DetSetVector< T >::m_subdetId
private