musrfit  1.9.2
musrview.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <memory>
#include <TApplication.h>
#include <TSAXParser.h>
#include <TROOT.h>
#include "PMusr.h"
#include "PStartupHandler.h"
#include "PMsrHandler.h"
#include "PRunDataHandler.h"
#include "PRunListCollection.h"
#include "PMusrCanvas.h"
Include dependency graph for musrview.cpp:

Go to the source code of this file.

Functions

void musrview_syntax ()
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

The musrview program is used to show muSR fit results in graphical form. From it also Fourier transforms, difference between data an theory can be formed. For a detailed description/usage of the program, please see musrview online help

return:

  • PMUSR_SUCCESS if everthing went smooth
  • PMUSR_WRONG_STARTUP_SYNTAX if syntax error is encountered
  • line number if an error in the msr-file was encountered which cannot be handled.
Parameters
argcnumber of input arguments
argvlist of input arguments

Definition at line 104 of file musrview.cpp.

References PMusrCanvas::Done(), PMusrCanvas::ExportData(), PMusrCanvas::IsValid(), kView, musrview_syntax(), parseXmlFile(), PMUSR_DATA_FILE_READ_ERROR, PMUSR_MSR_FILE_NOT_FOUND, PMUSR_MSR_RUN_ERROR, PMUSR_MSR_SYNTAX_ERROR, PMUSR_SUCCESS, PMUSR_SYNTAX_REQUEST, PMUSR_WRONG_STARTUP_SYNTAX, PMusrCanvas::SaveGraphicsAndQuit(), PMusrCanvas::SetMsrHandler(), PMusrCanvas::SetRunListCollection(), PMusrCanvas::SetTimeout(), startup_path_name, status, timeout, PMusrCanvas::UpdateDataTheoryPad(), PMusrCanvas::UpdateInfoPad(), and PMusrCanvas::UpdateParamTheoryPad().

◆ musrview_syntax()

void musrview_syntax ( )

Sends the usage description to the standard output.

Definition at line 61 of file musrview.cpp.

Referenced by main().