CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes
SiStripApproximateClusterCollection Class Reference

#include <SiStripApproximateClusterCollection.h>

Classes

class  const_iterator
 
class  DetSet
 
class  Filler
 

Public Member Functions

const_iterator begin () const
 
Filler beginDet (unsigned int detId)
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const_iterator end () const
 
void reserve (std::size_t dets, std::size_t clusters)
 
 SiStripApproximateClusterCollection ()=default
 

Private Attributes

std::vector< unsigned int > beginIndices_
 
std::vector< SiStripApproximateClusterclusters_
 
std::vector< unsigned int > detIds_
 

Detailed Description

This class provides a minimal interface that resembles edmNew::DetSetVector, but is crafted such that we are comfortable to provide an infinite backwards compatibility guarantee for it (like all RAW data). Any modifications need to be made with care. Please consult core software group if in doubt.

Definition at line 15 of file SiStripApproximateClusterCollection.h.

Constructor & Destructor Documentation

◆ SiStripApproximateClusterCollection()

SiStripApproximateClusterCollection::SiStripApproximateClusterCollection ( )
default

Member Function Documentation

◆ begin()

const_iterator SiStripApproximateClusterCollection::begin ( void  ) const
inline

Definition at line 93 of file SiStripApproximateClusterCollection.h.

Referenced by cbegin().

93 { return const_iterator(this); }

◆ beginDet()

SiStripApproximateClusterCollection::Filler SiStripApproximateClusterCollection::beginDet ( unsigned int  detId)

Definition at line 9 of file SiStripApproximateClusterCollection.cc.

References beginIndices_, clusters_, hcalRecHitTable_cff::detId, and detIds_.

9  {
10  detIds_.push_back(detId);
11  beginIndices_.push_back(clusters_.size());
12  return Filler(clusters_);
13 }
std::vector< SiStripApproximateCluster > clusters_

◆ cbegin()

const_iterator SiStripApproximateClusterCollection::cbegin ( ) const
inline

Definition at line 94 of file SiStripApproximateClusterCollection.h.

References begin().

94 { return begin(); }

◆ cend()

const_iterator SiStripApproximateClusterCollection::cend ( ) const
inline

Definition at line 96 of file SiStripApproximateClusterCollection.h.

References end().

96 { return end(); }

◆ end()

const_iterator SiStripApproximateClusterCollection::end ( void  ) const
inline

Definition at line 95 of file SiStripApproximateClusterCollection.h.

Referenced by cend(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

95 { return const_iterator(); }

◆ reserve()

void SiStripApproximateClusterCollection::reserve ( std::size_t  dets,
std::size_t  clusters 
)

Definition at line 3 of file SiStripApproximateClusterCollection.cc.

References beginIndices_, bsc_activity_cfg::clusters, clusters_, and detIds_.

3  {
4  detIds_.reserve(dets);
5  beginIndices_.reserve(dets);
6  clusters_.reserve(clusters);
7 }
std::vector< SiStripApproximateCluster > clusters_

Member Data Documentation

◆ beginIndices_

std::vector<unsigned int> SiStripApproximateClusterCollection::beginIndices_
private

Definition at line 103 of file SiStripApproximateClusterCollection.h.

Referenced by beginDet(), and reserve().

◆ clusters_

std::vector<SiStripApproximateCluster> SiStripApproximateClusterCollection::clusters_
private

◆ detIds_

std::vector<unsigned int> SiStripApproximateClusterCollection::detIds_
private