File indexing completed on 2024-04-06 12:02:09
0001 #ifndef CondFormats_EcalObjects_EcalTBWeights_H
0002 #define CondFormats_EcalObjects_EcalTBWeights_H
0003
0004
0005
0006
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
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
0028 const EcalTBWeightMap& getMap() const { return map_; }
0029
0030 private:
0031 EcalTBWeightMap map_;
0032
0033 COND_SERIALIZABLE;
0034 };
0035 #endif