musrfit
1.9.2
|
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 | EFolderTag { eUnkown, eDecayAnaModule, eSlowControlAnaModule } |
Private Member Functions | |
virtual void | SortHistoFolders () |
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 More... | |
Bool_t | fQuiet |
true = suppress output while converting More... | |
Bool_t | fKeep |
true = keep the XML dump file More... | |
Bool_t | fValid |
true if the conversion was fine More... | |
TString | fFileName |
file name of the ROOT file More... | |
TString | fXmlDumpFileName |
file name of the XML dump file More... | |
EFolderTag | fFolderTag |
switch indicating which kind of TFolder object is found More... | |
UInt_t | fNoOfDecayHistos |
number of decay histos in the DecayAnaModule More... | |
UInt_t | fNoOfHistos |
number of histos from run header More... | |
UInt_t | fNoOfRedGreenOffsets |
number of RedGreen offsets More... | |
UInt_t | fNoOfDetectors |
number of detector entries in the header More... | |
class which converts the structure of a ROOT file into a XML file.
Definition at line 61 of file musrRootValidation.cpp.
|
private |
Enumerator | |
---|---|
eUnkown | |
eDecayAnaModule | |
eSlowControlAnaModule |
Definition at line 76 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 105 of file musrRootValidation.cpp.
References CheckClass(), eUnkown, fFileName, fFolderTag, fNoOfDecayHistos, fNoOfDetectors, fNoOfHistos, fNoOfRedGreenOffsets, fQuiet, fValid, fXmlData, fXmlDumpFileName, and SortHistoFolders().
|
virtual |
Destructor.
Definition at line 169 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 386 of file musrRootValidation.cpp.
References DumpEntry(), DumpFolder(), DumpObjArray(), eDecayAnaModule, eSlowControlAnaModule, eUnkown, fFolderTag, and fXmlData.
Referenced by DumpFolder(), and PMusrRoot2Xml().
|
privatevirtual |
Dump content.
obj | object found in the ROOT file to be dumped |
offset | needed to indent dump info |
Definition at line 339 of file musrRootValidation.cpp.
References eDecayAnaModule, eSlowControlAnaModule, eUnkown, fFolderTag, 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 236 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 259 of file musrRootValidation.cpp.
References fNoOfDetectors, fNoOfHistos, fNoOfRedGreenOffsets, fQuiet, fXmlData, GetLabel(), and GetType().
Referenced by CheckClass().
|
privatevirtual |
Filters from a TMusrRunHeader RunHeader entry the label.
entry | to be filtered |
label | extracted from entry |
Definition at line 476 of file musrRootValidation.cpp.
Referenced by DumpObjArray().
|
inlinevirtual |
Definition at line 69 of file musrRootValidation.cpp.
References fNoOfDecayHistos.
Referenced by main().
|
inlinevirtual |
Definition at line 73 of file musrRootValidation.cpp.
References fNoOfDetectors.
Referenced by main().
|
inlinevirtual |
Definition at line 70 of file musrRootValidation.cpp.
References fNoOfHistos, and fNoOfRedGreenOffsets.
Referenced by main().
|
inlinevirtual |
|
inlinevirtual |
Definition at line 72 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 448 of file musrRootValidation.cpp.
Referenced by DumpObjArray().
|
inlinevirtual |
Definition at line 68 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 186 of file musrRootValidation.cpp.
References fXmlData.
Referenced by PMusrRoot2Xml().
|
private |
file name of the ROOT file
Definition at line 83 of file musrRootValidation.cpp.
Referenced by PMusrRoot2Xml().
|
private |
switch indicating which kind of TFolder object is found
Definition at line 85 of file musrRootValidation.cpp.
Referenced by CheckClass(), DumpEntry(), and PMusrRoot2Xml().
|
private |
true = keep the XML dump file
Definition at line 81 of file musrRootValidation.cpp.
Referenced by ~PMusrRoot2Xml().
|
private |
number of decay histos in the DecayAnaModule
Definition at line 87 of file musrRootValidation.cpp.
Referenced by DumpEntry(), GetNoOfDecayHistos(), and PMusrRoot2Xml().
|
private |
number of detector entries in the header
Definition at line 90 of file musrRootValidation.cpp.
Referenced by DumpObjArray(), GetNoOfDetectors(), and PMusrRoot2Xml().
|
private |
number of histos from run header
Definition at line 88 of file musrRootValidation.cpp.
Referenced by DumpObjArray(), GetNoOfExpectedHistos(), GetNoOfHistos(), and PMusrRoot2Xml().
|
private |
number of RedGreen offsets
Definition at line 89 of file musrRootValidation.cpp.
Referenced by DumpObjArray(), GetNoOfExpectedHistos(), GetNoOfRedGreenOffsets(), and PMusrRoot2Xml().
|
private |
true = suppress output while converting
Definition at line 80 of file musrRootValidation.cpp.
Referenced by DumpFolder(), DumpObjArray(), and PMusrRoot2Xml().
|
private |
true if the conversion was fine
Definition at line 82 of file musrRootValidation.cpp.
Referenced by IsValid(), and PMusrRoot2Xml().
|
private |
keeps the XML structure dump of the ROOT file
Definition at line 78 of file musrRootValidation.cpp.
Referenced by CheckClass(), DumpEntry(), DumpObjArray(), PMusrRoot2Xml(), and SortHistoFolders().
|
private |
file name of the XML dump file
Definition at line 84 of file musrRootValidation.cpp.
Referenced by GetXmlDumpFileName(), PMusrRoot2Xml(), and ~PMusrRoot2Xml().