|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #ifndef INDETTRACKSYSTEMATICSTOOLS_INDETTRACKSYSTEMATICSTOOL_H
7 #define INDETTRACKSYSTEMATICSTOOLS_INDETTRACKSYSTEMATICSTOOL_H
44 std::unique_ptr<TFile>
getFile(
const std::string& )
const;
47 template <
class T>
StatusCode initObject(T*&
obj,
const std::string& rootFileName,
const std::string& objName)
const;
65 if (
obj !=
nullptr)
ATH_MSG_WARNING(
obj->GetName() <<
" is not null, yet we are now attempting to initialize from " << rootFileName );
66 std::unique_ptr<TFile>
F =
getFile(rootFileName);
67 if(!
F ||
F->IsZombie()) {
69 return StatusCode::FAILURE;
72 F->GetObject(objName.data(), tempObj);
73 if(tempObj==
nullptr) {
74 ATH_MSG_ERROR(
"Could not retrieve " << objName <<
" from file " << rootFileName );
75 return StatusCode::FAILURE;
77 obj =
static_cast<T*
>(tempObj->Clone());
81 return StatusCode::SUCCESS;
Class to wrap a set of SystematicVariations.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define ATH_MSG_WARNING(x)