39 meESDaqFraction_ =
nullptr;
40 meESDaqActiveMap_ =
nullptr;
41 meESDaqError_ =
nullptr;
43 for (
int i = 0;
i < 56;
i++) {
44 meESDaqActive_[
i] =
nullptr;
47 if (ps.
exists(
"esMapping")) {
51 edm::LogError(
"ESDaqInfoTask") <<
"preshower mapping pointer not initialized. Temporary.";
52 es_mapping_ =
nullptr;
62 dqmStore_->setCurrentFolder(prefixME_ +
"/EventInfo");
64 sprintf(
histo,
"DAQSummary");
65 meESDaqFraction_ = dqmStore_->bookFloat(
histo);
66 meESDaqFraction_->Fill(0.0);
68 sprintf(
histo,
"DAQSummaryMap");
69 meESDaqActiveMap_ = dqmStore_->book2D(
histo,
histo, 80, 0.5, 80.5, 80, 0.5, 80.5);
70 meESDaqActiveMap_->setAxisTitle(
"Si X", 1);
71 meESDaqActiveMap_->setAxisTitle(
"Si Y", 2);
73 dqmStore_->setCurrentFolder(prefixME_ +
"/EventInfo/DAQContents");
75 for (
int i = 0;
i < 56;
i++) {
76 sprintf(
histo,
"EcalPreshower_%d", ESFedRangeMin_ +
i);
77 meESDaqActive_[
i] = dqmStore_->bookFloat(
histo);
78 meESDaqActive_[
i]->Fill(0.0);
81 for (
int x = 0; x < 80; x++) {
82 for (
int y = 0; y < 80; y++) {
83 if (getFEDNumber(x, y) == ESFedRangeMin_ +
i) {
88 if (ESOnFed_[
i] ==
true)
93 dqmStore_->setCurrentFolder(prefixME_ +
"/ESIntegrityTask");
94 sprintf(
histo,
"DAQError");
95 meESDaqError_ = dqmStore_->book1D(
histo,
histo, 56, ESFedRangeMin_ - 0.5, ESFedRangeMax_ + 0.5);
96 meESDaqError_->setAxisTitle(
"FedID", 1);
105 for (
int x = 0; x < 80; ++x) {
106 for (
int y = 0; y < 80; ++y) {
107 if (getFEDNumber(x, y) > 0)
108 meESDaqActiveMap_->setBinContent(x + 1, y + 1, 0.0);
110 meESDaqActiveMap_->setBinContent(x + 1, y + 1, -1.0);
114 for (
int i = 0;
i < 56;
i++) {
116 meESDaqError_->setBinContent(
i, 0.0);
121 runInfoRec->get(sumFED);
123 std::vector<int> FedsInIds = sumFED->
m_fed_in;
125 float ESFedCount = 0.;
127 for (
unsigned int fedItr = 0; fedItr < FedsInIds.size(); ++fedItr) {
128 int fedID = FedsInIds[fedItr];
130 if (fedID >= ESFedRangeMin_ && fedID <= ESFedRangeMax_) {
131 if (ESOnFed_[fedID - ESFedRangeMin_])
134 if (meESDaqActive_[fedID - ESFedRangeMin_])
135 meESDaqActive_[fedID - ESFedRangeMin_]->Fill(1.0);
137 if (meESDaqActiveMap_) {
138 for (
int x = 0; x < 80; x++) {
139 for (
int y = 0; y < 80; y++) {
140 if (fedID == getFEDNumber(x, y))
141 meESDaqActiveMap_->setBinContent(x + 1, y + 1, 1.0);
146 if (meESDaqFraction_)
147 meESDaqFraction_->Fill(ESFedCount / 40.);
150 for (
int i = 0;
i < 56;
i++) {
151 if (ESOnFed_[fedID - ESFedRangeMin_])
152 meESDaqError_->setBinContent(
i + 1, 1.0);
154 meESDaqError_->setBinContent(
i + 1, 2.0);
161 LogWarning(
"ESDaqInfoTask") <<
"Cannot find any RunInfoRcd" << endl;
166 if (meESDaqFraction_)
167 meESDaqFraction_->Reset();
169 for (
int i = 0;
i < 56;
i++) {
170 if (meESDaqActive_[
i])
171 meESDaqActive_[
i]->Reset();
174 if (meESDaqActiveMap_)
175 meESDaqActiveMap_->Reset();
178 meESDaqError_->Reset();