66 typedef std::vector<edm::ParameterSet>
Parameters;
68 for (Parameters::iterator
i =
toGet.begin();
i !=
toGet.end(); ++
i) {
71 m_cacheIDs.insert(std::make_pair(container, 0));
93 typedef std::map<std::string, std::string>::const_iterator recordIter;
95 container = (*i).first;
100 if (container ==
"EcalLaserAPDPNRatios") {
120 if (
hi < static_cast<int>(laserRatiosMap.
size())) {
121 apdpnpair = laserRatiosMap[
hi];
122 std::cout <<
"A sample value of APDPN pair EB : " <<
hi <<
" : " << apdpnpair.
p1 <<
" , " << apdpnpair.
p2
125 edm::LogError(
"EcalGetLaserData") <<
"error with laserRatiosMap!" << std::endl;
139 if (
hi < static_cast<int>(laserRatiosMap.
size())) {
140 apdpnpair = laserRatiosMap[
hi];
141 std::cout <<
"A sample value of APDPN pair EE+ : " <<
hi <<
" : " << apdpnpair.
p1 <<
" , " << apdpnpair.
p2
144 edm::LogError(
"EcalGetLaserData") <<
"error with laserRatiosMap!" << std::endl;
152 if (
hi < static_cast<int>(laserRatiosMap.
size())) {
153 apdpnpair = laserRatiosMap[
hi];
154 std::cout <<
"A sample value of APDPN pair EE- : " <<
hi <<
" : " << apdpnpair.
p1 <<
" , " << apdpnpair.
p2
157 edm::LogError(
"EcalGetLaserData") <<
"error with laserRatiosMap!" << std::endl;
162 for (
int i = 0;
i < 92;
i++) {
168 std::cout <<
".. just retrieved the last valid record from DB " << std::endl;
170 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
186 if (
hi < static_cast<int>(laserRefMap.
size())) {
187 apdpnref = laserRefMap[
hi];
188 std::cout <<
"A sample value of APDPN Reference value EB : " <<
hi <<
" : " << apdpnref << std::endl;
190 edm::LogError(
"EcalGetLaserData") <<
"error with laserRefMap!" << std::endl;
204 if (
hi < static_cast<int>(laserRefMap.
size())) {
205 apdpnref = laserRefMap[
hi];
206 std::cout <<
"A sample value of APDPN Reference value EE+ : " <<
hi <<
" : " << apdpnref << std::endl;
209 edm::LogError(
"EcalGetLaserData") <<
"error with laserRefMap!" << std::endl;
214 EEDetId eedetidneg(iX, iY, -1);
217 if (
hi < static_cast<int>(laserRefMap.
size())) {
218 apdpnref = laserRefMap[
hi];
219 std::cout <<
"A sample value of APDPN Reference value EE- : " <<
hi <<
" : " << apdpnref << std::endl;
221 edm::LogError(
"EcalGetLaserData") <<
"error with laserRefMap!" << std::endl;
226 std::cout <<
"... just retrieved the last valid record from DB " << std::endl;
228 }
else if (container ==
"EcalLaserAlphas") {
245 if (
hi < static_cast<int>(laserAlphaMap.
size())) {
247 std::cout <<
" A sample value of Alpha value EB : " <<
hi <<
" : " <<
alpha << std::endl;
249 edm::LogError(
"EcalGetLaserData") <<
"error with laserAlphaMap!" << std::endl;
263 if (
hi < static_cast<int>(laserAlphaMap.
size())) {
265 std::cout <<
" A sample value of Alpha value EE+ : " <<
hi <<
" : " <<
alpha << std::endl;
267 edm::LogError(
"EcalGetLaserData") <<
"error with laserAlphaMap!" << std::endl;
272 EEDetId eedetidneg(iX, iY, -1);
275 if (
hi < static_cast<int>(laserAlphaMap.
size())) {
277 std::cout <<
" A sample value of Alpha value EE- : " <<
hi <<
" : " <<
alpha << std::endl;
279 edm::LogError(
"EcalGetLaserData") <<
"error with laserAlphaMap!" << std::endl;
284 std::cout <<
"... just retrieved the last valid record from DB " << std::endl;
287 edm::LogError(
"EcalGetLaserData") <<
"Cannot retrieve for container: " << container << std::endl;