CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
StripCompactDigiSimLinks::Filler Class Reference

#include <StripCompactDigiSimLinks.h>

Public Types

typedef std::map< key_type, std::vector< HitRecord > > Map
 

Public Member Functions

unsigned int dataSize () const
 
 Filler ()
 
void insert (const key_type &key, const HitRecord &record)
 
unsigned int keySize () const
 
const Mapstorage () const
 
 ~Filler ()
 

Private Attributes

unsigned int num_keys_
 
unsigned int num_values_
 
Map storage_
 

Detailed Description

Definition at line 37 of file StripCompactDigiSimLinks.h.

Member Typedef Documentation

◆ Map

typedef std::map<key_type, std::vector<HitRecord> > StripCompactDigiSimLinks::Filler::Map

Definition at line 46 of file StripCompactDigiSimLinks.h.

Constructor & Destructor Documentation

◆ Filler()

StripCompactDigiSimLinks::Filler::Filler ( )
inline

Definition at line 39 of file StripCompactDigiSimLinks.h.

39 : storage_(), num_keys_(0), num_values_(0) {}

◆ ~Filler()

StripCompactDigiSimLinks::Filler::~Filler ( )

Definition at line 26 of file StripCompactDigiSimLinks.cc.

26 {}

Member Function Documentation

◆ dataSize()

unsigned int StripCompactDigiSimLinks::Filler::dataSize ( ) const
inline

Definition at line 50 of file StripCompactDigiSimLinks.h.

50 { return num_values_; }

References num_values_.

◆ insert()

void StripCompactDigiSimLinks::Filler::insert ( const key_type key,
const HitRecord record 
)

Definition at line 28 of file StripCompactDigiSimLinks.cc.

29  {
30  Filler::Map::iterator it = storage_.find(key);
31  if (it == storage_.end()) {
32  storage_.insert(std::make_pair(key, std::vector<HitRecord>(1, record)));
33  num_keys_++;
34  num_values_++;
35  } else {
36  it->second.push_back(record);
37  num_values_++;
38  }
39 }

References crabWrapper::key, and AlCaHarvesting_cff::record.

◆ keySize()

unsigned int StripCompactDigiSimLinks::Filler::keySize ( ) const
inline

Definition at line 49 of file StripCompactDigiSimLinks.h.

49 { return num_keys_; }

References num_keys_.

◆ storage()

const Map& StripCompactDigiSimLinks::Filler::storage ( ) const
inline

Definition at line 47 of file StripCompactDigiSimLinks.h.

47 { return storage_; }

References storage_.

Member Data Documentation

◆ num_keys_

unsigned int StripCompactDigiSimLinks::Filler::num_keys_
private

Definition at line 54 of file StripCompactDigiSimLinks.h.

Referenced by keySize().

◆ num_values_

unsigned int StripCompactDigiSimLinks::Filler::num_values_
private

Definition at line 55 of file StripCompactDigiSimLinks.h.

Referenced by dataSize().

◆ storage_

Map StripCompactDigiSimLinks::Filler::storage_
private

Definition at line 53 of file StripCompactDigiSimLinks.h.

Referenced by storage().

AlCaHarvesting_cff.record
record
Definition: AlCaHarvesting_cff.py:42
crabWrapper.key
key
Definition: crabWrapper.py:19