 |
ATLAS Offline Software
|
Go to the documentation of this file.
25 if (resolvedPath.empty()) {
27 return StatusCode::FAILURE;
30 std::ifstream
infile(resolvedPath);
32 ATH_MSG_ERROR(
"Could not open centrality definition file: " << resolvedPath);
33 return StatusCode::FAILURE;
37 for (
int i = 0;
i < 3; ++
i) {
42 std::istringstream iss(
line);
43 std::string centileStr;
46 if (iss >> centileStr >> std::skipws >> fCal) {
47 centileStr.pop_back();
48 centile = std::stof(centileStr);
57 return StatusCode::SUCCESS;
73 float total_fcal_et = (acc_FCalEtA(*eventInfo) + acc_FCalEtC(*eventInfo)) / 1.e6;
75 float centralityMin = 0.0;
76 float centralityMax = 100.0;
77 bool foundRange =
false;
92 ecCentralityMin(*eventInfo) = centralityMin;
93 ecCentralityMax(*eventInfo) = centralityMax;
95 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)