ATLAS Offline Software
Loading...
Searching...
No Matches
dqm_algorithms::TileDQAction Class Reference

#include <LastBinThresholdAction.h>

Collaboration diagram for dqm_algorithms::TileDQAction:

Public Member Functions

void operator() (const std::string &histogramName, std::string action, double averageBinContent, double lastBinContent) const

Detailed Description

Definition at line 40 of file LastBinThresholdAction.h.

Member Function Documentation

◆ operator()()

void dqm_algorithms::TileDQAction::operator() ( const std::string & histogramName,
std::string action,
double averageBinContent,
double lastBinContent ) const

Definition at line 36 of file LastBinThresholdAction.cxx.

37 {
38
39 const char* actionPath = std::getenv("TILE_DQ_ACTION_PATH");
40 if (actionPath != nullptr) action = std::string(actionPath) + "/" + action;
41
42 std::smatch match;
43 std::regex expression (".*([LE]B[AC]\\d\\d).*");
44
45 std::string module("UNKNOWN");
46 if (std::regex_search(histogramName, match, expression) && match.size() > 1) {
47 module = match.str(1);
48 }
49
50 action += " ";
51 action += histogramName;
52 action += " ";
53 action += module;
54 action += " ";
55 action += std::to_string(lastBinContent);
56 action += " ";
57 action += std::to_string(averageBinContent);
58 action += " &";
59 std::system(action.c_str());
60}
bool match(std::string s1, std::string s2)
match the individual directories of two strings
Definition hcg.cxx:357
str expression
Definition HION12.py:53

The documentation for this class was generated from the following files: