CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
EcalTBWeights Class Reference

#include <EcalTBWeights.h>

Public Types

typedef std::map< std::pair< EcalXtalGroupId, EcalTDCId >, EcalWeightSetEcalTBWeightMap
 
typedef int EcalTDCId
 

Public Member Functions

 EcalTBWeights ()
 
const EcalTBWeightMapgetMap () const
 
void setValue (const EcalXtalGroupId &groupId, const EcalTDCId &tdcId, const EcalWeightSet &weight)
 
void setValue (const std::pair< EcalXtalGroupId, EcalTDCId > &keyPair, const EcalWeightSet &weight)
 
 ~EcalTBWeights ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

EcalTBWeightMap map_
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Author: Shahram Rahatlou, University of Rome & INFN Created: 22 Feb 2006

Id

Definition at line 15 of file EcalTBWeights.h.

Member Typedef Documentation

◆ EcalTBWeightMap

Definition at line 18 of file EcalTBWeights.h.

◆ EcalTDCId

Definition at line 17 of file EcalTBWeights.h.

Constructor & Destructor Documentation

◆ EcalTBWeights()

EcalTBWeights::EcalTBWeights ( )

Author: Shahram Rahatlou, University of Rome & INFN Created: 22 Feb 2006

Id
EcalTBWeights.cc,v 1.3 2006/02/23 16:56:35 rahatlou Exp

Definition at line 11 of file EcalTBWeights.cc.

11 {}

◆ ~EcalTBWeights()

EcalTBWeights::~EcalTBWeights ( )

Definition at line 13 of file EcalTBWeights.cc.

13 {}

Member Function Documentation

◆ getMap()

const EcalTBWeightMap& EcalTBWeights::getMap ( ) const
inline

◆ serialize()

template<class Archive >
void EcalTBWeights::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setValue() [1/2]

void EcalTBWeights::setValue ( const EcalXtalGroupId groupId,
const EcalTDCId tdcId,
const EcalWeightSet weight 
)

Definition at line 15 of file EcalTBWeights.cc.

15  {
16  setValue(std::make_pair(groupId, tdcId), weight);
17 }

Referenced by EcalTestDevDB::generateEcalTBWeights(), and StoreEcalCondition::readEcalTBWeightsFromFile().

◆ setValue() [2/2]

void EcalTBWeights::setValue ( const std::pair< EcalXtalGroupId, EcalTDCId > &  keyPair,
const EcalWeightSet weight 
)

Definition at line 19 of file EcalTBWeights.cc.

19  {
20  map_.insert(std::make_pair(keyPair, weight));
21 }

References map_.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 33 of file EcalTBWeights.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 33 of file EcalTBWeights.h.

Member Data Documentation

◆ map_

EcalTBWeightMap EcalTBWeights::map_
private

Definition at line 31 of file EcalTBWeights.h.

Referenced by getMap(), and setValue().

EcalTBWeights::setValue
void setValue(const EcalXtalGroupId &groupId, const EcalTDCId &tdcId, const EcalWeightSet &weight)
Definition: EcalTBWeights.cc:15
EcalTBWeights::map_
EcalTBWeightMap map_
Definition: EcalTBWeights.h:31
weight
Definition: weight.py:1