88 printSTRIP(ecaltpgSlidW, ecaltpgWeightGroup, ecaltpgFgStripEE);
96 printTOWEREB(ecaltpgSpikeTh, ecaltpgFgEBGroup, ecaltpgLutGroup);
114 for (it = mymap.begin(); it != mymap.end(); ++it) {
115 if (it == mymap.begin()) {
121 << (*it).second.EtSat <<
" " << (*it).second.ttf_threshold_Low <<
" " << (*it).second.ttf_threshold_High;
122 edm::LogVerbatim(
"EcalTPCondAnalyzer") << (*it).second.FG_lowThreshold <<
" " << (*it).second.FG_highThreshold
123 <<
" " << (*it).second.FG_lowRatio <<
" " << (*it).second.FG_highRatio;
138 for (
int mysub = 1; mysub <= 2; ++mysub) {
140 for (it = slwinmap.begin(); it != slwinmap.end(); ++it) {
142 groupId = gMap.find((*it).first);
143 int subdet = elid.
subdet();
144 if (subdet == mysub) {
147 << std::hex <<
"0x" << (*it).second <<
"\n" 148 <<
"" << (*groupId).second;
150 if (it2 == fgstripEEmap.end()) {
151 edm::LogWarning(
"EcalTPGCondAnalyzer") <<
" could not find strip Id " << (*it).first
152 <<
", given in sliding window, inside the " 153 "EcalTPGFineGranStripEEMap!!!";
158 }
else if (subdet == 2) {
160 << std::hex <<
"0x" << (*it).second <<
"\n" 161 <<
" " << (*groupId).second;
163 if (it2 == fgstripEEmap.end()) {
164 edm::LogWarning(
"EcalTPGCondAnalyzer") <<
" could not find strip Id " << (*it).first
165 <<
", given in sliding window, inside the " 166 "EcalTPGFineGranStripEEMap!!!";
180 uint32_t w0, w1,
w2,
w3,
w4;
182 for (it =
map.begin(); it !=
map.end(); ++it) {
184 (*it).second.getValues(w0, w1,
w2,
w3,
w4);
186 << std::hex <<
"0x" << w0 <<
" 0x" << w1 <<
" 0x" <<
w2 <<
" 0x" <<
w3 <<
" 0x" <<
w4 <<
" \n\n\n";
193 uint32_t ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh,
LUT;
195 for (it =
map.begin(); it !=
map.end(); ++it) {
197 (*it).second.getValues(ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh,
LUT);
198 edm::LogVerbatim(
"EcalTPCondAnalyzer") << std::hex <<
"0x" << ThresholdETLow <<
" 0x" << ThresholdETHigh <<
" 0x" 199 << RatioLow <<
" 0x" << RatioHigh <<
" 0x" <<
LUT;
208 for (it =
map.begin(); it !=
map.end(); ++it) {
210 const unsigned int *lut = (*it).second.getLut();
211 for (
unsigned int i = 0;
i < 1024; ++
i)
223 edm::LogVerbatim(
"EcalTPCondAnalyzer") <<
"COMMENT ====== barrel crystals ====== ";
224 for (std::vector<DetId>::const_iterator it = ebCells.begin(); it != ebCells.end(); ++it) {
236 edm::LogVerbatim(
"EcalTPCondAnalyzer") <<
"COMMENT ====== endcap crystals ====== ";
237 for (std::vector<DetId>::const_iterator it = eeCells.begin(); it != eeCells.end(); ++it) {
249 edm::LogVerbatim(
"EcalTPCondAnalyzer") <<
"COMMENT put your comments here\n" 250 <<
"COMMENT =================================\n" 251 <<
"COMMENT physics EB structure\n" 253 <<
"COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), " 254 "ttf_threshold_High (GeV)\n" 255 <<
"COMMENT FG_lowThreshold (GeV), FG_highThreshold (GeV), " 256 "FG_lowRatio, FG_highRatio\n" 257 <<
"COMMENT =================================\n" 259 <<
"COMMENT =================================\n" 260 <<
"COMMENT physics EE structure\n" 262 <<
"COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), " 263 "ttf_threshold_High (GeV)\n" 264 <<
"COMMENT FG_Threshold (GeV), dummy, dummy, dummy\n" 265 <<
"COMMENT =================================\n" 267 <<
"COMMENT =================================\n" 268 <<
"COMMENT crystal structure (same for EB and EE)\n" 270 <<
"COMMENT ped, mult, shift [gain12]\n" 271 <<
"COMMENT ped, mult, shift [gain6]\n" 272 <<
"COMMENT ped, mult, shift [gain1]\n" 273 <<
"COMMENT =================================\n" 275 <<
"COMMENT =================================\n" 276 <<
"COMMENT strip EB structure\n" 278 <<
"COMMENT sliding_window\n" 279 <<
"COMMENT weightGroupId\n" 280 <<
"COMMENT threshold_sfg lut_sfg\n" 281 <<
"COMMENT =================================\n" 283 <<
"COMMENT =================================\n" 284 <<
"COMMENT strip EE structure\n" 286 <<
"COMMENT sliding_window\n" 287 <<
"COMMENT weightGroupId\n" 288 <<
"COMMENT threshold_fg lut_fg\n" 289 <<
"COMMENT =================================\n" 291 <<
"COMMENT =================================\n" 292 <<
"COMMENT tower EB structure\n" 294 <<
"COMMENT LUTGroupId\n" 295 <<
"COMMENT FgGroupId\n" 296 <<
"COMMENT spike_killing_threshold\n" 297 <<
"COMMENT =================================\n" 299 <<
"COMMENT =================================\n" 300 <<
"COMMENT tower EE structure\n" 302 <<
"COMMENT LUTGroupId\n" 303 <<
"COMMENT tower_lut_fg\n" 304 <<
"COMMENT =================================\n" 306 <<
"COMMENT =================================\n" 307 <<
"COMMENT Weight structure\n" 309 <<
"COMMENT weightGroupId\n" 310 <<
"COMMENT w0, w1, w2, w3, w4\n" 311 <<
"COMMENT =================================\n" 313 <<
"COMMENT =================================\n" 314 <<
"COMMENT lut structure\n" 316 <<
"COMMENT LUTGroupId\n" 317 <<
"COMMENT LUT[1-1024]\n" 318 <<
"COMMENT =================================\n" 320 <<
"COMMENT =================================\n" 321 <<
"COMMENT fg EB structure\n" 323 <<
"COMMENT FgGroupId\n" 324 <<
"COMMENT el, eh, tl, th, lut_fg\n" 325 <<
"COMMENT =================================\n" 341 for (it = fgMap.begin(); it != fgMap.end(); ++it) {
343 lutGroupId = lutMap.find((*it).first);
344 itSpikeTh = spikeThMap.find((*it).first);
346 <<
" " << (*lutGroupId).second <<
"\n" 347 <<
" " << (*itSpikeTh).second;
359 for (it =
map.begin(); it !=
map.end(); ++it) {
361 lutGroupId = lutMap.find((*it).first);
362 edm::LogVerbatim(
"EcalTPCondAnalyzer") <<
" " << (*lutGroupId).second <<
"\n" << std::hex <<
"0x" << (*it).second;
edm::ESGetToken< EcalTPGPhysicsConst, EcalTPGPhysicsConstRcd > tokenEcalTPGPhysics_
std::map< uint32_t, EcalTPGWeights >::const_iterator EcalTPGWeightMapItr
Log< level::Info, true > LogVerbatim
const std::map< uint32_t, uint32_t > & getMap() const
std::map< uint32_t, EcalTPGFineGrainStripEE::Item > EcalTPGFineGrainStripEEMap
std::map< uint32_t, uint32_t >::const_iterator EcalTPGFineGrainTowerEEMapIterator
const EcalTPGLutMap & getMap() const
const CaloSubdetectorGeometry * theBarrelGeometry_
common ppss p3p6s2 common epss epspn46 common const1 w2
const CaloSubdetectorGeometry * theEndcapGeometry_
edm::ESGetToken< EcalTPGWeightGroup, EcalTPGWeightGroupRcd > tokenEcalTPGWeightGroup_
edm::ESGetToken< CaloSubdetectorGeometry, EcalBarrelGeometryRecord > tokenBarrelGeom_
void printEcalTPGFineGrainEBIdMap(const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB) const
edm::ESGetToken< EcalTPGSpike, EcalTPGSpikeRcd > tokenEcalTPGSpike_
edm::ESGetToken< EcalTPGPedestals, EcalTPGPedestalsRcd > tokenEcalTPGPedestals_
edm::ESGetToken< EcalTPGFineGrainTowerEE, EcalTPGFineGrainTowerEERcd > tokenEcalTPGFineGrainTowerEE_
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
const std::map< uint32_t, uint32_t > & getMap() const
EcalSubdetector subdet() const
get the subdet
unsigned long long cacheID_
const EcalTPGGroupsMap & getMap() const
std::map< uint32_t, uint32_t > EcalTPGSlidingWindowMap
void printTOWEREB(const EcalTPGSpike *ecaltpgSpike, const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGLutGroup *ecaltpgLutGroup) const
~EcalTPCondAnalyzer() override
void printTOWEREE(const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE, const EcalTPGLutGroup *ecaltpgLutGroup) const
unsigned long long getRecords(edm::EventSetup const &setup)
void endRun(edm::Run const &, edm::EventSetup const &) override
edm::ESGetToken< EcalTPGLutGroup, EcalTPGLutGroupRcd > tokenEcalTPGLutGroup_
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
std::map< uint32_t, EcalTPGFineGrainStripEE::Item >::const_iterator EcalTPGFineGrainStripEEMapIterator
edm::ESGetToken< EcalTPGSlidingWindow, EcalTPGSlidingWindowRcd > tokenEcalTPGSlidingWindow_
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)
void printComment() const
bool getData(T &iHolder) const
std::map< uint32_t, EcalTPGWeights > EcalTPGWeightMap
void printEcalTPGLutIdMap(const EcalTPGLutIdMap *ecaltpgLut) const
void printWEIGHT(const EcalTPGWeightIdMap *ecaltpgWeightMap) const
std::map< uint32_t, uint32_t > EcalTPGFineGrainTowerEEMap
edm::ESGetToken< EcalTPGFineGrainEBIdMap, EcalTPGFineGrainEBIdMapRcd > tokenEcalTPGFineGrainEBIdMap_
void beginRun(const edm::Run &run, const edm::EventSetup &evtSetup) override
edm::ESGetToken< EcalTPGLinearizationConst, EcalTPGLinearizationConstRcd > tokenEcalTPGLinearization_
const std::map< uint32_t, Item > & getMap() const
std::map< uint32_t, EcalTPGFineGrainConstEB >::const_iterator EcalTPGFineGrainEBMapItr
const EcalTPGWeightMap & getMap() const
void printCRYSTAL(const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin)
const std::map< uint32_t, uint16_t > & getMap() const
edm::ESGetToken< EcalTPGFineGrainStripEE, EcalTPGFineGrainStripEERcd > tokenEcalTPGFineGrainStripEE_
const EcalTPGFineGrainEBMap & getMap() const
void analyze(const edm::Event &, const edm::EventSetup &) override
std::map< uint32_t, EcalTPGLut > EcalTPGLutMap
common ppss p3p6s2 common epss epspn46 common const1 w3
std::map< uint32_t, EcalTPGFineGrainConstEB > EcalTPGFineGrainEBMap
const std::map< uint32_t, Item > & getMap() const
edm::ESGetToken< EcalTPGWeightIdMap, EcalTPGWeightIdMapRcd > tokenEcalTPGWeightIdMap_
std::map< uint32_t, uint16_t > EcalTPGSpikeMap
edm::ESGetToken< EcalTPGLutIdMap, EcalTPGLutIdMapRcd > tokenEcalTPGLutIdMap_
edm::ESGetToken< CaloSubdetectorGeometry, EcalEndcapGeometryRecord > tokenEndcapGeom_
const self & getMap() const
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
std::vector< unsigned short int > LUT
Log< level::Warning, false > LogWarning
std::map< uint32_t, EcalTPGPhysicsConst::Item >::const_iterator EcalTPGPhysicsConstMapIterator
void printEcalTPGPhysicsConst(const EcalTPGPhysicsConst *) 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
edm::ESGetToken< EcalTPGFineGrainEBGroup, EcalTPGFineGrainEBGroupRcd > tokenEcalTPGFineGrainEBGroup_