ATLAS Offline Software
Public Member Functions | List of all members
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 }

The documentation for this class was generated from the following files:
python.HION12.expression
string expression
Definition: HION12.py:55
PrepareReferenceFile.regex
regex
Definition: PrepareReferenceFile.py:43
python.PyAthena.module
module
Definition: PyAthena.py:131
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
SCT_ConditionsAlgorithms::CoveritySafe::getenv
std::string getenv(const std::string &variableName)
get an environment variable
Definition: SCT_ConditionsUtilities.cxx:17
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77
match
bool match(std::string s1, std::string s2)
match the individual directories of two strings
Definition: hcg.cxx:356