 |
ATLAS Offline Software
|
Go to the documentation of this file.
28 if (resolvedPath.empty()) {
30 return StatusCode::FAILURE;
33 std::ifstream
infile(resolvedPath);
35 ATH_MSG_ERROR(
"Could not open centrality definition file: " << resolvedPath);
36 return StatusCode::FAILURE;
40 for (
int i = 0;
i < 3; ++
i) {
45 std::istringstream iss(
line);
46 std::string centileStr;
49 if (iss >> centileStr >> std::skipws >> fCal) {
50 centileStr.pop_back();
51 centile = std::stof(centileStr);
60 return StatusCode::SUCCESS;
77 float total_fcal_et = (acc_FCalEtA(*eventInfo) + acc_FCalEtC(*eventInfo)) / 1.e6;
79 float centralityMin = 0.0;
80 float centralityMax = 100.0;
81 bool foundRange =
false;
96 ecCentralityMin(*eventInfo) = centralityMin;
97 ecCentralityMax(*eventInfo) = centralityMax;
99 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
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.
Class describing the basic event information.
#define ATH_MSG_WARNING(x)
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)