 |
ATLAS Offline Software
|
Go to the documentation of this file.
21 if (resolvedPath.empty()) {
23 return StatusCode::FAILURE;
26 std::ifstream
infile(resolvedPath);
28 ATH_MSG_ERROR(
"Could not open centrality definition file: " << resolvedPath);
29 return StatusCode::FAILURE;
33 for (
int i = 0;
i < 3; ++
i) {
38 std::istringstream iss(
line);
39 std::string centileStr;
42 if (iss >> centileStr >> std::skipws >> fCal) {
43 centileStr.pop_back();
44 centile = std::stof(centileStr);
53 return StatusCode::SUCCESS;
69 float total_fcal_et = (acc_FCalEtA(*eventInfo) + acc_FCalEtC(*eventInfo)) / 1.e6;
71 float centralityMin = 0.0;
72 float centralityMax = 100.0;
73 bool foundRange =
false;
88 ecCentralityMin(*eventInfo) = centralityMin;
89 ecCentralityMax(*eventInfo) = centralityMax;
91 return StatusCode::SUCCESS;
Helper class to provide constant type-safe access to aux data.
Helper class to provide type-safe access to aux data.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
#define ATH_MSG_WARNING(x)
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)