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 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
43 std::smatch match;
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
51 action += " ";
52 action += histogramName;
53 action += " ";
54 action += module;
55 action += " ";
56 action += std::to_string(lastBinContent);
57 action += " ";
58 action += std::to_string(averageBinContent);
59 action += " &";
60 std::system(action.c_str());
61}
bool match(std::string s1, std::string s2)
match the individual directories of two strings
Definition hcg.cxx:359
str expression
Definition HION12.py:53

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