63 theBarrelGeometry_handle;
65 theEndcapGeometry_handle);
67 theBarrelGeometry_handle);
88 theEcalTPGPhysConst_handle.
product();
96 theEcalTPGLinearization_handle.
product();
107 theEcalTPGWEightIdMap_handle.
product();
114 theEcalTPGFineGrainEBIdMap_handle);
116 theEcalTPGFineGrainEBIdMap_handle.
product();
128 theEcalTPGSlidingWindow_handle.
product();
131 theEcalTPGFineGrainStripEE_handle);
133 theEcalTPGFineGrainStripEE_handle.
product();
137 theEcalTPGWEightGroup_handle.
product();
138 printSTRIP(ecaltpgSlidW, ecaltpgWeightGroup, ecaltpgFgStripEE);
147 theEcalTPGFineGrainEBGroup_handle);
149 theEcalTPGFineGrainEBGroup_handle.
product();
154 printTOWEREB(ecaltpgSpikeTh, ecaltpgFgEBGroup, ecaltpgLutGroup);
157 theEcalTPGFineGrainTowerEE_handle);
159 theEcalTPGFineGrainTowerEE_handle.
product();
198 for (it = mymap.begin(); it != mymap.end(); ++it) {
199 if (it == mymap.begin()) {
200 std::cout <<
"\nPHYSICS_EB " << (*it).first << std::endl;
202 std::cout <<
"\nPHYSICS_EE " << (*it).first << std::endl;
204 std::cout << (*it).second.EtSat <<
" " << (*it).second.ttf_threshold_Low
205 <<
" " << (*it).second.ttf_threshold_High << std::endl;
206 std::cout << (*it).second.FG_lowThreshold <<
" " 207 << (*it).second.FG_highThreshold <<
" " 208 << (*it).second.FG_lowRatio <<
" " << (*it).second.FG_highRatio
225 for (
int mysub = 1; mysub <= 2; ++mysub) {
227 for (it = slwinmap.begin(); it != slwinmap.end(); ++it) {
229 groupId = gMap.find((*it).first);
230 int subdet = elid.
subdet();
231 if (subdet == mysub) {
234 std::cout << std::hex <<
"0x" << (*it).second << std::endl;
235 std::cout <<
"" << (*groupId).second << std::endl;
237 fgstripEEmap.find((*it).first);
238 if (it2 == fgstripEEmap.end()) {
240 <<
" could not find strip Id " << (*it).first
241 <<
", given in sliding window, inside the " 242 "EcalTPGFineGranStripEEMap!!!";
248 }
else if (subdet == 2) {
250 std::cout << std::hex <<
"0x" << (*it).second << std::endl;
251 std::cout <<
" " << (*groupId).second << std::endl;
253 fgstripEEmap.find((*it).first);
254 if (it2 == fgstripEEmap.end()) {
256 <<
" could not find strip Id " << (*it).first
257 <<
", given in sliding window, inside the " 258 "EcalTPGFineGranStripEEMap!!!";
275 uint32_t w0, w1,
w2,
w3,
w4;
277 ecaltpgWeightIdMap->
getMap();
278 for (it = map.begin(); it != map.end(); ++it) {
279 std::cout <<
"WEIGHT " << (*it).first << std::endl;
280 (*it).second.getValues(w0, w1, w2, w3, w4);
281 std::cout << std::hex <<
"0x" << w0 <<
" 0x" << w1 <<
" 0x" << w2 <<
" 0x" 282 << w3 <<
" 0x" << w4 <<
" " << std::endl;
292 ecaltpgFineGrainEB->
getMap();
293 uint32_t ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh,
LUT;
296 for (it = map.begin(); it != map.end(); ++it) {
297 std::cout <<
"FG " << (*it).first << std::endl;
298 (*it).second.getValues(ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh,
300 std::cout << std::hex <<
"0x" << ThresholdETLow <<
" 0x" << ThresholdETHigh
301 <<
" 0x" << RatioLow <<
" 0x" << RatioHigh <<
" 0x" << LUT
312 for (it = map.begin(); it != map.end(); ++it) {
313 std::cout <<
"LUT " << (*it).first << std::endl;
314 const unsigned int *
lut = (*it).second.getLut();
315 for (
unsigned int i = 0;
i < 1024; ++
i)
316 std::cout << std::hex <<
"0x" << *lut++ << std::endl;
328 const std::vector<DetId> &ebCells =
331 std::cout <<
"COMMENT ====== barrel crystals ====== " << std::endl;
332 for (std::vector<DetId>::const_iterator it = ebCells.begin();
333 it != ebCells.end(); ++it) {
341 <<
" 0x" << lin.
shift_x6 << std::endl;
343 <<
" 0x" << lin.
shift_x1 << std::endl;
346 const std::vector<DetId> &eeCells =
348 std::cout <<
"COMMENT ====== endcap crystals ====== " << std::endl;
349 for (std::vector<DetId>::const_iterator it = eeCells.begin();
350 it != eeCells.end(); ++it) {
358 <<
" 0x" << lin.
shift_x6 << std::endl;
360 <<
" 0x" << lin.
shift_x1 << std::endl;
364 std::cout <<
"COMMENT put your comments here\n" 365 <<
"COMMENT =================================\n" 366 <<
"COMMENT physics EB structure\n" 368 <<
"COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), " 369 "ttf_threshold_High (GeV)\n" 370 <<
"COMMENT FG_lowThreshold (GeV), FG_highThreshold (GeV), " 371 "FG_lowRatio, FG_highRatio\n" 372 <<
"COMMENT =================================\n" 374 <<
"COMMENT =================================\n" 375 <<
"COMMENT physics EE structure\n" 377 <<
"COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), " 378 "ttf_threshold_High (GeV)\n" 379 <<
"COMMENT FG_Threshold (GeV), dummy, dummy, dummy\n" 380 <<
"COMMENT =================================\n" 382 <<
"COMMENT =================================\n" 383 <<
"COMMENT crystal structure (same for EB and EE)\n" 385 <<
"COMMENT ped, mult, shift [gain12]\n" 386 <<
"COMMENT ped, mult, shift [gain6]\n" 387 <<
"COMMENT ped, mult, shift [gain1]\n" 388 <<
"COMMENT =================================\n" 390 <<
"COMMENT =================================\n" 391 <<
"COMMENT strip EB structure\n" 393 <<
"COMMENT sliding_window\n" 394 <<
"COMMENT weightGroupId\n" 395 <<
"COMMENT threshold_sfg lut_sfg\n" 396 <<
"COMMENT =================================\n" 398 <<
"COMMENT =================================\n" 399 <<
"COMMENT strip EE structure\n" 401 <<
"COMMENT sliding_window\n" 402 <<
"COMMENT weightGroupId\n" 403 <<
"COMMENT threshold_fg lut_fg\n" 404 <<
"COMMENT =================================\n" 406 <<
"COMMENT =================================\n" 407 <<
"COMMENT tower EB structure\n" 409 <<
"COMMENT LUTGroupId\n" 410 <<
"COMMENT FgGroupId\n" 411 <<
"COMMENT spike_killing_threshold\n" 412 <<
"COMMENT =================================\n" 414 <<
"COMMENT =================================\n" 415 <<
"COMMENT tower EE structure\n" 417 <<
"COMMENT LUTGroupId\n" 418 <<
"COMMENT tower_lut_fg\n" 419 <<
"COMMENT =================================\n" 421 <<
"COMMENT =================================\n" 422 <<
"COMMENT Weight structure\n" 424 <<
"COMMENT weightGroupId\n" 425 <<
"COMMENT w0, w1, w2, w3, w4\n" 426 <<
"COMMENT =================================\n" 428 <<
"COMMENT =================================\n" 429 <<
"COMMENT lut structure\n" 431 <<
"COMMENT LUTGroupId\n" 432 <<
"COMMENT LUT[1-1024]\n" 433 <<
"COMMENT =================================\n" 435 <<
"COMMENT =================================\n" 436 <<
"COMMENT fg EB structure\n" 438 <<
"COMMENT FgGroupId\n" 439 <<
"COMMENT el, eh, tl, th, lut_fg\n" 440 <<
"COMMENT =================================\n" 441 <<
"COMMENT" << std::endl;
476 for (it = fgMap.begin(); it != fgMap.end(); ++it) {
478 lutGroupId = lutMap.find((*it).first);
479 itSpikeTh = spikeThMap.find((*it).first);
480 std::cout <<
" " << (*it).second << std::endl;
481 std::cout <<
" " << (*lutGroupId).second << std::endl;
482 std::cout <<
" " << (*itSpikeTh).second << std::endl;
496 for (it = map.begin(); it != map.end(); ++it) {
498 lutGroupId = lutMap.find((*it).first);
499 std::cout <<
" " << (*lutGroupId).second << std::endl;
500 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_
def setup(process, global_tag, zero_tesla=False)
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