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 36 of file StripCompactDigiSimLinks.h.

Member Typedef Documentation

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

Definition at line 45 of file StripCompactDigiSimLinks.h.

Constructor & Destructor Documentation

StripCompactDigiSimLinks::Filler::Filler ( )
inline
StripCompactDigiSimLinks::Filler::~Filler ( )

Definition at line 26 of file StripCompactDigiSimLinks.cc.

26 {}

Member Function Documentation

unsigned int StripCompactDigiSimLinks::Filler::dataSize ( ) const
inline
void StripCompactDigiSimLinks::Filler::insert ( const key_type key,
const HitRecord record 
)

Definition at line 28 of file StripCompactDigiSimLinks.cc.

Referenced by StripCompactDigiSimLinksProducer::produce().

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 }
JetCorrectorParameters::Record record
Definition: classes.h:7
unsigned int StripCompactDigiSimLinks::Filler::keySize ( ) const
inline
const Map& StripCompactDigiSimLinks::Filler::storage ( ) const
inline

Member Data Documentation

unsigned int StripCompactDigiSimLinks::Filler::num_keys_
private

Definition at line 53 of file StripCompactDigiSimLinks.h.

unsigned int StripCompactDigiSimLinks::Filler::num_values_
private

Definition at line 54 of file StripCompactDigiSimLinks.h.

Map StripCompactDigiSimLinks::Filler::storage_
private

Definition at line 52 of file StripCompactDigiSimLinks.h.