71 if(!attrSpecification->size())
return NULL;
77 for(; pos!=
end; ++pos) {
78 const unsigned int channelId = pos->first;
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.;
105 attrListCollection->
add(channelId, attrList);
108 return attrListCollection;
115 std::map<std::string, const CondAttrListCollection*>::const_iterator
118 if(it_map!=condAttrListCollectionMap.end()) {
125 for(; pos!=
end; ++pos) {
127 const coral::AttributeList& attrList = pos->second;
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);
156 L1CaloHVCorrections l1CaloHVCorrections(chanNum, rxMean, std::move(affectedCells), std::move(layerMeans));
160 std::cout <<
"L1CaloHVCorrectionsContainer : Could not find requested CondAttrListCollection "