|
ATLAS Offline Software
|
Go to the documentation of this file.
19 declareInterface<DerivationFramework::IAugmentationTool>(
this);
29 if (resolvedPath.empty()) {
31 return StatusCode::FAILURE;
34 std::ifstream
infile(resolvedPath);
36 ATH_MSG_ERROR(
"Could not open centrality definition file: " << resolvedPath);
37 return StatusCode::FAILURE;
41 for (
int i = 0;
i < 3; ++
i) {
46 std::istringstream iss(
line);
47 std::string centileStr;
50 if (iss >> centileStr >> std::skipws >> fCal) {
51 centileStr.pop_back();
52 centile = std::stof(centileStr);
61 return StatusCode::SUCCESS;
78 float total_fcal_et = (acc_FCalEtA(*eventInfo) + acc_FCalEtC(*eventInfo)) / 1.e6;
80 float centralityMin = 0.0;
81 float centralityMax = 100.0;
82 bool foundRange =
false;
97 ecCentralityMin(*eventInfo) = centralityMin;
98 ecCentralityMax(*eventInfo) = centralityMax;
100 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
Helper class to provide constant type-safe access to aux data.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
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)