54 if ( fgInstance == 0 ) {
77 <<
"G4XmlAnalysisReader already exists."
78 <<
"Cannot create another instance.";
79 G4Exception(
"G4XmlAnalysisReader::G4XmlAnalysisReader()",
135 tools::raxml_out* handler = 0;
137 std::vector<tools::raxml_out>& objects = rfile->objects();
138 std::vector<tools::raxml_out>::iterator it;
139 for (it = objects.begin(); it!=objects.end(); ++it) {
140 tools::raxml_out&
object = *it;
141 if (
object.cls() == objectType &&
object.name() == objectName ) {
152 <<
"Cannot get "<< objectName <<
" in file " << fileName;
153 G4String inFunctionFull =
"G4XmlAnalysisReader::";
154 inFunctionFull.
append(inFunction);
167 G4bool finalResult =
true;
170 finalResult = finalResult && result;
173 finalResult = finalResult && result;
176 finalResult = finalResult && result;
195 tools::raxml_out* handler
196 =
GetHandler(fileName, h1Name, tools::histo::h1d::s_class(),
"ReadH1Impl");
199 tools::histo::h1d* h1
200 =
static_cast<tools::histo::h1d*
>(handler->object());
221 tools::raxml_out* handler
222 =
GetHandler(fileName, h2Name, tools::histo::h2d::s_class(),
"ReadH2Impl");
225 tools::histo::h2d* h2
226 =
static_cast<tools::histo::h2d*
>(handler->object());
247 tools::raxml_out* handler
248 =
GetHandler(fileName, h3Name, tools::histo::h3d::s_class(),
"ReadH3Impl");
251 tools::histo::h3d* h3
252 =
static_cast<tools::histo::h3d*
>(handler->object());
273 tools::raxml_out* handler
274 =
GetHandler(fileName, p1Name, tools::histo::p1d::s_class(),
"ReadP1Impl");
277 tools::histo::p1d*
p1
278 =
static_cast<tools::histo::p1d*
>(handler->object());
299 tools::raxml_out* handler
300 =
GetHandler(fileName, p2Name, tools::histo::p2d::s_class(),
"ReadP2Impl");
303 tools::histo::p2d*
p2
304 =
static_cast<tools::histo::p2d*
>(handler->object());
329 if ( ! isUserFileName ) {
333 tools::raxml_out* handler
334 =
GetHandler(fullFileName, ntupleName, tools::aida::ntuple::s_class(),
338 tools::aida::ntuple* rntuple
339 =
static_cast<tools::aida::ntuple*
>(handler->object());
virtual G4int ReadH2Impl(const G4String &h1Name, const G4String &fileName, G4bool isUserFileName)
G4H2ToolsManager * fH2Manager
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
void SetP1Manager(G4VP1Manager *p1Manager)
void SetP2Manager(G4VP2Manager *p2Manager)
std::ostringstream G4ExceptionDescription
G4String GetNtupleFileName(const G4String &ntupleName) const
G4XmlRFileManager * fFileManager
G4XmlRNtupleManager * fNtupleManager
virtual G4int ReadP1Impl(const G4String &h1Name, const G4String &fileName, G4bool isUserFileName)
virtual G4int ReadNtupleImpl(const G4String &ntupleName, const G4String &fileName, G4bool isUserFileName)
G4AnalysisManagerState fState
G4H1ToolsManager * fH1Manager
const G4AnalysisVerbose * GetVerboseL2() const
void SetH3Manager(G4VH3Manager *h3Manager)
static G4ThreadLocal G4XmlAnalysisReader * fgInstance
virtual G4int ReadP2Impl(const G4String &h1Name, const G4String &fileName, G4bool isUserFileName)
tools::raxml_out * GetHandler(const G4String &fileName, const G4String &objectName, const G4String &objectType, const G4String &inFunction)
const G4AnalysisVerbose * GetVerboseL4() const
virtual G4int ReadH3Impl(const G4String &h1Name, const G4String &fileName, G4bool isUserFileName)
void SetNtupleManager(G4VRNtupleManager *ntupleManager)
virtual G4int ReadH1Impl(const G4String &h1Name, const G4String &fileName, G4bool isUserFileName)
static G4XmlAnalysisReader * fgMasterInstance
tools::raxml * GetRFile(const G4String &fileName) const
G4H3ToolsManager * fH3Manager
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetH1Manager(G4VH1Manager *h1Manager)
G4String & append(const G4String &)
G4bool GetIsMaster() const
G4XmlAnalysisReader(G4bool isMaster=true)
G4P2ToolsManager * fP2Manager
G4int SetNtuple(G4XmlRNtupleDescription *rntupleDescription)
virtual ~G4XmlAnalysisReader()
void SetH2Manager(G4VH2Manager *h2Manager)
virtual G4bool OpenRFile(const G4String &fileName)
static G4XmlAnalysisReader * Instance()
void SetFileManager(G4BaseFileManager *fileManager)
G4P1ToolsManager * fP1Manager