32 const std::string slotStr{
"slot"};
33 const std::string startStr{
"start"};
34 const std::string stopStr{
"stop"};
35 for (
const size_t algIndex : data.sequencersMap().at(
getName()).at(
index)){
38 const uint32_t slot = alg->getDetail<uint32_t>(slotStr);
39 if (slot != data.onlineSlot()) {
45 const uint64_t start = alg->getDetail<uint64_t>(startStr);
46 const uint64_t stop = alg->getDetail<uint64_t>(stopStr);
52 if (!data.algToRequestMap().count(algIndex))
continue;
53 static const std::string historyStr{
"robs_history"};
54 static const std::string sizeStr{
"robs_size"};
55 for (
size_t requestIdx : data.algToRequestMap().at(algIndex)) {
57 const std::vector<unsigned> robs_history = request->
getDetail<std::vector<unsigned>>(historyStr);
58 const std::vector<uint32_t> robs_size = request->
getDetail<std::vector<uint32_t>>(sizeStr);
60 bool networkRequestIncremented =
false;
61 for (
size_t i = 0; i < robs_size.size(); ++i) {
65 ATH_CHECK(
fill(
"NetworkROBSize_perEvent", robs_size[i] / 500., weight) );
66 networkRequestIncremented =
true;
70 ATH_CHECK(
fill(
"CachedROBSize_perEvent", robs_size[i] / 500., weight) );
76 if (networkRequestIncremented) {
87 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
@ kPerEvent
Variable should buffer fill calls in an accumulator and fill the underlying histogram once at the end...
@ kPerCall
Variable should fill underlying histogram on each fill.
@ kLinear
Linear x-binning.
Caches and propagates event data to be used by monitoring algorithms.
float timeToMilliSec(const uint64_t start, const uint64_t stop) const
Helper function.
CounterBase()=delete
Forbid default constructor.
StatusCode increment(std::string_view name, float weight=1.0)
Convenience function.
void regHistogram(const std::string &name, const std::string &title, const VariableType type=VariableType::kPerCall, const LogType xaxis=kLog, const float min=0.1, const float max=1000000., const size_t bins=70)
Book a histogram for this Counter, to be filled in per-event monitoring.
const std::string & getName() const
Getter for Counter's name.
StatusCode fill(std::string_view name, float value, float weight=1.0)
Fill (for per-Call) or accumulate in a buffer (for per-Event) a quantity histogrammed by a named Vari...
virtual StatusCode newEvent(const CostData &data, size_t index, const float weight=1.) override
Concrete implimentation.
CounterSequence()=delete
Forbid default constructor.
bool getDetail(const std::string &name, TYPE &value) const
Get an TYPE detail from the object.
TrigComposite_v1 TrigComposite
Declare the latest version of the class.