diff --git a/src/external/MusrRoot/TMusrRunHeader.cpp b/src/external/MusrRoot/TMusrRunHeader.cpp index 58872ba3..dab7e10f 100644 --- a/src/external/MusrRoot/TMusrRunHeader.cpp +++ b/src/external/MusrRoot/TMusrRunHeader.cpp @@ -394,6 +394,68 @@ Bool_t TMusrRunHeader::FillFolder(TFolder *folder) return true; } +//-------------------------------------------------------------------------- +// GetTypeOfPath (public) +//-------------------------------------------------------------------------- +/** + *
Get type of path-name, e.g. RunInfo/Sample Name.
+ *
+ * @param pathName path-name for which the type is requested
+ *
+ * @return the type, or 'undef' if path-name is not found.
+ */
+TString TMusrRunHeader::GetTypeOfPath(TString pathName)
+{
+ TString type("undef");
+
+ // find pathName
+ for (Int_t i=0; i