126 printSTRIP(ecaltpgSlidW,ecaltpgWeightGroup,ecaltpgFgStripEE);
159 for (it=mymap.begin();it!=mymap.end();++it) {
160 if (it==mymap.begin()) {
161 std::cout<<
"\nPHYSICS_EB "<<(*it).first<<std::endl;
163 std::cout<<
"\nPHYSICS_EE "<<(*it).first<<std::endl;
165 std::cout<<(*it).second.EtSat<<
" "<<(*it).second.ttf_threshold_Low<<
" "<<(*it).second.ttf_threshold_High<<std::endl;
166 std::cout<<(*it).second.FG_lowThreshold<<
" "<<(*it).second.FG_highThreshold<<
" "<<(*it).second.FG_lowRatio<<
" "<<(*it).second.FG_highRatio<<std::endl;
179 for (
int mysub=1;mysub<=2;++mysub) {
181 for (it=slwinmap.begin();it!=slwinmap.end();++it) {
183 groupId=gMap.find((*it).first);
184 int subdet =elid.
subdet();
187 std::cout<<
"STRIP_EB "<<std::dec<<(*it).first<<std::endl;
188 std::cout << std::hex <<
"0x" <<(*it).second<<std::endl ;
189 std::cout <<
" " <<(*groupId).second<< std::endl ;
190 }
else if (subdet==2) {
191 std::cout<<
"STRIP_EE "<<std::dec<<(*it).first<<std::endl;
192 std::cout << std::hex <<
"0x" <<(*it).second<<std::endl ;
193 std::cout <<
" " <<(*groupId).second<<std::endl ;
195 if (it2==fgstripEEmap.end()) {
196 edm::LogWarning(
"EcalTPGCondAnalyzer") <<
" could not find strip Id "<<(*it).first<<
", given in sliding window, inside the EcalTPGFineGranStripEEMap!!!";
213 for (it=map.begin();it!=map.end();++it) {
214 std::cout <<
"WEIGHT "<<(*it).first<<std::endl;
215 (*it).second.getValues(w0,w1,w2,w3,w4);
216 std::cout <<std::hex<<
"0x"<<w0<<
" 0x"<<w1<<
" 0x"<<w2<<
" 0x"<<w3<<
" 0x"<<w4<<
" "<<std::endl;
223 uint32_t ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh,
LUT;
226 for (it=map.begin();it!=map.end();++it) {
227 std::cout <<
"FG "<<(*it).first<<std::endl;
228 (*it).second.getValues(ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh, LUT);
229 std::cout <<std::hex<<
"0x"<<ThresholdETLow<<
" 0x"<<ThresholdETHigh<<
" 0x"<<RatioLow<<
" 0x"<<RatioHigh<<
" 0x"<<LUT<<std::endl;
239 for (it=map.begin();it!=map.end();++it) {
240 std::cout <<
"LUT "<<(*it).first<<std::endl;
241 const unsigned int * lut=(*it).second.getLut();
242 for (
unsigned int i=0;
i<1024;++
i)
std::cout <<std::hex<<
"0x"<<*lut++<<std::endl;
254 std::cout<<
"COMMENT ====== barrel crystals ====== "<<std::endl;
255 for (std::vector<DetId>::const_iterator it = ebCells.begin(); it != ebCells.end(); ++it) {
257 std::cout <<
"CRYSTAL "<<std::dec<<
id.rawId()<<std::endl;
266 std::cout<<
"COMMENT ====== endcap crystals ====== "<<std::endl;
267 for (std::vector<DetId>::const_iterator it = eeCells.begin(); it != eeCells.end(); ++it) {
269 std::cout <<
"CRYSTAL "<<std::dec<<
id.rawId()<<std::endl;
278 std::cout<<
"COMMENT put your comments here\n"<<
279 "COMMENT =================================\n"<<
280 "COMMENT physics EB structure\n"<<
282 "COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), ttf_threshold_High (GeV)\n"<<
283 "COMMENT FG_lowThreshold (GeV), FG_highThreshold (GeV), FG_lowRatio, FG_highRatio\n"<<
284 "COMMENT =================================\n"<<
286 "COMMENT =================================\n"<<
287 "COMMENT physics EE structure\n"<<
289 "COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), ttf_threshold_High (GeV)\n"<<
290 "COMMENT FG_Threshold (GeV), dummy, dummy, dummy\n"<<
291 "COMMENT =================================\n"<<
293 "COMMENT =================================\n"<<
294 "COMMENT crystal structure (same for EB and EE)\n"<<
296 "COMMENT ped, mult, shift [gain12]\n"<<
297 "COMMENT ped, mult, shift [gain6]\n"<<
298 "COMMENT ped, mult, shift [gain1]\n"<<
299 "COMMENT =================================\n"<<
301 "COMMENT =================================\n"<<
302 "COMMENT strip EB structure\n"<<
304 "COMMENT sliding_window\n"<<
305 "COMMENT weightGroupId\n"<<
306 "COMMENT =================================\n"<<
308 "COMMENT =================================\n"<<
309 "COMMENT strip EE structure\n"<<
311 "COMMENT sliding_window\n"<<
312 "COMMENT weightGroupId\n"<<
313 "COMMENT threshold_fg strip_lut_fg\n"<<
314 "COMMENT =================================\n"<<
316 "COMMENT =================================\n"<<
317 "COMMENT tower EB structure\n"<<
319 "COMMENT LUTGroupId\n"<<
320 "COMMENT FgGroupId\n"<<
321 "COMMENT =================================\n"<<
323 "COMMENT =================================\n"<<
324 "COMMENT tower EE structure\n"<<
326 "COMMENT LUTGroupId\n"<<
327 "COMMENT tower_lut_fg\n"<<
328 "COMMENT =================================\n"<<
330 "COMMENT =================================\n"<<
331 "COMMENT Weight structure\n"<<
333 "COMMENT weightGroupId\n"<<
334 "COMMENT w0, w1, w2, w3, w4\n"<<
335 "COMMENT =================================\n"<<
337 "COMMENT =================================\n"<<
338 "COMMENT lut structure\n"<<
340 "COMMENT LUTGroupId\n"<<
341 "COMMENT LUT[1-1024]\n"<<
342 "COMMENT =================================\n"<<
344 "COMMENT =================================\n"<<
345 "COMMENT fg EB structure\n"<<
347 "COMMENT FgGroupId\n"<<
348 "COMMENT el, eh, tl, th, lut_fg\n"<<
349 "COMMENT =================================\n"<<
350 "COMMENT"<<std::endl;
361 for (it=fgMap.begin();it!=fgMap.end();++it) {
362 std::cout <<
"TOWER_EB "<<std::dec<<(*it).first<<std::endl;
363 lutGroupId=lutMap.find((*it).first);
364 std::cout <<
" "<<(*it).second<<std::endl;
365 std::cout <<
" "<<(*lutGroupId).second<<std::endl;
377 for (it=map.begin();it!=map.end();++it) {
378 std::cout <<
"TOWER_EE "<<std::dec<<(*it).first<<std::endl;
379 lutGroupId=lutMap.find((*it).first);
380 std::cout <<
" "<<(*lutGroupId).second<<std::endl;
381 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_
void printTOWEREB(const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGLutGroup *ecaltpgLutGroup) const
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)
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 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, 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
EcalSubdetector subdet() const
get the subdet