CMS 3D CMS Logo

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_IdIterconst_iterator
 
typedef std::pair< const_IdIter, const_DataIterconst_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, DataIterIterPair
 
typedef id_type key_type
 
typedef std::pair< const_iterator, const_iteratorRange
 
typedef edm::refhelper::FindForNewDetSetVector< data_typeRefFinder
 
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
 
boost::any 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 209 of file DetSetVectorNew.h.

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

Definition at line 208 of file DetSetVectorNew.h.

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

Definition at line 231 of file DetSetVectorNew.h.

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

Definition at line 210 of file DetSetVectorNew.h.

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

Definition at line 195 of file DetSetVectorNew.h.

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

Definition at line 204 of file DetSetVectorNew.h.

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

Definition at line 206 of file DetSetVectorNew.h.

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

Definition at line 197 of file DetSetVectorNew.h.

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

Definition at line 198 of file DetSetVectorNew.h.

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

Definition at line 194 of file DetSetVectorNew.h.

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

Definition at line 203 of file DetSetVectorNew.h.

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

Definition at line 205 of file DetSetVectorNew.h.

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

Definition at line 192 of file DetSetVectorNew.h.

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

Definition at line 207 of file DetSetVectorNew.h.

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

Definition at line 201 of file DetSetVectorNew.h.

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

Definition at line 232 of file DetSetVectorNew.h.

Definition at line 212 of file DetSetVectorNew.h.

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

Definition at line 196 of file DetSetVectorNew.h.

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

Definition at line 193 of file DetSetVectorNew.h.

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

Definition at line 191 of file DetSetVectorNew.h.

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

Definition at line 200 of file DetSetVectorNew.h.

Constructor & Destructor Documentation

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

Definition at line 439 of file DetSetVectorNew.h.

439 : 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 443 of file DetSetVectorNew.h.

443  {
444  // delete content if T is pointer...
445  }
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 525 of file DetSetVectorNew.h.

References edmNew::dstvdetails::errorIdExists(), eostools::move(), and AlCaHLTBitMon_ParallelJobs::p.

525  {
526  Item it(iid, size_type(m_data.size()), isize);
527  IdIter p = std::lower_bound(m_ids.begin(), m_ids.end(), it);
528  if (p != m_ids.end() && !(it < *p))
530  return *m_ids.insert(p, std::move(it));
531  }
std::vector< Trans::Item > m_ids
IdContainer::iterator IdIter
void errorIdExists(det_id_type iid)
def move(src, dest)
Definition: eostools.py:511
template<typename T>
const_iterator edmNew::DetSetVector< T >::begin ( bool  update = false) const
inline

Definition at line 572 of file DetSetVectorNew.h.

References update.

Referenced by OuterTrackerMonitorTTCluster::analyze(), OuterTrackerMonitorTTStub::analyze(), SiPixelPhase1TrackClustersV::analyze(), SiPixelPhase1RecHitsV::analyze(), SiPixelHitEfficiencySource::analyze(), SiPixelTrackResidualSource::analyze(), HitEff::analyze(), PixelLumiDQM::analyze(), FWPhase2TrackerCluster1DDetProxyBuilder::build(), FWSiPixelClusterDetProxyBuilder::build(), FWSiStripClusterProxyBuilder::build(), FWPhase2TrackerCluster1DProxyBuilder::build(), FWSiPixelClusterProxyBuilder::build(), HLTTrackClusterRemoverNew::cleanup(), HITrackClusterRemover::cleanup(), SiStripFineDelayHit::closestCluster(), edmNew::copy(), MultiplicityProducer< T >::detSetMultiplicity(), HITrackingRegionProducer::estimateMultiplicity(), SiPixelClusterModule::fill(), SiStripCommissioningSource::fillHistos(), TrackingNtuple::fillPhase2OTHits(), TrackingNtuple::fillPixelHits(), TrackingNtuple::fillStripMatchedHits(), ClusterMultiplicityFilter::filter(), SiPixelClusterSource::getrococcupancye(), Vx3DHLTAnalyzer::HitCounter(), HLTPixelActivityFilter::hltFilter(), ShallowSimhitClustersProducer::match_cluster(), SiStripClusterToDigiProducer::process(), TTStubBuilder< T >::produce(), ShallowClustersProducer::produce(), JetCoreClusterSplitter::produce(), PixelClusterSelectorTopBottom::produce(), reco::CentralityProducer::produce(), FastPrimaryVertexWithWeightsProducer::produce(), ClusterSummaryProducer::produce(), cms::SiPixelRecHitConverter::produce(), FastPrimaryVertexProducer::produce(), MTDTrackingRecHitProducer::run(), TrackAnalyzer::setLumi(), ClusterChecker::tooManyClusters(), MeasurementTrackerEventProducer::updatePhase2OT(), and MeasurementTrackerEventProducer::updatePixels().

