CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

EcalTBWeights Class Reference

#include <EcalTBWeights.h>

List of all members.

Public Types

typedef std::map< std::pair
< EcalXtalGroupId, EcalTDCId >
, EcalWeightSet
EcalTBWeightMap
typedef int EcalTDCId

Public Member Functions

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

Private Attributes

EcalTBWeightMap map_

Detailed Description

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

Id:
EcalTBWeights.h,v 1.2 2006/02/23 16:56:34 rahatlou Exp

Definition at line 16 of file EcalTBWeights.h.


Member Typedef Documentation

Definition at line 19 of file EcalTBWeights.h.

Definition at line 18 of file EcalTBWeights.h.


Constructor & Destructor Documentation

EcalTBWeights::EcalTBWeights ( )

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

Id:
EcalTBWeights.cc,v 1.4 2009/07/29 13:56:09 innocent Exp

Definition at line 11 of file EcalTBWeights.cc.

                             {

}
EcalTBWeights::~EcalTBWeights ( )

Definition at line 15 of file EcalTBWeights.cc.

                              {
}

Member Function Documentation

const EcalTBWeightMap& EcalTBWeights::getMap ( ) const [inline]

Definition at line 29 of file EcalTBWeights.h.

References map_.

Referenced by EcalTBWeightsXMLTranslator::dumpXML().

{ return map_; }
void EcalTBWeights::setValue ( const EcalXtalGroupId groupId,
const EcalTDCId tdcId,
const EcalWeightSet weight 
)

Definition at line 19 of file EcalTBWeights.cc.

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

                                                     {
  setValue( std::make_pair(groupId,tdcId), weight);
}
void EcalTBWeights::setValue ( const std::pair< EcalXtalGroupId, EcalTDCId > &  keyPair,
const EcalWeightSet weight 
)

Definition at line 26 of file EcalTBWeights.cc.

References map_.

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

Member Data Documentation

Definition at line 32 of file EcalTBWeights.h.

Referenced by getMap(), and setValue().