40 return StatusCode::SUCCESS;
49 StatusCode
sc{StatusCode::SUCCESS};
53 <<
"[" << ctx.eventID().run_number()
54 <<
"." << ctx.eventID().event_number()
55 <<
"," << ctx.eventID().time_stamp()
58 bool paramFilled{
false};
64 ATH_MSG_FATAL(
"Exception caught while trying to determine whether the data object was filled");
65 return StatusCode::FAILURE;
82 ATH_MSG_FATAL(
"Exception caught while trying to access the thresholds");
83 return StatusCode::FAILURE;
87 init(histo, 0.0, 8.0, 100);
88 std::vector<float> values;
90 for (
float i: values) {
97 if (not paramFilled)
sc = StatusCode::FAILURE;
110 std::string stylePath{
"./histo.xsl"};
111 std::string filename{
"./thresholds.xml"};
116 std::ofstream opFile{filename.c_str(), std::ios::out};
120 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
header file for data object for SCT_ConditionsParameterTool and SCT_ConditionsParameterCondAlg.
Header file for TestConditionsParameter class.
header file containing the number of elements and enumerated type of parameters which may be retrieve...
header file for SCT conditions utilities
An algorithm that can be simultaneously executed in multiple threads.
This is a "hash" representation of an Identifier.
virtual StatusCode initialize() override
Gaudi initialiser.
virtual StatusCode finalize() override
Gaudi finaliser.
SCT_ConditionsParameterTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) const override
Gaudi executer.
ToolHandle< ISCT_ConditionsParameterTool > m_conditionsParameterTool
SCT_SimpleHisto.h C++ projects.
std::string xmlHeader(const std::string &version="1.0", const std::string &encoding="UTF-8")
bool init(S_t &s, const float xlo, const float xhi, const unsigned int nbins)
Initialize a map to be used as a histogram.
std::map< float, unsigned int > S_t
int fill(S_t &s, const float value)
std::string stylesheet(const std::string &path)
std::string asXmlString(const S_t &s)