104 typedef std::map<std::string, std::string>::const_iterator recordIter;
106 container = (*i).first;
112 if (container ==
"EcalLaserAPDPNRatios") {
127 if(iEta==0)
continue;
131 int hi = ebdetid.hashedIndex();
133 if (hi<static_cast<int>(laserRatiosMap.
size())) {
134 apdpnpair = laserRatiosMap[hi];
135 std::cout <<
"A sample value of APDPN pair EB : "
136 << hi <<
" : " << apdpnpair.
p1 <<
" , " << apdpnpair.
p2 << std::endl;
138 edm::LogError(
"EcalGetLaserData") <<
"error with laserRatiosMap!" << std::endl;
152 int hi = eedetidpos.hashedIndex();
154 if (hi< static_cast<int>(laserRatiosMap.
size())) {
155 apdpnpair = laserRatiosMap[hi];
156 std::cout <<
"A sample value of APDPN pair EE+ : "
157 << hi <<
" : " << apdpnpair.
p1 <<
" , " << apdpnpair.
p2 << std::endl;
159 edm::LogError(
"EcalGetLaserData") <<
"error with laserRatiosMap!" << std::endl;
165 hi = eedetidneg.hashedIndex();
167 if (hi< static_cast<int>(laserRatiosMap.
size())) {
168 apdpnpair = laserRatiosMap[hi];
169 std::cout <<
"A sample value of APDPN pair EE- : "
170 << hi <<
" : " << apdpnpair.
p1 <<
" , " << apdpnpair.
p2 << std::endl;
172 edm::LogError(
"EcalGetLaserData") <<
"error with laserRatiosMap!" << std::endl;
177 for(
int i=0;
i<92;
i++){
178 timestamp = laserTimeMap[
i];
179 std::cout <<
"A value of timestamp pair : "
180 <<
i <<
" " << timestamp.
t1.
value() <<
" , " << timestamp.
t2.
value() << std::endl;
183 std::cout <<
".. just retrieved the last valid record from DB "<< std::endl;
185 }
else if(container ==
"EcalLaserAPDPNRatiosRef") {
196 if(iEta==0)
continue;
200 int hi = ebdetid.hashedIndex();
202 if (hi< static_cast<int>(laserRefMap.
size())) {
203 apdpnref = laserRefMap[hi];
204 std::cout <<
"A sample value of APDPN Reference value EB : "
205 << hi <<
" : " << apdpnref << std::endl;
207 edm::LogError(
"EcalGetLaserData") <<
"error with laserRefMap!" << std::endl;
220 int hi = eedetidpos.hashedIndex();
222 if (hi< static_cast<int>(laserRefMap.
size())) {
223 apdpnref = laserRefMap[hi];
224 std::cout <<
"A sample value of APDPN Reference value EE+ : "
225 << hi <<
" : " << apdpnref << std::endl;
228 edm::LogError(
"EcalGetLaserData") <<
"error with laserRefMap!" << std::endl;
234 hi = eedetidneg.hashedIndex();
236 if (hi< static_cast<int>(laserRefMap.
size())) {
237 apdpnref = laserRefMap[hi];
238 std::cout <<
"A sample value of APDPN Reference value EE- : "
239 << hi <<
" : " << apdpnref << std::endl;
241 edm::LogError(
"EcalGetLaserData") <<
"error with laserRefMap!" << std::endl;
246 std::cout <<
"... just retrieved the last valid record from DB "<< std::endl;
248 }
else if (container ==
"EcalLaserAlphas") {
260 if(iEta==0)
continue;
264 int hi = ebdetid.hashedIndex();
266 if (hi< static_cast<int>(laserAlphaMap.
size())) {
267 alpha = laserAlphaMap[hi];
268 std::cout <<
" A sample value of Alpha value EB : " << hi <<
" : " << alpha << std::endl;
270 edm::LogError(
"EcalGetLaserData") <<
"error with laserAlphaMap!" << std::endl;
283 int hi = eedetidpos.hashedIndex();
285 if (hi< static_cast<int>(laserAlphaMap.
size())) {
286 alpha = laserAlphaMap[hi];
287 std::cout <<
" A sample value of Alpha value EE+ : " << hi <<
" : " << alpha << std::endl;
289 edm::LogError(
"EcalGetLaserData") <<
"error with laserAlphaMap!" << std::endl;
296 hi = eedetidneg.hashedIndex();
298 if (hi< static_cast<int>(laserAlphaMap.
size())) {
299 alpha = laserAlphaMap[hi];
300 std::cout <<
" A sample value of Alpha value EE- : " << hi <<
" : " << alpha << std::endl;
302 edm::LogError(
"EcalGetLaserData") <<
"error with laserAlphaMap!" << std::endl;
307 std::cout <<
"... just retrieved the last valid record from DB "<< std::endl;
310 edm::LogError(
"EcalGetLaserData") <<
"Cannot retrieve for container: "
311 << container << std::endl;
static const int MIN_IPHI
std::map< std::string, std::string > m_records
TimeValue_t value() const
static const int MAX_IPHI
std::vector< EcalLaserTimeStamp > EcalLaserTimeStampMap
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
T const * product() const
static const int MAX_IETA