Added a minor extension to the global mode of msr2data which allows the generation of a global msr-file including the results of single-run fits for

run-specific parameters. This might help to get overall better starting parameters for a global fit.
For a few more details and an example, see the documentation.
Any testing is very welcome.
This commit is contained in:
Bastian M. Wojek
2011-01-22 01:17:22 +00:00
parent 826ad1efa9
commit ebcd192509
4 changed files with 297 additions and 35 deletions

View File

@@ -63,19 +63,22 @@ class PMsr2Data
int SetRunNumbers(const vector<unsigned int>&); // explicit run list specified using [ ]
unsigned int GetPresentRun() const;
int DetermineRunNumberDigits(unsigned int) const;
int DetermineRunNumberDigits(unsigned int, bool) const;
int CheckRunNumbersInRange() const;
int ParseXmlStartupFile();
int ReadMsrFile(const string&) const;
bool ReadRunDataFile();
bool PrepareNewInputFile(unsigned int) const; // template
bool PrepareGlobalInputFile(unsigned int, const string&) const; // generate msr-input file for a global fit
bool PrepareNewInputFile(unsigned int, bool) const; // template
bool PrepareGlobalInputFile(unsigned int, const string&, unsigned int) const; // generate msr-input file for a global fit
int WriteOutput(const string&, bool, bool, bool global = false, unsigned int counter = 0) const;
private:
bool PrepareNewSortedInputFile(unsigned int) const; // template
PMsrHandler* GetSingleRunMsrFile() const;
string fFileExtension;
vector<unsigned int> fRunVector;
mutable vector<unsigned int>::const_iterator fRunVectorIter;