130 printSTRIP(ecaltpgSlidW,ecaltpgWeightGroup,ecaltpgFgStripEE);
144 printTOWEREB(ecaltpgSpikeTh, ecaltpgFgEBGroup,ecaltpgLutGroup);
189 for (it=mymap.begin();it!=mymap.end();++it) {
190 if (it==mymap.begin()) {
191 std::cout<<
"\nPHYSICS_EB "<<(*it).first<<std::endl;
193 std::cout<<
"\nPHYSICS_EE "<<(*it).first<<std::endl;
195 std::cout<<(*it).second.EtSat<<
" "<<(*it).second.ttf_threshold_Low<<
" "<<(*it).second.ttf_threshold_High<<std::endl;
196 std::cout<<(*it).second.FG_lowThreshold<<
" "<<(*it).second.FG_highThreshold<<
" "<<(*it).second.FG_lowRatio<<
" "<<(*it).second.FG_highRatio<<std::endl;
209 for (
int mysub=1;mysub<=2;++mysub) {
211 for (it=slwinmap.begin();it!=slwinmap.end();++it) {
213 groupId=gMap.find((*it).first);
214 int subdet =elid.
subdet();
218 std::cout << std::hex <<
"0x" <<(*it).second<<std::endl ;
219 std::cout <<
"" <<(*groupId).second<< std::endl ;
221 if (it2==fgstripEEmap.end()) {
222 edm::LogWarning(
"EcalTPGCondAnalyzer") <<
" could not find strip Id "<<(*it).first<<
", given in sliding window, inside the EcalTPGFineGranStripEEMap!!!";
227 }
else if (subdet==2) {
229 std::cout << std::hex <<
"0x" <<(*it).second<<std::endl ;
230 std::cout <<
" " <<(*groupId).second<<std::endl ;
232 if (it2==fgstripEEmap.end()) {
233 edm::LogWarning(
"EcalTPGCondAnalyzer") <<
" could not find strip Id "<<(*it).first<<
", given in sliding window, inside the EcalTPGFineGranStripEEMap!!!";
250 for (it=map.begin();it!=map.end();++it) {
251 std::cout <<
"WEIGHT "<<(*it).first<<std::endl;
252 (*it).second.getValues(w0,w1,w2,w3,w4);
253 std::cout <<std::hex<<
"0x"<<w0<<
" 0x"<<w1<<
" 0x"<<w2<<
" 0x"<<w3<<
" 0x"<<w4<<
" "<<std::endl;
262 uint32_t ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh,
LUT;
265 for (it=map.begin();it!=map.end();++it) {
266 std::cout <<
"FG "<<(*it).first<<std::endl;
267 (*it).second.getValues(ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh, LUT);
268 std::cout <<std::hex<<
"0x"<<ThresholdETLow<<
" 0x"<<ThresholdETHigh<<
" 0x"<<RatioLow<<
" 0x"<<RatioHigh<<
" 0x"<<LUT<<std::endl;
278 for (it=map.begin();it!=map.end();++it) {
279 std::cout <<
"LUT "<<(*it).first<<std::endl;
280 const unsigned int *
lut=(*it).second.getLut();
281 for (
unsigned int i=0;
i<1024;++
i)
std::cout <<std::hex<<
"0x"<<*lut++<<std::endl;
293 std::cout<<
"COMMENT ====== barrel crystals ====== "<<std::endl;
294 for (std::vector<DetId>::const_iterator it = ebCells.begin(); it != ebCells.end(); ++it) {
305 std::cout<<
"COMMENT ====== endcap crystals ====== "<<std::endl;
306 for (std::vector<DetId>::const_iterator it = eeCells.begin(); it != eeCells.end(); ++it) {
317 std::cout<<
"COMMENT put your comments here\n"<<
318 "COMMENT =================================\n"<<
319 "COMMENT physics EB structure\n"<<
321 "COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), ttf_threshold_High (GeV)\n"<<
322 "COMMENT FG_lowThreshold (GeV), FG_highThreshold (GeV), FG_lowRatio, FG_highRatio\n"<<
323 "COMMENT =================================\n"<<
325 "COMMENT =================================\n"<<
326 "COMMENT physics EE structure\n"<<
328 "COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), ttf_threshold_High (GeV)\n"<<
329 "COMMENT FG_Threshold (GeV), dummy, dummy, dummy\n"<<
330 "COMMENT =================================\n"<<
332 "COMMENT =================================\n"<<
333 "COMMENT crystal structure (same for EB and EE)\n"<<
335 "COMMENT ped, mult, shift [gain12]\n"<<
336 "COMMENT ped, mult, shift [gain6]\n"<<
337 "COMMENT ped, mult, shift [gain1]\n"<<
338 "COMMENT =================================\n"<<
340 "COMMENT =================================\n"<<
341 "COMMENT strip EB structure\n"<<
343 "COMMENT sliding_window\n"<<
344 "COMMENT weightGroupId\n"<<
345 "COMMENT threshold_sfg lut_sfg\n"<<
346 "COMMENT =================================\n"<<
348 "COMMENT =================================\n"<<
349 "COMMENT strip EE structure\n"<<
351 "COMMENT sliding_window\n"<<
352 "COMMENT weightGroupId\n"<<
353 "COMMENT threshold_fg lut_fg\n"<<
354 "COMMENT =================================\n"<<
356 "COMMENT =================================\n"<<
357 "COMMENT tower EB structure\n"<<
359 "COMMENT LUTGroupId\n"<<
360 "COMMENT FgGroupId\n"<<
361 "COMMENT spike_killing_threshold\n"<<
362 "COMMENT =================================\n"<<
364 "COMMENT =================================\n"<<
365 "COMMENT tower EE structure\n"<<
367 "COMMENT LUTGroupId\n"<<
368 "COMMENT tower_lut_fg\n"<<
369 "COMMENT =================================\n"<<
371 "COMMENT =================================\n"<<
372 "COMMENT Weight structure\n"<<
374 "COMMENT weightGroupId\n"<<
375 "COMMENT w0, w1, w2, w3, w4\n"<<
376 "COMMENT =================================\n"<<
378 "COMMENT =================================\n"<<
379 "COMMENT lut structure\n"<<
381 "COMMENT LUTGroupId\n"<<
382 "COMMENT LUT[1-1024]\n"<<
383 "COMMENT =================================\n"<<
385 "COMMENT =================================\n"<<
386 "COMMENT fg EB structure\n"<<
388 "COMMENT FgGroupId\n"<<
389 "COMMENT el, eh, tl, th, lut_fg\n"<<
390 "COMMENT =================================\n"<<
391 "COMMENT"<<std::endl;
422 for (it=fgMap.begin();it!=fgMap.end();++it) {
424 lutGroupId=lutMap.find((*it).first);
425 itSpikeTh=spikeThMap.find((*it).first);
426 std::cout <<
" "<<(*it).second<<std::endl;
427 std::cout <<
" "<<(*lutGroupId).second<<std::endl;
428 std::cout <<
" "<<(*itSpikeTh).second<<std::endl;
440 for (it=map.begin();it!=map.end();++it) {
442 lutGroupId=lutMap.find((*it).first);
443 std::cout <<
" "<<(*lutGroupId).second<<std::endl;
444 std::cout <<std::hex<<
"0x"<<(*it).second<<std::endl;
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