131 printSTRIP(ecaltpgSlidW,ecaltpgWeightGroup,ecaltpgFgStripEE);
145 printTOWEREB(ecaltpgSpikeTh, ecaltpgFgEBGroup,ecaltpgLutGroup);
190 for (it=mymap.begin();it!=mymap.end();++it) {
191 if (it==mymap.begin()) {
192 std::cout<<
"\nPHYSICS_EB "<<(*it).first<<std::endl;
194 std::cout<<
"\nPHYSICS_EE "<<(*it).first<<std::endl;
196 std::cout<<(*it).second.EtSat<<
" "<<(*it).second.ttf_threshold_Low<<
" "<<(*it).second.ttf_threshold_High<<std::endl;
197 std::cout<<(*it).second.FG_lowThreshold<<
" "<<(*it).second.FG_highThreshold<<
" "<<(*it).second.FG_lowRatio<<
" "<<(*it).second.FG_highRatio<<std::endl;
210 for (
int mysub=1;mysub<=2;++mysub) {
212 for (it=slwinmap.begin();it!=slwinmap.end();++it) {
214 groupId=gMap.find((*it).first);
215 int subdet =elid.
subdet();
218 std::cout<<
"STRIP_EB "<<std::dec<<(*it).first<<std::endl;
219 std::cout << std::hex <<
"0x" <<(*it).second<<std::endl ;
220 std::cout <<
"" <<(*groupId).second<< std::endl ;
222 if (it2==fgstripEEmap.end()) {
223 edm::LogWarning(
"EcalTPGCondAnalyzer") <<
" could not find strip Id "<<(*it).first<<
", given in sliding window, inside the EcalTPGFineGranStripEEMap!!!";
228 }
else if (subdet==2) {
229 std::cout<<
"STRIP_EE "<<std::dec<<(*it).first<<std::endl;
230 std::cout << std::hex <<
"0x" <<(*it).second<<std::endl ;
231 std::cout <<
" " <<(*groupId).second<<std::endl ;
233 if (it2==fgstripEEmap.end()) {
234 edm::LogWarning(
"EcalTPGCondAnalyzer") <<
" could not find strip Id "<<(*it).first<<
", given in sliding window, inside the EcalTPGFineGranStripEEMap!!!";
251 for (it=map.begin();it!=map.end();++it) {
252 std::cout <<
"WEIGHT "<<(*it).first<<std::endl;
253 (*it).second.getValues(w0,w1,w2,w3,w4);
254 std::cout <<std::hex<<
"0x"<<w0<<
" 0x"<<w1<<
" 0x"<<w2<<
" 0x"<<w3<<
" 0x"<<w4<<
" "<<std::endl;
263 uint32_t ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh,
LUT;
266 for (it=map.begin();it!=map.end();++it) {
267 std::cout <<
"FG "<<(*it).first<<std::endl;
268 (*it).second.getValues(ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh, LUT);
269 std::cout <<std::hex<<
"0x"<<ThresholdETLow<<
" 0x"<<ThresholdETHigh<<
" 0x"<<RatioLow<<
" 0x"<<RatioHigh<<
" 0x"<<LUT<<std::endl;
279 for (it=map.begin();it!=map.end();++it) {
280 std::cout <<
"LUT "<<(*it).first<<std::endl;
281 const unsigned int *
lut=(*it).second.getLut();
282 for (
unsigned int i=0;
i<1024;++
i)
std::cout <<std::hex<<
"0x"<<*lut++<<std::endl;
294 std::cout<<
"COMMENT ====== barrel crystals ====== "<<std::endl;
295 for (std::vector<DetId>::const_iterator it = ebCells.begin(); it != ebCells.end(); ++it) {
297 std::cout <<
"CRYSTAL "<<std::dec<<
id.rawId()<<std::endl;
306 std::cout<<
"COMMENT ====== endcap crystals ====== "<<std::endl;
307 for (std::vector<DetId>::const_iterator it = eeCells.begin(); it != eeCells.end(); ++it) {
309 std::cout <<
"CRYSTAL "<<std::dec<<
id.rawId()<<std::endl;
318 std::cout<<
"COMMENT put your comments here\n"<<
319 "COMMENT =================================\n"<<
320 "COMMENT physics EB structure\n"<<
322 "COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), ttf_threshold_High (GeV)\n"<<
323 "COMMENT FG_lowThreshold (GeV), FG_highThreshold (GeV), FG_lowRatio, FG_highRatio\n"<<
324 "COMMENT =================================\n"<<
326 "COMMENT =================================\n"<<
327 "COMMENT physics EE structure\n"<<
329 "COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), ttf_threshold_High (GeV)\n"<<
330 "COMMENT FG_Threshold (GeV), dummy, dummy, dummy\n"<<
331 "COMMENT =================================\n"<<
333 "COMMENT =================================\n"<<
334 "COMMENT crystal structure (same for EB and EE)\n"<<
336 "COMMENT ped, mult, shift [gain12]\n"<<
337 "COMMENT ped, mult, shift [gain6]\n"<<
338 "COMMENT ped, mult, shift [gain1]\n"<<
339 "COMMENT =================================\n"<<
341 "COMMENT =================================\n"<<
342 "COMMENT strip EB structure\n"<<
344 "COMMENT sliding_window\n"<<
345 "COMMENT weightGroupId\n"<<
346 "COMMENT threshold_sfg lut_sfg\n"<<
347 "COMMENT =================================\n"<<
349 "COMMENT =================================\n"<<
350 "COMMENT strip EE structure\n"<<
352 "COMMENT sliding_window\n"<<
353 "COMMENT weightGroupId\n"<<
354 "COMMENT threshold_fg lut_fg\n"<<
355 "COMMENT =================================\n"<<
357 "COMMENT =================================\n"<<
358 "COMMENT tower EB structure\n"<<
360 "COMMENT LUTGroupId\n"<<
361 "COMMENT FgGroupId\n"<<
362 "COMMENT spike_killing_threshold\n"<<
363 "COMMENT =================================\n"<<
365 "COMMENT =================================\n"<<
366 "COMMENT tower EE structure\n"<<
368 "COMMENT LUTGroupId\n"<<
369 "COMMENT tower_lut_fg\n"<<
370 "COMMENT =================================\n"<<
372 "COMMENT =================================\n"<<
373 "COMMENT Weight structure\n"<<
375 "COMMENT weightGroupId\n"<<
376 "COMMENT w0, w1, w2, w3, w4\n"<<
377 "COMMENT =================================\n"<<
379 "COMMENT =================================\n"<<
380 "COMMENT lut structure\n"<<
382 "COMMENT LUTGroupId\n"<<
383 "COMMENT LUT[1-1024]\n"<<
384 "COMMENT =================================\n"<<
386 "COMMENT =================================\n"<<
387 "COMMENT fg EB structure\n"<<
389 "COMMENT FgGroupId\n"<<
390 "COMMENT el, eh, tl, th, lut_fg\n"<<
391 "COMMENT =================================\n"<<
392 "COMMENT"<<std::endl;
423 for (it=fgMap.begin();it!=fgMap.end();++it) {
424 std::cout <<
"TOWER_EB "<<std::dec<<(*it).first<<std::endl;
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) {
442 std::cout <<
"TOWER_EE "<<std::dec<<(*it).first<<std::endl;
443 lutGroupId=lutMap.find((*it).first);
444 std::cout <<
" "<<(*lutGroupId).second<<std::endl;
445 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_
std::map< uint32_t, uint32_t > EcalTPGSlidingWindowMap
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
virtual void analyze(const edm::Event &, const edm::EventSetup &)
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)
T const * product() const
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
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
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