20 std::string full_path;
32#ifndef XAOD_STANDALONE
33 bool configPathDeclared =
false;
34 for (Gaudi::Details::PropertyBase* property : getProperties())
36 if (property->name() ==
"ConfigPath")
38 configPathDeclared =
true;
42 if (!configPathDeclared)
43#elif defined(XAOD_STANDALONE)
44 PropertyMgr::PropMap_t property_map = getPropertyMgr()->getProperties();
45 if (property_map.find(
"ConfigPath") == property_map.end())
47# error "What environment are we in?!?"
50 ATH_MSG_INFO(
"No config file path property declared yet, this is not recommended");
51 return StatusCode::SUCCESS;
55 const std::string* config_file_path_property;
59 std::string config_file_path =
find_file(*config_file_path_property);
63 THashList* lList = env.GetTable();
64 for( Int_t i = 0; lList && i < lList->GetEntries(); ++i )
68#ifndef XAOD_STANDALONE
70 const std::type_info*
type =
getProperty(lList->At( i )->GetName()).type_info();
73 if (*
type ==
typeid(
bool))
75 bool(env.GetValue(lList->At( i )->GetName(),
bool(
true))));
76 else if (*
type ==
typeid(
int))
78 env.GetValue(lList->At( i )->GetName(),
int(0)));
79 else if (*
type ==
typeid(
float))
81 env.GetValue(lList->At( i )->GetName(),
float(0)));
82 else if (*
type ==
typeid(
double))
84 env.GetValue(lList->At( i )->GetName(),
double(0)));
85 else if (*
type ==
typeid(std::string))
87 env.GetValue(lList->At( i )->GetName(),
""));
94 bool(env.GetValue(lList->At( i )->GetName(),
bool(
true))));
97 env.GetValue(lList->At( i )->GetName(),
int(0)));
100 env.GetValue(lList->At( i )->GetName(),
float(0)));
103 env.GetValue(lList->At( i )->GetName(),
double(0)));
106 env.GetValue(lList->At( i )->GetName(),
""));
110#ifndef XAOD_STANDALONE
111 ATH_MSG_FATAL(
"there was a problem to find the correct type enum: "<<
type->name());
115 return StatusCode::FAILURE;
117 if (!
sc.isSuccess()) {
118 ATH_MSG_FATAL(
"failed to set property: " << lList->At( i )->GetName());
119 return StatusCode::FAILURE;
122 return StatusCode::SUCCESS;
130 return StatusCode::SUCCESS;
134 return StatusCode::SUCCESS;
140 return StatusCode::FAILURE;
146 return StatusCode::FAILURE;
151 return StatusCode::FAILURE;
157 return StatusCode::FAILURE;
162 return StatusCode::FAILURE;
167 return StatusCode::FAILURE;
172 return StatusCode::FAILURE;
179 return StatusCode::FAILURE;
184 return StatusCode::FAILURE;
189 return StatusCode::FAILURE;
194 return StatusCode::FAILURE;
199 return StatusCode::FAILURE;
203 return StatusCode::SUCCESS;
207 return StatusCode::SUCCESS;
void setProperty(columnar::PythonToolHandle &self, const std::string &key, nb::object value)
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
CaloCellContainer that can accept const cell pointers.
Type
Property type enumeration.
PFOContainer_v1 PFOContainer
Definition of the current "pfo container version".
ParticleContainer_v1 ParticleContainer
Define the latest version of the particle class.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
TauJet_v3 TauJet
Definition of the current "tau version".
TauTrackContainer_v1 TauTrackContainer
Definition of the current TauTrack container version.
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
ElementLink_p1< typename GenerateELinkIndexType_p1< typename LINK::index_type >::type > type