start adding triumf mud-file-format support. For a few days musrfit will be a bit frail.

This commit is contained in:
nemu
2009-09-30 06:54:37 +00:00
parent dc367a89a5
commit dcb77c2e48
17 changed files with 7209 additions and 11 deletions

View File

@ -46,6 +46,8 @@ using namespace std;
#include "TLemRunHeader.h"
#include "MuSR_td_PSI_bin.h"
#include "mud.h"
#include "PRunDataHandler.h"
//--------------------------------------------------------------------------
@ -917,8 +919,6 @@ bool PRunDataHandler::ReadWkmFile()
*/
bool PRunDataHandler::ReadPsiBinFile()
{
// cout << endl << "PRunDataHandler::ReadPsiBinFile(): Sorry, not yet implemented ...";
MuSR_td_PSI_bin psiBin;
int status;
bool success;
@ -1044,8 +1044,25 @@ bool PRunDataHandler::ReadPsiBinFile()
*/
bool PRunDataHandler::ReadMudFile()
{
cout << endl << "PRunDataHandler::ReadMudFile(): Sorry, not yet implemented ...";
return false;
Int_t fh;
UINT32 type;
fh = MUD_openRead((char *)fRunPathName.Data(), &type);
if (fh == -1) {
cerr << endl << "**ERROR** Couldn't open mud-file " << fRunPathName.Data() << ", sorry.";
cerr << endl;
return false;
}
// read necessary header information
// STILL MISSING
// read histograms
// STILL MISSING
MUD_closeRead(fh);
return true;
}
//--------------------------------------------------------------------------