55 const auto bcid = context.eventID().bunch_crossing_id();
58 std::map<HWIdentifier,uint32_t> cells_per_feb;
59 for(uint32_t i=0;i<n_febs;i++){
61 cells_per_feb[feb_id]=0;
71 std::vector<uint32_t> febID;
73 std::vector<uint32_t> cellCount;
74 cellCount.reserve(2000);
75 std::vector<uint32_t> cellCountPerLayer[25];
76 for(
size_t i=0;i<25;i++)cellCountPerLayer[i].reserve(200);
77 std::vector<uint32_t> cellCountPerLayerIW[2];
78 for(
size_t i=0;i<2;i++)cellCountPerLayerIW[i].reserve(200);
80 int larAboveSizeSize=0;
83 for (
auto const* cell : *inputCellHandle) {
84 if (!cell->caloDDE()->is_tile() ){
87 float noiseSigma = noiseCDO->
getNoise(cellID,cell->gain());
89 HWIdentifier hwid = (*onoff)->createSignalChannelIDFromHash(offhashid);
91 uint32_t ncells_in_feb = cells_per_feb[hwid_feb];
95 cells_per_feb[hwid_feb]=ncells_in_feb+1;
101 for(uint32_t i=0;i<n_febs;i++){
105 Identifier id = (*onoff)->cnvToIdentifier(hw);
106 cellCount.push_back(cells_per_feb[feb_id]);
108 if (calosample < 5 ) {
109 cellCountPerLayer[calosample].push_back(cells_per_feb[feb_id]);
113 cellCountPerLayer[calosample].push_back(cells_per_feb[feb_id]);
116 cellCountPerLayerIW[calosample-6].push_back(cells_per_feb[feb_id]);
122 mon_inputSize = (*inputCellHandle).size();
123 mon_outputSize = outputSize;
124 mon_larSize = larSize;
125 mon_larAboveSigmaSize = larAboveSizeSize;
138 std::vector<std::reference_wrapper<Monitored::IMonitoredVariable>> variables;
139 variables.reserve(50);
140 variables.push_back(std::ref(mon_bcid));
141 variables.push_back(std::ref(mon_inputSize));
142 variables.push_back(std::ref(mon_outputSize));
143 variables.push_back(std::ref(mon_larSize));
144 variables.push_back(std::ref(mon_larAboveSigmaSize) );
145 variables.push_back(std::ref(mon_cells) );
146 variables.push_back(std::ref(mon_febID) );
147 variables.push_back(std::ref(mon0));
148 variables.push_back(std::ref(mon1));
149 variables.push_back(std::ref(mon2));
150 variables.push_back(std::ref(mon3));
151 variables.push_back(std::ref(mon4));
152 variables.push_back(std::ref(mon5));
153 variables.push_back(std::ref(mon6));
154 variables.push_back(std::ref(mon7));
155 variables.push_back(std::ref(mon8));
156 variables.push_back(std::ref(mon9));
160 return StatusCode::SUCCESS;