#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 37 of file LastBinThresholdAction.cxx.
38 {
39
40 const char* actionPath = std::getenv("TILE_DQ_ACTION_PATH");
41 if (actionPath !=
nullptr)
action = std::string(actionPath) +
"/" +
action;
42
44 std::regex
expression (
".*([LE]B[AC]\\d\\d).*");
45
46 std::string
module(
"UNKNOWN");
47 if (std::regex_search(histogramName,
match, expression) &&
match.size() > 1) {
48 module = match.str(1);
49 }
50
56 action += std::to_string(lastBinContent);
58 action += std::to_string(averageBinContent);
60 std::system(
action.c_str());
61}
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: