#include <LastBinThresholdAction.h>
|
| void | operator() (const std::string &histogramName, std::string action, double averageBinContent, double lastBinContent) const |
Definition at line 40 of file LastBinThresholdAction.h.
◆ 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
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
55 action += std::to_string(lastBinContent);
57 action += std::to_string(averageBinContent);
59 std::system(
action.c_str());
60}
bool match(std::string s1, std::string s2)
match the individual directories of two strings
The documentation for this class was generated from the following files: