49 return StatusCode::FAILURE;
73 std::vector<Monitored::Scalar<double>> jem_em_2d_eta_jetEl_HitMapSlice;
74 std::vector<Monitored::Scalar<double>> jem_em_2d_phi_jetEl_HitMapSlice;
75 std::vector<Monitored::Scalar<double>> jem_had_2d_eta_jetEl_HitMapSlice;
76 std::vector<Monitored::Scalar<double>> jem_had_2d_phi_jetEl_HitMapSlice;
99 std::vector<int> overview(2);
109 for (; jeIterator != jeIteratorEnd; ++jeIterator)
114 const double eta = je->
eta();
115 const double phi = je->
phi();
116 const int slice_n = je->
peak();
122 ATH_MSG_DEBUG(
"JE has coords (eta,phi): " << eta <<
", " << phi
123 <<
" and energies (Em,Had): " << emEnergy <<
", "
124 << hadEnergy <<
" HW Crate:" << crate
125 <<
" Module: " <<
module <<
" " << cord);
129 etJepJem_em = emEnergy;
131 em_weight = emEnergy;
139 etJepJem_had = hadEnergy;
141 had_weight = hadEnergy;
150 jem_1d_triggeredSlice_num = slice_n;
156 const int slicesEm = emEnergyVec.size();
157 const int slicesHad = hadEnergyVec.size();
159 if (
i < slicesEm && emEnergyVec[
i] > 0) {
160 fillJEMEtaVsPhiMon(eta, phi, jem_em_2d_eta_jetEl_HitMapSlice[
i], jem_em_2d_phi_jetEl_HitMapSlice[
i]);
162 if (
i < slicesHad && hadEnergyVec[
i] > 0) {
163 fillJEMEtaVsPhiMon(eta, phi, jem_had_2d_eta_jetEl_HitMapSlice[
i], jem_had_2d_phi_jetEl_HitMapSlice[
i]);
171 const int ypos = crate * 16 +
module;
173 bool emParityError =
false;
174 bool hadParityError =
false;
175 bool emLinkDownError =
false;
176 bool hadLinkDownError =
false;
178 if (
err.get(DataError::Parity)) {
179 emParityError =
true;
185 if (haderr.
get(DataError::Parity)) {
186 hadParityError =
true;
192 if (
err.get(DataError::LinkDown)) {
193 emLinkDownError =
true;
196 overview[crate] |= (1 <<
EMLink);
199 if (haderr.
get(DataError::LinkDown)) {
200 hadLinkDownError =
true;
203 overview[crate] |= (1 <<
HadLink);
205 parityErrorJepJE_em = emParityError;
207 parityErrorJepJE_had = hadParityError;
209 linkDownErrorJepJE_em = emLinkDownError;
211 linkDownErrorJepJE_had = hadLinkDownError;
218 for (
int bit = 0; bit < 8; ++bit) {
219 if ((
status >> bit) & 0x1) {
220 GLinkParityError = bit;
238 return StatusCode::FAILURE;
249 for (; sumsIterator != sumsIteratorEnd; ++sumsIterator) {
251 const int ex = sums->
ex();
252 const int ey = sums->
ey();
253 const int et = sums->
et();
264 <<
" Module: " << sums->
module()
278 return StatusCode::FAILURE;
295 std::vector<int> tobCount(vecSize);
296 for (; roiIterator != roiIteratorEnd; ++roiIterator) {
298 const int crate = roi->
crate();
304 const double eta = coordRange.
eta();
305 const double phi = coordRange.
phi();
308 jemRoiEnergyLg = energyLg;
310 jemRoiEnergyWeight = energyLg;
316 jemRoiEnergySm = energySm;
322 for (
int crate = 0; crate <
m_crates; ++crate) {
323 for (
int jem = 0; jem <
m_modules; ++jem) {
327 jemRoiTOBsPerJEM =
val;
333 return StatusCode::SUCCESS;
341 if (eta < -3.2 || eta > 3.2)
344 phiMonitoredScalar = phi + halfBin;
346 phiMonitoredScalar = phi - halfBin;
350 phiMonitoredScalar = phi;
363 const double absEta = std::abs(eta);
372 etaMonitoredScalar =
etaMod;
373 if (eta < -3.2 || eta > 3.2) {
375 phiMod = std::floor(phiMod / 2) * 2. + 1.;
376 phiMonitoredScalar = phiMod + 0.5;
378 phiMonitoredScalar = phiMod - 0.5;
382 phiMonitoredScalar = phiMod;
394 const double absEta = std::abs(eta);
403 etaMonitoredScalar =
etaMod;
404 if (eta < -3.2 || eta > 3.2) {
406 phiMod = std::floor(phiMod / 2) * 2. + 1.;
407 phiMonitoredScalar = phiMod + 0.5;
409 phiMonitoredScalar = phiMod - 0.5;
413 phiMonitoredScalar = phiMod;
425 phiMonitoredScalar = phiMod;
427 const double absEta = std::abs(eta);
437 const double etaShift = 0.1;
439 if (eta > 3.8 && eta < 4.0) {
440 etaMonitoredScalar = 3.2 - etaShift;
443 etaMonitoredScalar =
etaMod - etaShift;
453 phiMonitoredScalar = phiMod;
455 const double absEta = std::abs(eta);
465 const double etaShift = 0.1;
467 if (eta > 3.8 && eta < 4.0) {
468 etaMonitoredScalar = 3.2 - etaShift;
471 etaMonitoredScalar =
etaMod - etaShift;