|
musrfit 1.10.0
|
#include <cstdio>#include <cstdlib>#include <cstring>#include <iostream>#include <fstream>#include <memory>#include <boost/algorithm/string.hpp>#include <boost/filesystem.hpp>#include <TString.h>#include "PMusr.h"#include "PStartupHandler.h"#include "PRunDataHandler.h"#include "PFindRun.h"
Go to the source code of this file.
Classes | |
| struct | PAddRunInfo |
Functions | |
| void | addRun_syntax () |
| bool | addRun_checkFormat (std::string &format) |
| bool | addRun_readInputFiles (const std::string fileName, std::vector< PAddRunInfo > &infoVec) |
| UInt_t | addRun_getPromptPeakPos (PDoubleVector *vec) |
| bool | addRun_filter_t0 (int argc, char *argv[], int &idx, PIntVector &t0) |
| bool | addRun_filter_runList (int argc, char *argv[], int &idx, PUIntVector &runList) |
| int | main (int argc, char *argv[]) |
| bool addRun_checkFormat | ( | std::string & | format | ) |
check if the requested format is supported.
| format | requested format string |
Definition at line 129 of file addRun.cpp.
Referenced by main().
| bool addRun_filter_runList | ( | int | argc, |
| char * | argv[], | ||
| int & | idx, | ||
| PUIntVector & | runList ) |
Filters the runList arguments. Allowed are: (i) run1 run2 ... runN (ii) runStart-runEnd, and (iii) runStart:runEnd:step
| argc | argument counter |
| argv | argument list |
| idx | argument index from which to start |
| runList | vector |
Definition at line 325 of file addRun.cpp.
References PStringNumberList::GetList(), and PStringNumberList::Parse().
Referenced by main().
| bool addRun_filter_t0 | ( | int | argc, |
| char * | argv[], | ||
| int & | idx, | ||
| PIntVector & | t0 ) |
Filters the t0 arguments. Allowed is a comma separeted list of integers > -2.
| argc | argument counter |
| argv | argument list |
| idx | argument index from which to start |
| t0 | vector |
Definition at line 275 of file addRun.cpp.
References status.
Referenced by main().
| UInt_t addRun_getPromptPeakPos | ( | PDoubleVector * | vec | ) |
Automatically determines the t0-bin. This assumes that there is a prompt peak in the data!
| vec | histo data |
Definition at line 244 of file addRun.cpp.
Referenced by main().
| bool addRun_readInputFiles | ( | const std::string | fileName, |
| std::vector< PAddRunInfo > & | infoVec ) |
Reads the inputFile to extract the necessary information.
| fileName | |
| infoVec |
Definition at line 162 of file addRun.cpp.
References PAddRunInfo::fPathFileName, PAddRunInfo::fT0, NULL, and status.
Referenced by main().
| void addRun_syntax | ( | ) |
Sends the usage description to the standard output.
Definition at line 67 of file addRun.cpp.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] ) |
addRun is used to add various runs.
| argc | number of input arguments |
| argv | list of input arguments |
Definition at line 364 of file addRun.cpp.
References addRun_checkFormat(), addRun_filter_runList(), addRun_filter_t0(), addRun_getPromptPeakPos(), addRun_readInputFiles(), addRun_syntax(), PAddRunInfo::fFileFormat, PFindRun::FoundPathName(), PAddRunInfo::fPathFileName, PAddRunInfo::fT0, PRawRunData::GetDataSet(), PRawRunData::GetNoOfHistos(), PFindRun::GetPathName(), parseXmlFile(), PMUSR_MSR_ALLOCATION_ERROR, PMUSR_SUCCESS, PRawRunDataSet::SetData(), PRawRunData::SetGenerator(), PRawRunDataSet::SetTimeZeroBin(), startup_path_name, and status.