add skeleton for MusrRoot which will handle TDirectoryFile rather than TFolder.

This commit is contained in:
suter_a 2025-04-04 18:37:42 +02:00
parent 764cdf4e51
commit e38fa47961
3 changed files with 37 additions and 1 deletions

View File

@ -22,7 +22,7 @@ set(prefix "${CMAKE_INSTALL_PREFIX}")
set(exec_prefix "\$\{prefix\}")
set(libdir "\$\{exec_prefix\}/lib")
set(includedir "\$\{prefix\}/include")
set(MUSR_ROOT_VERSION "1.0.0")
set(MUSR_ROOT_VERSION "1.1.0")
set(MUSR_ROOT_LIBRARY_NAME "TMusrRunHeader")
configure_file("TMusrRunHeader.pc.in" "TMusrRunHeader.pc" @ONLY)

View File

@ -395,6 +395,23 @@ Bool_t TMusrRunHeader::FillFolder(TFolder *folder)
return true;
}
//--------------------------------------------------------------------------
// FillDirectory (public)
//--------------------------------------------------------------------------
/**
* <p>Fills the RunHeader directory. This is needed to write it to a ROOT file.
* It walks through all information and attaches it to the directory or replaces
* it, if it is already present.
*
* \param dir to be filled
*/
Bool_t TMusrRunHeader::FillDirectory(TDirectoryFile *dir)
{
// NOT YET IMPLEMENTED
return true;
}
//--------------------------------------------------------------------------
// GetTypeOfPath (public)
//--------------------------------------------------------------------------
@ -873,6 +890,22 @@ Bool_t TMusrRunHeader::ExtractAll(TFolder *folder)
return true;
}
//--------------------------------------------------------------------------
// ExtractAll (public)
//--------------------------------------------------------------------------
/**
* <p>Reads all data from an open ROOT-file structure and feeds all the necessary
* internal data objects.
*
* \param dir
*/
Bool_t TMusrRunHeader::ExtractAll(TDirectoryFile *dir)
{
// NOT YET IMPLEMENTED
return true;
}
//--------------------------------------------------------------------------
// ExtractHeaderInformation (public)
//--------------------------------------------------------------------------

View File

@ -38,6 +38,7 @@
#include <TObjString.h>
#include <TObjArray.h>
#include <TFolder.h>
#include <TDirectoryFile.h>
#define MRH_UNDEFINED -9.99e99
@ -129,8 +130,10 @@ public:
virtual TString GetFileName() { return fFileName; }
virtual Bool_t FillFolder(TFolder *folder);
virtual Bool_t FillDirectory(TDirectoryFile *dir);
virtual Bool_t ExtractAll(TFolder *folder);
virtual Bool_t ExtractAll(TDirectoryFile *folder);
virtual Bool_t ExtractHeaderInformation(TObjArray *headerInfo, TString path);
virtual TString GetTypeOfPath(TString pathName);