26 #include "GaudiKernel/StatusCode.h"
50 return StatusCode::SUCCESS;
56 const auto monitoring_number = ctx.eventID().event_number();
60 return StatusCode::SUCCESS;
70 if (!cluster_collection.
isValid())
73 return StatusCode::FAILURE;
76 std::vector<double> clus_phi;
77 std::vector<double> clus_eta;
78 std::vector<double> clus_n_bad_cells;
79 std::vector<double> clus_eng_frac_max;
80 std::vector<unsigned int> size_vec;
81 clus_phi.reserve(1024);
82 clus_eta.reserve(1024);
83 clus_n_bad_cells.reserve(1024);
84 clus_eng_frac_max.reserve(1024);
85 size_vec.reserve(1024);
99 mon_container_size = cluster_collection_ptr->
size();
106 size_vec.push_back(0);
110 size_vec.push_back(num_cell_links->
size());
112 clus_phi.push_back(
cl->phi());
113 clus_eta.push_back(
cl->eta());
123 read_mu = eventInfoDecor(0);
131 int count_1thrsigma = 0, count_2thrsigma = 0;
133 if (really_monitor_cells)
136 if ( !cell_collection.
isValid() )
138 ATH_MSG_ERROR(
" Cannot retrieve CaloCellContainer: " << cell_collection.
name() );
139 return StatusCode::FAILURE;
144 for (
const auto cell : *cell_collection)
148 const bool is_tile = cdde->
is_tile();
155 const float cell_energy =
cell->energy();
169 count_1thrsigma += 1;
172 count_2thrsigma += 1;
179 if (really_monitor_cells)
184 auto moncount_1thrsigma_by_mu2 =
Monitored::Scalar(
"count_1thrsigma_by_mu2", -999.0);
185 auto moncount_2thrsigma_by_mu2 =
Monitored::Scalar(
"count_2thrsigma_by_mu2", -999.0);
190 const float rev_mu = 1.f / read_mu;
191 mon_container_size_by_mu = rev_mu * cluster_collection_ptr->size();
192 const float sqr_rev_mu = rev_mu * rev_mu;
193 moncount_1thrsigma_by_mu2 = sqr_rev_mu * count_1thrsigma;
194 moncount_2thrsigma_by_mu2 = sqr_rev_mu * count_2thrsigma;
197 moncount_1thrsigma = count_1thrsigma;
198 moncount_2thrsigma = count_2thrsigma;
201 mon_clusSignalState, mon_clusSize, mon_badCells, mon_engFrac, mon_size,
202 monmu, mon_container_size_by_mu, moncount_1thrsigma, moncount_2thrsigma,
203 moncount_1thrsigma_by_mu2, moncount_2thrsigma_by_mu2 );
209 mon_container_size_by_mu = cluster_collection_ptr->size() / read_mu;
212 mon_clusSignalState, mon_clusSize, mon_badCells, mon_engFrac, mon_size,
213 monmu, mon_container_size_by_mu);
216 return StatusCode::SUCCESS;