This is the first version of the muSR simulation code (musrSim) based on the merged codes of Kamil Sedlak and Toni Shiroka. It should be a running version of the simulation code, however it has not been very well tested, therefore it will probably need some further development.
30 lines
674 B
C++
30 lines
674 B
C++
#ifndef musrErrorMessage_h
|
|
#define musrErrorMessage_h 1
|
|
|
|
#include <map>
|
|
#include "globals.hh"
|
|
enum SEVERITY {INFO, WARNING, SERIOUS, FATAL};
|
|
|
|
typedef struct
|
|
{
|
|
SEVERITY mesSeverity;
|
|
int nTimes;
|
|
} ErrorStruct;
|
|
|
|
class musrErrorMessage {
|
|
public:
|
|
musrErrorMessage();
|
|
~musrErrorMessage();
|
|
static musrErrorMessage* GetInstance();
|
|
void musrError(SEVERITY severity, G4String message, G4bool silent);
|
|
void PrintErrorSummary();
|
|
|
|
private:
|
|
static musrErrorMessage* pointerToErrors;
|
|
G4int nErrors;
|
|
// std::map<G4String,int> ErrorMapping;
|
|
std::map<G4String,ErrorStruct> ErrorMapping;
|
|
std::map<SEVERITY,G4String> severityWord;
|
|
};
|
|
#endif
|