124 printSTRIP(ecaltpgSlidW, ecaltpgWeightGroup, ecaltpgFgStripEE);
138 printTOWEREB(ecaltpgSpikeTh, ecaltpgFgEBGroup, ecaltpgLutGroup);
178 for (it = mymap.begin(); it != mymap.end(); ++it) {
179 if (it == mymap.begin()) {
180 std::cout <<
"\nPHYSICS_EB " << (*it).first << std::endl;
182 std::cout <<
"\nPHYSICS_EE " << (*it).first << std::endl;
184 std::cout << (*it).second.EtSat <<
" " << (*it).second.ttf_threshold_Low <<
" " << (*it).second.ttf_threshold_High
186 std::cout << (*it).second.FG_lowThreshold <<
" " << (*it).second.FG_highThreshold <<
" " << (*it).second.FG_lowRatio
187 <<
" " << (*it).second.FG_highRatio << std::endl;
202 for (
int mysub = 1; mysub <= 2; ++mysub) {
204 for (it = slwinmap.begin(); it != slwinmap.end(); ++it) {
206 groupId = gMap.find((*it).first);
207 int subdet = elid.
subdet();
208 if (subdet == mysub) {
211 std::cout << std::hex <<
"0x" << (*it).second << std::endl;
212 std::cout <<
"" << (*groupId).second << std::endl;
214 if (it2 == fgstripEEmap.end()) {
215 edm::LogWarning(
"EcalTPGCondAnalyzer") <<
" could not find strip Id " << (*it).first
216 <<
", given in sliding window, inside the " 217 "EcalTPGFineGranStripEEMap!!!";
222 }
else if (subdet == 2) {
224 std::cout << std::hex <<
"0x" << (*it).second << std::endl;
225 std::cout <<
" " << (*groupId).second << std::endl;
227 if (it2 == fgstripEEmap.end()) {
228 edm::LogWarning(
"EcalTPGCondAnalyzer") <<
" could not find strip Id " << (*it).first
229 <<
", given in sliding window, inside the " 230 "EcalTPGFineGranStripEEMap!!!";
244 uint32_t w0, w1,
w2,
w3,
w4;
246 for (it = map.begin(); it != map.end(); ++it) {
247 std::cout <<
"WEIGHT " << (*it).first << std::endl;
248 (*it).second.getValues(w0, w1, w2, w3, w4);
249 std::cout << std::hex <<
"0x" << w0 <<
" 0x" << w1 <<
" 0x" << w2 <<
" 0x" << w3 <<
" 0x" << w4 <<
" " << std::endl;
258 uint32_t ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh,
LUT;
261 for (it = map.begin(); it != map.end(); ++it) {
262 std::cout <<
"FG " << (*it).first << std::endl;
263 (*it).second.getValues(ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh, LUT);
264 std::cout << std::hex <<
"0x" << ThresholdETLow <<
" 0x" << ThresholdETHigh <<
" 0x" << RatioLow <<
" 0x" 265 << RatioHigh <<
" 0x" << LUT << std::endl;
274 for (it = map.begin(); it != map.end(); ++it) {
275 std::cout <<
"LUT " << (*it).first << std::endl;
276 const unsigned int *lut = (*it).second.getLut();
277 for (
unsigned int i = 0;
i < 1024; ++
i)
278 std::cout << std::hex <<
"0x" << *lut++ << std::endl;
289 std::cout <<
"COMMENT ====== barrel crystals ====== " << std::endl;
290 for (std::vector<DetId>::const_iterator it = ebCells.begin(); it != ebCells.end(); ++it) {
301 std::cout <<
"COMMENT ====== endcap crystals ====== " << std::endl;
302 for (std::vector<DetId>::const_iterator it = eeCells.begin(); it != eeCells.end(); ++it) {
313 std::cout <<
"COMMENT put your comments here\n" 314 <<
"COMMENT =================================\n" 315 <<
"COMMENT physics EB structure\n" 317 <<
"COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), " 318 "ttf_threshold_High (GeV)\n" 319 <<
"COMMENT FG_lowThreshold (GeV), FG_highThreshold (GeV), " 320 "FG_lowRatio, FG_highRatio\n" 321 <<
"COMMENT =================================\n" 323 <<
"COMMENT =================================\n" 324 <<
"COMMENT physics EE structure\n" 326 <<
"COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), " 327 "ttf_threshold_High (GeV)\n" 328 <<
"COMMENT FG_Threshold (GeV), dummy, dummy, dummy\n" 329 <<
"COMMENT =================================\n" 331 <<
"COMMENT =================================\n" 332 <<
"COMMENT crystal structure (same for EB and EE)\n" 334 <<
"COMMENT ped, mult, shift [gain12]\n" 335 <<
"COMMENT ped, mult, shift [gain6]\n" 336 <<
"COMMENT ped, mult, shift [gain1]\n" 337 <<
"COMMENT =================================\n" 339 <<
"COMMENT =================================\n" 340 <<
"COMMENT strip EB structure\n" 342 <<
"COMMENT sliding_window\n" 343 <<
"COMMENT weightGroupId\n" 344 <<
"COMMENT threshold_sfg lut_sfg\n" 345 <<
"COMMENT =================================\n" 347 <<
"COMMENT =================================\n" 348 <<
"COMMENT strip EE structure\n" 350 <<
"COMMENT sliding_window\n" 351 <<
"COMMENT weightGroupId\n" 352 <<
"COMMENT threshold_fg lut_fg\n" 353 <<
"COMMENT =================================\n" 355 <<
"COMMENT =================================\n" 356 <<
"COMMENT tower EB structure\n" 358 <<
"COMMENT LUTGroupId\n" 359 <<
"COMMENT FgGroupId\n" 360 <<
"COMMENT spike_killing_threshold\n" 361 <<
"COMMENT =================================\n" 363 <<
"COMMENT =================================\n" 364 <<
"COMMENT tower EE structure\n" 366 <<
"COMMENT LUTGroupId\n" 367 <<
"COMMENT tower_lut_fg\n" 368 <<
"COMMENT =================================\n" 370 <<
"COMMENT =================================\n" 371 <<
"COMMENT Weight structure\n" 373 <<
"COMMENT weightGroupId\n" 374 <<
"COMMENT w0, w1, w2, w3, w4\n" 375 <<
"COMMENT =================================\n" 377 <<
"COMMENT =================================\n" 378 <<
"COMMENT lut structure\n" 380 <<
"COMMENT LUTGroupId\n" 381 <<
"COMMENT LUT[1-1024]\n" 382 <<
"COMMENT =================================\n" 384 <<
"COMMENT =================================\n" 385 <<
"COMMENT fg EB structure\n" 387 <<
"COMMENT FgGroupId\n" 388 <<
"COMMENT el, eh, tl, th, lut_fg\n" 389 <<
"COMMENT =================================\n" 390 <<
"COMMENT" << std::endl;
423 for (it = fgMap.begin(); it != fgMap.end(); ++it) {
425 lutGroupId = lutMap.find((*it).first);
426 itSpikeTh = spikeThMap.find((*it).first);
427 std::cout <<
" " << (*it).second << std::endl;
428 std::cout <<
" " << (*lutGroupId).second << std::endl;
429 std::cout <<
" " << (*itSpikeTh).second << std::endl;
441 for (it = map.begin(); it != map.end(); ++it) {
443 lutGroupId = lutMap.find((*it).first);
444 std::cout <<
" " << (*lutGroupId).second << std::endl;
445 std::cout << std::hex <<
"0x" << (*it).second << std::endl;
const std::map< uint32_t, uint32_t > & getMap() const
std::map< uint32_t, EcalTPGWeights >::const_iterator EcalTPGWeightMapItr
const EcalTPGGroupsMap & getMap() const
std::map< uint32_t, EcalTPGFineGrainStripEE::Item > EcalTPGFineGrainStripEEMap
void printEcalTPGLutIdMap(const EcalTPGLutIdMap *ecaltpgLut) const
std::map< uint32_t, uint32_t >::const_iterator EcalTPGFineGrainTowerEEMapIterator
const CaloSubdetectorGeometry * theBarrelGeometry_
common ppss p3p6s2 common epss epspn46 common const1 w2
const CaloSubdetectorGeometry * theEndcapGeometry_
const self & getMap() const
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
unsigned long long cacheID_
std::map< uint32_t, uint32_t > EcalTPGSlidingWindowMap
~EcalTPCondAnalyzer() override
unsigned long long getRecords(edm::EventSetup const &setup)
virtual const std::vector< DetId > & getValidDetIds(DetId::Detector det=DetId::Detector(0), int subdet=0) const
Get a list of valid detector ids (for the given subdetector)
std::map< uint32_t, uint16_t >::const_iterator EcalTPGSpikeMapIterator
void printSTRIP(const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGWeightGroup *ecaltpgWeightGroup, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE) const
EcalTPCondAnalyzer(const edm::ParameterSet &)
common ppss p3p6s2 common epss epspn46 common const1 w4
const EcalTPGLutMap & getMap() const
std::map< uint32_t, EcalTPGFineGrainStripEE::Item >::const_iterator EcalTPGFineGrainStripEEMapIterator
void printWEIGHT(const EcalTPGWeightIdMap *ecaltpgWeightMap) const
const std::map< uint32_t, Item > & getMap() const
const EcalTPGFineGrainEBMap & getMap() const
const EcalTPGWeightMap & getMap() const
std::map< uint32_t, EcalTPGWeights > EcalTPGWeightMap
const std::map< uint32_t, uint32_t > & getMap() const
void printEcalTPGFineGrainEBIdMap(const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB) const
void printTOWEREB(const EcalTPGSpike *ecaltpgSpike, const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGLutGroup *ecaltpgLutGroup) const
void printComment() const
std::map< uint32_t, uint32_t > EcalTPGFineGrainTowerEEMap
const std::map< uint32_t, Item > & getMap() const
void printTOWEREE(const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE, const EcalTPGLutGroup *ecaltpgLutGroup) const
std::map< uint32_t, EcalTPGFineGrainConstEB >::const_iterator EcalTPGFineGrainEBMapItr
void printCRYSTAL(const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin)
void analyze(const edm::Event &, const edm::EventSetup &) override
std::map< uint32_t, EcalTPGLut > EcalTPGLutMap
common ppss p3p6s2 common epss epspn46 common const1 w3
void beginRun(const edm::Run &run, const edm::EventSetup &es)
std::map< uint32_t, EcalTPGFineGrainConstEB > EcalTPGFineGrainEBMap
void printEcalTPGPhysicsConst(const EcalTPGPhysicsConst *) const
std::map< uint32_t, uint16_t > EcalTPGSpikeMap
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
std::vector< unsigned short int > LUT
std::map< uint32_t, EcalTPGPhysicsConst::Item >::const_iterator EcalTPGPhysicsConstMapIterator
T const * product() const
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...
std::map< uint32_t, uint32_t >::const_iterator EcalTPGSlidingWindowMapIterator
std::map< uint32_t, uint32_t > EcalTPGGroupsMap
std::map< uint32_t, EcalTPGLut >::const_iterator EcalTPGLutMapItr
const std::map< uint32_t, uint16_t > & getMap() const
EcalSubdetector subdet() const
get the subdet