Commit 36c1a7cc authored by Achim Morschhauser's avatar Achim Morschhauser
Browse files

Parameter file as CMD

parent 589530a6
......@@ -14,10 +14,25 @@
#include <Parameters_Reader.hpp>
int main() {
int main(int argc, char* argv[]) {
/*
std::string parfile;
switch (argc) {
case 1: parfile="/usr/par/parameters.par"; break;
case 2: parfile=argv[1]; break;
default: fprintf(stderr,"Please specify one parameter file to use !\n"); return(-1);
}
*/
if (argc != 2){
fprintf(stderr,"Please specify one parameter file to use !\n");
return(-1);
}
// Read from parameters file
Parameters_Reader par = Parameters_Reader("usr/par/parameters.par");
Parameters_Reader par = Parameters_Reader(argv[1]);
// Set the calibration constants.
// Will be done in driver_obs_obsdaq constructor in future, and parameter
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment