Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:09

0001 #ifndef CondFormats_EcalObjects_EcalTBWeights_H
0002 #define CondFormats_EcalObjects_EcalTBWeights_H
0003 /**
0004  * Author: Shahram Rahatlou, University of Rome & INFN
0005  * Created: 22 Feb 2006
0006  * $Id: $
0007  **/
0008 
0009 #include "CondFormats/Serialization/interface/Serializable.h"
0010 
0011 #include <map>
0012 #include "CondFormats/EcalObjects/interface/EcalXtalGroupId.h"
0013 #include "CondFormats/EcalObjects/interface/EcalWeightSet.h"
0014 
0015 class EcalTBWeights {
0016 public:
0017   typedef int EcalTDCId;
0018   typedef std::map<std::pair<EcalXtalGroupId, EcalTDCId>, EcalWeightSet> EcalTBWeightMap;
0019 
0020   EcalTBWeights();
0021   ~EcalTBWeights();
0022 
0023   // modifiers
0024   void setValue(const EcalXtalGroupId& groupId, const EcalTDCId& tdcId, const EcalWeightSet& weight);
0025   void setValue(const std::pair<EcalXtalGroupId, EcalTDCId>& keyPair, const EcalWeightSet& weight);
0026 
0027   // accessors
0028   const EcalTBWeightMap& getMap() const { return map_; }
0029 
0030 private:
0031   EcalTBWeightMap map_;
0032 
0033   COND_SERIALIZABLE;
0034 };
0035 #endif