44 using namespace G4Analysis;
52 if ( fgInstance ==
nullptr ) {
63 fNtupleManager(nullptr),
70 <<
"G4XmlAnalysisReader already exists."
71 <<
"Cannot create another instance.";
72 G4Exception(
"G4XmlAnalysisReader::G4XmlAnalysisReader()",
118 tools::raxml_out* handler =
nullptr;
120 std::vector<tools::raxml_out>& objects =
rfile->objects();
121 std::vector<tools::raxml_out>::iterator
it;
122 for (it = objects.begin(); it!=objects.end(); ++
it) {
123 tools::raxml_out&
object = *
it;
124 if (
object.cls() == objectType &&
object.name() == objectName ) {
135 <<
"Cannot get "<< objectName <<
" in file " << fileName;
136 G4String inFunctionFull =
"G4XmlAnalysisReader::";
137 inFunctionFull.
append(inFunction);
150 auto finalResult =
true;
153 finalResult = finalResult && result;
156 finalResult = finalResult && result;
176 tools::raxml_out* handler
177 =
GetHandler(fileName, h1Name, tools::histo::h1d::s_class(),
"ReadH1Impl");
203 =
GetHandler(fileName, h2Name, tools::histo::h2d::s_class(),
"ReadH2Impl");
206 auto h2 =
static_cast<tools::histo::h2d*
>(handler->object());
229 =
GetHandler(fileName, h3Name, tools::histo::h3d::s_class(),
"ReadH3Impl");
232 auto h3 =
static_cast<tools::histo::h3d*
>(handler->object());
255 =
GetHandler(fileName, p1Name, tools::histo::p1d::s_class(),
"ReadP1Impl");
258 auto p1 =
static_cast<tools::histo::p1d*
>(handler->object());
281 =
GetHandler(fileName, p2Name, tools::histo::p2d::s_class(),
"ReadP2Impl");
284 auto p2 =
static_cast<tools::histo::p2d*
>(handler->object());
309 auto fullFileName = fileName;
310 if ( ! isUserFileName ) {
315 =
GetHandler(fullFileName, ntupleName, tools::aida::ntuple::s_class(),