Implements edm::EDAnalyzer.
Definition at line 87 of file EcalGetLaserData.cc.
93 typedef std::map<std::string, std::string>::const_iterator recordIter;
95 container = (*i).first;
100 if (container ==
"EcalLaserAPDPNRatios") {
118 int hi = ebdetid.hashedIndex();
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;
137 int hi = eedetidpos.hashedIndex();
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;
150 hi = eedetidneg.hashedIndex();
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") {
184 int hi = ebdetid.hashedIndex();
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;
202 int hi = eedetidpos.hashedIndex();
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);
215 hi = eedetidneg.hashedIndex();
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") {
243 int hi = ebdetid.hashedIndex();
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;
261 int hi = eedetidpos.hashedIndex();
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);
273 hi = eedetidneg.hashedIndex();
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;
References zMuMuMuonUserData::alpha, gather_cfg::cout, edm::EventSetup::get(), get, patZpeak::handle, EBDetId::hashedIndex(), EEDetId::hashedIndex(), mps_fire::i, L1TowerCalibrationProducer_cfi::iEta, EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, m_records, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, EBDetId::MIN_IPHI, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p1, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p2, GlobalPosition_Frontier_DevDB_cff::record, align_cfg::recordName, EcalCondObjectContainer< T >::size(), AlCaHLTBitMon_QueryRunRegistry::string, cond::timestamp, and EEDetId::validDetId().