YCrossFit 1.0
A C++/ROOT Library for the analysis of the differential cross section of the Y(1S,2S,3S) resonances in two muons
optionParse.h
Go to the documentation of this file.
1
10#ifndef optionParse_h
11#define optionParse_h
12
13#include <iostream>
14#include "getopt.h"
15#include <string>
16#include <algorithm>
17
18
55void PrintHelp();
56
57
73void outOfRangeErrorHandling(std::string opt, std::string range, const char *insrtvl);
74
75
89void conversionErrorHandling(std::string opt, std::string range, std::invalid_argument err);
90
91
102
103
126void ProcessArgs(int argc, char **argv, int &fr, float &pmr, float &pMr, float &ymr, float &yMr, std::string &nfr,
127 int &vr, int &mr, int &cr);
128
129#endif
void outOfRangeErrorHandling(std::string opt, std::string range, const char *insrtvl)
Handle an exception of type "Out of Range".
void conversionErrorHandling(std::string opt, std::string range, std::invalid_argument err)
Handles an exception of type "conversion Error".
void ProcessArgs(int argc, char **argv, int &fr, float &pmr, float &pMr, float &ymr, float &yMr, std::string &nfr, int &vr, int &mr, int &cr)
Implementation of the option arguments with the library <getopt>.
void unknownErrorHandling()
Handle an exception of type "unknown".
void PrintHelp()
Print help stream for understanding what options and flags are available, then exit.