|
musrfit 1.10.0
|
Public Member Functions | |
| PMusrRoot2Xml (const char *fileName, bool quiet, bool keep) | |
| virtual | ~PMusrRoot2Xml () |
| virtual Bool_t | IsValid () |
| virtual TString | GetXmlDumpFileName () |
| virtual UInt_t | GetNoOfDecayHistos () |
| virtual UInt_t | GetNoOfExpectedHistos () |
| virtual UInt_t | GetNoOfHistos () |
| virtual UInt_t | GetNoOfRedGreenOffsets () |
| virtual UInt_t | GetNoOfDetectors () |
Private Types | |
| enum | fNodeTag { eUnkown , eDecayAnaModule , eSlowControlAnaModule } |
Private Member Functions | |
| virtual void | SortHistoFolders () |
| virtual void | DumpDirectory (TDirectoryFile *dir, UInt_t offset) |
| virtual void | DumpFolder (TFolder *folder, UInt_t offset) |
| virtual void | DumpObjArray (TObjArray *obj, UInt_t offset) |
| virtual void | DumpEntry (TObject *obj, UInt_t offset) |
| virtual void | CheckClass (TObject *obj, TString str, UInt_t offset) |
| virtual void | GetType (TString entry, TString &type) |
| virtual void | GetLabel (TString entry, TString &label) |
Private Attributes | |
| std::vector< std::string > | fXmlData |
| keeps the XML structure dump of the ROOT file | |
| Bool_t | fQuiet |
| true = suppress output while converting | |
| Bool_t | fKeep |
| true = keep the XML dump file | |
| Bool_t | fValid |
| true if the conversion was fine | |
| TString | fFileName |
| file name of the ROOT file | |
| TString | fXmlDumpFileName |
| file name of the XML dump file | |
| fNodeTag | fNodeTag |
| switch indicating which kind of TFolder or TDirectoryFile object is found | |
| UInt_t | fNoOfDecayHistos {0} |
| number of decay histos in the DecayAnaModule | |
| UInt_t | fNoOfHistos {0} |
| number of histos from run header | |
| UInt_t | fNoOfRedGreenOffsets {0} |
| number of RedGreen offsets | |
| UInt_t | fNoOfDetectors {0} |
| number of detector entries in the header | |
class which converts the structure of a ROOT file into a XML file.
Definition at line 63 of file musrRootValidation.cpp.
|
private |
| Enumerator | |
|---|---|
| eUnkown | |
| eDecayAnaModule | |
| eSlowControlAnaModule | |
Definition at line 78 of file musrRootValidation.cpp.
| PMusrRoot2Xml::PMusrRoot2Xml | ( | const char * | fileName, |
| bool | quiet, | ||
| bool | keep ) |
Constructor. Reads the ROOT file and converts its structure to an XML dump file.
Definition at line 108 of file musrRootValidation.cpp.
References CheckClass(), eUnkown, fFileName, fKeep, fQuiet, fValid, fXmlData, fXmlDumpFileName, and SortHistoFolders().
|
virtual |
Destructor.
Definition at line 172 of file musrRootValidation.cpp.
References fKeep, and fXmlDumpFileName.
|
privatevirtual |
| obj | object to be checked |
| str | tag telling what kind of object it is |
| offset | needed to indent dump info |
Definition at line 415 of file musrRootValidation.cpp.
References DumpDirectory(), DumpEntry(), DumpFolder(), DumpObjArray(), eDecayAnaModule, eSlowControlAnaModule, eUnkown, fNoOfHistos, fNoOfRedGreenOffsets, fXmlData, GetLabel(), and GetType().
Referenced by DumpDirectory(), DumpFolder(), and PMusrRoot2Xml().
|
privatevirtual |
Dump TDirectoryFile structure.
| dir | TDirectoryFile object found in the ROOT file |
| offset | needed to indent dump info |
Definition at line 239 of file musrRootValidation.cpp.
References CheckClass(), fNoOfDetectors, and fQuiet.
Referenced by CheckClass().
|
privatevirtual |
Dump content.
| obj | object found in the ROOT file to be dumped |
| offset | needed to indent dump info |
Definition at line 368 of file musrRootValidation.cpp.
References eDecayAnaModule, eSlowControlAnaModule, eUnkown, fNoOfDecayHistos, and fXmlData.
Referenced by CheckClass().
|
privatevirtual |
Dump folder structure.
| folder | TFolder object found in the ROOT file |
| offset | needed to indent dump info |
Definition at line 265 of file musrRootValidation.cpp.
References CheckClass(), and fQuiet.
Referenced by CheckClass().
|
privatevirtual |
Dump object array content structure.
| obj | object array found in the ROOT file |
| offset | needed to indent dump info |
Definition at line 288 of file musrRootValidation.cpp.
References DumpObjArray(), fNoOfDetectors, fNoOfHistos, fNoOfRedGreenOffsets, fQuiet, fXmlData, GetLabel(), and GetType().
Referenced by CheckClass(), and DumpObjArray().
|
privatevirtual |
Filters from a TMusrRunHeader RunHeader entry the label.
| entry | to be filtered |
| label | extracted from entry |
Definition at line 539 of file musrRootValidation.cpp.
Referenced by CheckClass(), and DumpObjArray().
|
inlinevirtual |
Definition at line 71 of file musrRootValidation.cpp.
References fNoOfDecayHistos.
Referenced by main().
|
inlinevirtual |
Definition at line 75 of file musrRootValidation.cpp.
References fNoOfDetectors.
Referenced by main().
|
inlinevirtual |
Definition at line 72 of file musrRootValidation.cpp.
References fNoOfHistos, and fNoOfRedGreenOffsets.
Referenced by main().
|
inlinevirtual |
|
inlinevirtual |
Definition at line 74 of file musrRootValidation.cpp.
References fNoOfRedGreenOffsets.
Referenced by main().
|
privatevirtual |
Checks to TMusrRunHeader type of the RunHeader entries.
| entry | to be checked. |
| type | repesentation of the entry |
Definition at line 511 of file musrRootValidation.cpp.
Referenced by CheckClass(), and DumpObjArray().
|
inlinevirtual |
Definition at line 70 of file musrRootValidation.cpp.
References fXmlDumpFileName.
Referenced by main().
|
inlinevirtual |
|
privatevirtual |
Sorts the folders of the 'histos' TFolder in order to enforce the order according to:
This is needed to the limited abilities of XML-Schema validation.
Definition at line 189 of file musrRootValidation.cpp.
References fXmlData.
Referenced by PMusrRoot2Xml().
|
private |
file name of the ROOT file
Definition at line 85 of file musrRootValidation.cpp.
Referenced by PMusrRoot2Xml().
|
private |
true = keep the XML dump file
Definition at line 83 of file musrRootValidation.cpp.
Referenced by PMusrRoot2Xml(), and ~PMusrRoot2Xml().
|
private |
switch indicating which kind of TFolder or TDirectoryFile object is found
Definition at line 87 of file musrRootValidation.cpp.
|
private |
number of decay histos in the DecayAnaModule
Definition at line 89 of file musrRootValidation.cpp.
Referenced by DumpEntry(), and GetNoOfDecayHistos().
|
private |
number of detector entries in the header
Definition at line 92 of file musrRootValidation.cpp.
Referenced by DumpDirectory(), DumpObjArray(), and GetNoOfDetectors().
|
private |
number of histos from run header
Definition at line 90 of file musrRootValidation.cpp.
Referenced by CheckClass(), DumpObjArray(), GetNoOfExpectedHistos(), and GetNoOfHistos().
|
private |
number of RedGreen offsets
Definition at line 91 of file musrRootValidation.cpp.
Referenced by CheckClass(), DumpObjArray(), GetNoOfExpectedHistos(), and GetNoOfRedGreenOffsets().
|
private |
true = suppress output while converting
Definition at line 82 of file musrRootValidation.cpp.
Referenced by DumpDirectory(), DumpFolder(), DumpObjArray(), and PMusrRoot2Xml().
|
private |
true if the conversion was fine
Definition at line 84 of file musrRootValidation.cpp.
Referenced by IsValid(), and PMusrRoot2Xml().
|
private |
keeps the XML structure dump of the ROOT file
Definition at line 80 of file musrRootValidation.cpp.
Referenced by CheckClass(), DumpEntry(), DumpObjArray(), PMusrRoot2Xml(), and SortHistoFolders().
|
private |
file name of the XML dump file
Definition at line 86 of file musrRootValidation.cpp.
Referenced by GetXmlDumpFileName(), PMusrRoot2Xml(), and ~PMusrRoot2Xml().