diff --git a/src/external/MusrRoot/TMusrRunHeader.cpp b/src/external/MusrRoot/TMusrRunHeader.cpp index 8ecb661ff..df2dd865f 100644 --- a/src/external/MusrRoot/TMusrRunHeader.cpp +++ b/src/external/MusrRoot/TMusrRunHeader.cpp @@ -335,6 +335,8 @@ void TMusrRunHeader::CleanUp() * it, if it is already present. * * \param folder to be filled + * + * \return true on success */ Bool_t TMusrRunHeader::FillFolder(TFolder *folder) { @@ -405,6 +407,8 @@ Bool_t TMusrRunHeader::FillFolder(TFolder *folder) * it, if it is already present. * * \param dir to be filled + * + * \return true in success */ Bool_t TMusrRunHeader::FillDirectory(TDirectory *dir) { @@ -467,9 +471,9 @@ Bool_t TMusrRunHeader::FillDirectory(TDirectory *dir) /** *
Get type of path-name, e.g. RunInfo/Sample Name. * - * @param pathName path-name for which the type is requested + * \param pathName path-name for which the type is requested * - * @return the type, or 'undef' if path-name is not found. + * \return the type, or 'undef' if path-name is not found. */ TString TMusrRunHeader::GetTypeOfPath(TString pathName) { @@ -923,7 +927,9 @@ void TMusrRunHeader::Set(TString pathName, TDoubleVector value) *
Reads all data from an open ROOT-file structure and feeds all the necessary * internal data objects. * - * \param folder + * \param folder top folder 'RunHeader'. + * + * \return true on success */ Bool_t TMusrRunHeader::ExtractAll(TFolder *folder) { @@ -947,7 +953,9 @@ Bool_t TMusrRunHeader::ExtractAll(TFolder *folder) *
Reads all data from an open ROOT-file structure and feeds all the necessary * internal data objects. * - * \param dir + * \param dir TDirectory object. The top one will be 'RunHeader'. + * + * \return true on success. */ Bool_t TMusrRunHeader::ExtractAll(TDirectory *dir) { @@ -957,7 +965,6 @@ Bool_t TMusrRunHeader::ExtractAll(TDirectory *dir) // clean up all internal structures - just in case this is called multiple times if (dir->GetName() == "RunHeader") { -std::cout << "as35> dir->GetName()=" << dir->GetName() << std::endl; CleanUp(); } @@ -982,10 +989,12 @@ std::cout << "as35> dir->GetName()=" << dir->GetName() << std::endl; // ExtractHeaderInformationData (public) //-------------------------------------------------------------------------- /** - *
+ *
Extract the header information data and fills the corresponing objects. * - * \param headerData - * \param requestedPath + * \param headerData encoded header data. + * \param requestedPath corresponding TFolder/TDiretory path. + * + * \return true on success */ Bool_t TMusrRunHeader::ExtractHeaderInformationData(TObjString *headerData, TString requestedPath) { @@ -1188,10 +1197,12 @@ Bool_t TMusrRunHeader::ExtractHeaderInformationData(TObjString *headerData, TStr // ExtractHeaderInformation (public) //-------------------------------------------------------------------------- /** - *
+ *
TFolder releated routine needed to recursively decode the header information. * - * \param headerInfo - * \param requestedPath + * \param headerInfo header info object. It is either a TObjArray or a data object. + * \param requestedPath corresponding TFolder/TDiretory path. + * + * \return true on success */ Bool_t TMusrRunHeader::ExtractHeaderInformation(TObjArray *headerInfo, TString requestedPath) { @@ -1223,7 +1234,7 @@ Bool_t TMusrRunHeader::ExtractHeaderInformation(TObjArray *headerInfo, TString r // DumpHeader (public) //-------------------------------------------------------------------------- /** - *
+ *
Dumps the header informaton onto the stdout. */ void TMusrRunHeader::DumpHeader() { @@ -1376,29 +1387,6 @@ void TMusrRunHeader::DumpHeader() std::cout << std::endl; } -//-------------------------------------------------------------------------- -// DrawHeader (public) -//-------------------------------------------------------------------------- -/** - *
- */
-void TMusrRunHeader::DrawHeader()
-{
- std::unique_ptr returns the number of significant digits
*
* \param val value from which the lowest significant digit shall be determined
+ *
+ * \return returns the number of significant digits
*/
UInt_t TMusrRunHeader::GetLeastSignificantDigit(Double_t val) const
{
@@ -1484,6 +1477,8 @@ void TMusrRunHeader::SplitPathName(TString pathName, TString &path, TString &nam
* extracts form the run header line, as written to the MusrROOT file, the run header label, e.g. Run Number.
*
* \param str runHeader string as written to the MusrROOT file.
+ *
+ * \return run header label extracted from the encoded runHeader string
*/
TString TMusrRunHeader::GetLabel(TString str)
{
@@ -1516,6 +1511,8 @@ TString TMusrRunHeader::GetLabel(TString str)
* extracts form the run header line, as written to the MusrROOT file, the run header str value, e.g. 557 (for Run Number).
*
* \param str runHeader string as written to the MusrROOT file.
+ *
+ * \return string value extracted from the encoded runHeader string
*/
TString TMusrRunHeader::GetStrValue(TString str)
{
@@ -1548,6 +1545,8 @@ TString TMusrRunHeader::GetStrValue(TString str)
* extracts form the run header line, as written to the MusrROOT file, the encoded type and retruns it.
*
* \param str runHeader string with encoded type
+ *
+ * \return type value extracted from the encoded runHeader string. If not found it will have the value 'n/a'.
*/
TString TMusrRunHeader::GetType(TString str)
{
@@ -1612,12 +1611,10 @@ TString TMusrRunHeader::GetType(TString str)
/**
* Update folder structure
*
- * return:
- * - true if everything is all right
- * - false otherwise
- *
* \param treeObj to be updated
* \param path to be added within 'treeObj'
+ *
+ * \return true on success
*/
bool TMusrRunHeader::UpdateFolder(TObject *treeObj, TString path)
{
@@ -1662,7 +1659,7 @@ bool TMusrRunHeader::UpdateFolder(TObject *treeObj, TString path)
*
* \param dir top directory pointer
*
- * \return true on success, false otherwise
+ * \return true on success
*/
bool TMusrRunHeader::UpdateDirTree(TDirectory *topdir)
{
@@ -1704,12 +1701,10 @@ bool TMusrRunHeader::UpdateDirTree(TDirectory *topdir)
/**
* Check if 'path' is present in 'treeObj'
*
- * return:
- * - pointer to the 'path' object if present
- * - otherwise return 0
- *
* \param treeObj to be searched
* \param path searched for within 'treeObj'
+ *
+ * \return pointer to the 'path' object if present, otherwise return nullptr
*/
TObject* TMusrRunHeader::FindObject(TObject *treeObj, TString path)
{
@@ -1740,9 +1735,11 @@ TObject* TMusrRunHeader::FindObject(TObject *treeObj, TString path)
// GetHeaderString (private)
//--------------------------------------------------------------------------
/**
- *
+ * Encodes the header information into the MusrRoot header line in the file.
*
- * \param pathName
+ * \param idx absolut index of the header string.
+ *
+ * \return TObjString with the encoded header information if idx is found, 'n/a' otherwise.
*/
TObjString TMusrRunHeader::GetHeaderString(UInt_t idx)
{
@@ -1894,6 +1891,8 @@ TObjString TMusrRunHeader::GetHeaderString(UInt_t idx)
*
* \param str string to be truncated
* \param splitter the start of the string up to the splitter character removed
+ *
+ * \return true on success
*/
bool TMusrRunHeader::RemoveFirst(TString &str, const char splitter)
{
@@ -1917,10 +1916,10 @@ bool TMusrRunHeader::RemoveFirst(TString &str, const char splitter)
*
* If splitter is not present in str the original str is returned.
*
- * return: first part of up to the splitter in struct
- *
* \param str
* \param splitter
+ *
+ * \return first part of up to the splitter in struct
*/
TString TMusrRunHeader::GetFirst(TString &str, const char splitter)
{
diff --git a/src/external/MusrRoot/TMusrRunHeader.h b/src/external/MusrRoot/TMusrRunHeader.h
index ccabff36e..063abf1fa 100644
--- a/src/external/MusrRoot/TMusrRunHeader.h
+++ b/src/external/MusrRoot/TMusrRunHeader.h
@@ -158,7 +158,6 @@ public:
virtual void Set(TString pathName, TDoubleVector value);
virtual void DumpHeader();
- virtual void DrawHeader();
private:
bool fQuiet;