572  {
573  return boost::make_transform_iterator(m_ids.begin(), IterHelp(*this, update));
574  }
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 616 of file DetSetVectorNew.h.

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

Definition at line 488 of file DetSetVectorNew.h.

References visualization-live-secondInstance_cfg::m.

488  {
489  m_ids.erase(std::remove_if(m_ids.begin(), m_ids.end(), [](Item const& m) { return 0 == m.size; }), m_ids.end());
490  }
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 613 of file DetSetVectorNew.h.

613 { 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 604 of file DetSetVectorNew.h.

604 { 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 577 of file DetSetVectorNew.h.

References update.

Referenced by fireworks::addSiStripClusters(), OuterTrackerMonitorTTStub::analyze(), OuterTrackerMonitorTTCluster::analyze(), SiPixelPhase1TrackClustersV::analyze(), SiPixelPhase1RecHitsV::analyze(), SiPixelRecHitsValid::analyze(), SiPixelHitEfficiencySource::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelRecHitSource::analyze(), PixelLumiDQM::analyze(), HitEff::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::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(), HITrackingRegionProducer::estimateMultiplicity(), SiPixelClusterModule::fill(), SiStripCommissioningSource::fillHistos(), TrackingNtuple::fillPhase2OTHits(), TrackingNtuple::fillPixelHits(), TrackingNtuple::fillStripMatchedHits(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), ClusterMultiplicityFilter::filter(), SiPixelClusterSource::getrococcupancye(), Vx3DHLTAnalyzer::HitCounter(), HLTPixelActivityFilter::hltFilter(), ShallowSimhitClustersProducer::match_cluster(), SiStripClusterToDigiProducer::process(), TTStubBuilder< T >::produce(), ShallowClustersProducer::produce(), JetCoreClusterSplitter::produce(), TopBottomClusterInfoProducer::produce(), PixelClusterSelectorTopBottom::produce(), ConvBremSeedProducer::produce(), reco::CentralityProducer::produce(), FastPrimaryVertexWithWeightsProducer::produce(), ClusterSummaryProducer::produce(), cms::SiPixelRecHitConverter::produce(), FastPrimaryVertexProducer::produce(), fireworks::pushNearbyPixelHits(), MTDTrackingRecHitProducer::run(), TrackAnalyzer::setLumi(), ClusterChecker::tooManyClusters(), MeasurementTrackerEventProducer::updatePhase2OT(), and MeasurementTrackerEventProducer::updatePixels().

577  {
578  return boost::make_transform_iterator(m_ids.end(), IterHelp(*this, update));
579  }
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 584 of file DetSetVectorNew.h.

References fileCollector::cmp, mps_fire::i, AlCaHLTBitMon_ParallelJobs::p, and update.

Referenced by ctfseeding::HitExtractorSTRP::hits(), and TrackExtenderWithMTDT< TrackCollection >::produce().

584  {
585  std::pair<const_IdIter, const_IdIter> p = std::equal_range(m_ids.begin(), m_ids.end(), i, cmp);
586  return Range(boost::make_transform_iterator(p.first, IterHelp(*this, update)),
587  boost::make_transform_iterator(p.second, IterHelp(*this, update)));
588  }
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 536 of file DetSetVectorNew.h.

536 { 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 566 of file DetSetVectorNew.h.

References AlCaHLTBitMon_ParallelJobs::p.

566  {
567  std::pair<const_IdIter, const_IdIter> p = std::equal_range(m_ids.begin(), m_ids.end(), Item(i));
568  return (p.first != p.second) ? p.first : m_ids.end();
569  }
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 612 of file DetSetVectorNew.h.

612 { 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

Definition at line 493 of file DetSetVectorNew.h.

References filterCSVwithJSON::copy, B2GTnPMonitor_cfi::item, and edmNew::dstvdetails::DetSetVectorTrans::Item::offset.

Referenced by BeautifulSoup.PageElement::append(), and PixelFEDChannelCollectionProducer::produce().

493  {
494  Item& item = addItem(iid, isize);
495  m_data.resize(m_data.size() + isize);
496  std::copy(idata, idata + isize, m_data.begin() + item.offset);
497  m_dataSize = m_data.size();
498  return DetSet(*this, item, false);
499  }
Item const & item(size_t cell) const
Item & addItem(id_type iid, size_type isize)
edmNew::DetSet< T > DetSet
template<typename T>
DetSet edmNew::DetSetVector< T >::insert ( id_type  iid,
size_type  isize 
)
inline

Definition at line 501 of file DetSetVectorNew.h.

References B2GTnPMonitor_cfi::item.

Referenced by BeautifulSoup.PageElement::append().

501  {
502  Item& item = addItem(iid, isize);
503  m_data.resize(m_data.size() + isize);
504  m_dataSize = m_data.size();
505  return DetSet(*this, item, false);
506  }
Item const & item(size_t cell) const
Item & addItem(id_type iid, size_type isize)
edmNew::DetSet< T > DetSet
template<typename T>
bool edmNew::DetSetVector< T >::isValid ( id_type  i) const
inline

Definition at line 538 of file DetSetVectorNew.h.

References AlCaHLTBitMon_ParallelJobs::p.

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

538  {
540  return p != m_ids.end() && (*p).isValid();
541  }
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
template<typename T>
bool edmNew::DetSetVector< T >::onDemand ( ) const
inline

Definition at line 457 of file DetSetVectorNew.h.

457 { return !m_getter.empty(); }
template<typename T>
data_type edmNew::DetSetVector< T >::operator() ( size_t  cell,
size_t  frame 
) const
inline

Definition at line 600 of file DetSetVectorNew.h.

References amptDefault_cfi::frame.

600 { 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 551 of file DetSetVectorNew.h.

References AlCaHLTBitMon_ParallelJobs::p, and edmNew::dstvdetails::throw_range().

551  {
553  if (p == m_ids.end())
555  return DetSet(*this, *p, true);
556  }
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 512 of file DetSetVectorNew.h.

References AlCaHLTBitMon_ParallelJobs::p.

512  {
513  const_IdIter p = findItem(iid);
514  if (p == m_ids.end())
515  return; //bha!
516  // sanity checks... (shall we throw or assert?)
517  if ((*p).isValid() && (*p).size > 0 && m_data.size() == (*p).offset + (*p).size) {
518  m_data.resize((*p).offset);
519  m_dataSize = m_data.size();
520  }
521  m_ids.erase(m_ids.begin() + (p - m_ids.begin()));
522  }
const_IdIter findItem(id_type i) const
std::vector< Trans::Item > m_ids
IdContainer::const_iterator const_IdIter
template<typename T>
Item& edmNew::DetSetVector< T >::push_back ( id_type  iid)
inline

Definition at line 509 of file DetSetVectorNew.h.

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

509 { 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 471 of file DetSetVectorNew.h.

471  {
472  m_ids.reserve(isize);
473  m_data.reserve(dsize);
474  }
std::vector< Trans::Item > m_ids
template<typename T>
void edmNew::DetSetVector< T >::resize ( size_t  isize,
size_t  dsize 
)
inline
template<typename T>
void edmNew::DetSetVector< T >::shrink_to_fit ( )
inline

Definition at line 476 of file DetSetVectorNew.h.

References clean().

476  {
477  clean();
478  m_ids.shrink_to_fit();
479  m_data.shrink_to_fit();
480  }
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 590 of file DetSetVectorNew.h.

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

Definition at line 459 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().

459  {
461  std::swap(m_subdetId, rh.m_subdetId);
462  std::swap(m_ids, rh.m_ids);
463  std::swap(m_data, rh.m_data);
464  }
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 466 of file DetSetVectorNew.h.

References std::swap().

466  {
467  std::swap(m_ids, iic);
468  std::swap(m_data, idc);
469  }
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 663 of file DetSetVectorNew.h.

References alignCSCRings::ff, 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__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), dqm-mbProfile.Profile::finish(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), edmNew::DetSet< T >::set(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

663  {
664  // no m_getter or already updated
665  if (m_getter.empty()) {
666  assert(item.isValid());
667  return;
668  }
669  if (item.initialize()) {
670  assert(item.initializing());
671  {
672  TSFastFiller ff(*this, item);
673  (*boost::any_cast<std::shared_ptr<Getter> >(&m_getter))->fill(ff);
674  }
675  assert(item.isValid());
676  }
677  }
friend class TSFastFiller
Item const & item(size_t cell) const

Friends And Related Function Documentation

template<typename T>
friend class ::TestDetSet
friend

Definition at line 620 of file DetSetVectorNew.h.

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

Definition at line 412 of file DetSetVectorNew.h.

template<typename T>
friend class FastFiller
friend

Definition at line 410 of file DetSetVectorNew.h.

template<typename T>
friend class FindForDetSetVector
friend

Definition at line 437 of file DetSetVectorNew.h.

template<typename T>
friend class TSFastFiller
friend

Definition at line 411 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

Definition at line 630 of file DetSetVectorNew.h.

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

template<typename T>
int edmNew::DetSetVector< T >::m_subdetId
private

Definition at line 625 of file DetSetVectorNew.h.

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