7 #include "CoralBase/AttributeListSpecification.h"
31 m_mCoolFoldersKeysMap(folderKeysMap)
47 std::map<L1CaloHVCorrectionsContainer::eCoolFolders, std::string>::const_iterator
it =
m_mCoolFoldersKeysMap.find(efolder);
51 return std::string(
"");
56 std::vector<std::string>
v;
71 if(!attrSpecification->size())
return NULL;
80 const std::vector<int>& affectedCells(
p.affectedCells());
81 const std::vector<float>& layerMeans(
p.layerMeans());
82 const unsigned char nlayers = affectedCells.size();
83 const unsigned char affectedCells1 = (nlayers > 0) ? affectedCells[0] : 0;
84 const unsigned char affectedCells2 = (nlayers > 1) ? affectedCells[1] : 0;
85 const unsigned char affectedCells3 = (nlayers > 2) ? affectedCells[2] : 0;
86 const unsigned char affectedCells4 = (nlayers > 3) ? affectedCells[3] : 0;
87 const float layerMean1 = (nlayers > 0) ? layerMeans[0] : 0.;
88 const float layerMean2 = (nlayers > 1) ? layerMeans[1] : 0.;
89 const float layerMean3 = (nlayers > 2) ? layerMeans[2] : 0.;
90 const float layerMean4 = (nlayers > 3) ? layerMeans[3] : 0.;
108 return (DataObject*) attrListCollection;
115 std::map<std::string, const CondAttrListCollection*>::const_iterator
118 if(it_map!=condAttrListCollectionMap.end()) {
133 std::vector<int> affectedCells;
134 std::vector<float> layerMeans;
136 if (layerMean1 >= 1.) {
137 layerMeans.push_back(layerMean1);
140 if (layerMean2 >= 1.) {
141 layerMeans.push_back(layerMean2);
144 if (layerMean3 >= 1.) {
145 layerMeans.push_back(layerMean3);
148 if (layerMean4 >= 1.) {
149 layerMeans.push_back(layerMean4);
160 std::cout <<
"L1CaloHVCorrectionsContainer : Could not find requested CondAttrListCollection "
168 else return &(
pos->second);