#include <string>
#include <iostream>
#include "TROOT.h"
#include "eventRates.h"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 6 of file makeFluxHistogramsL.cc.
16 double pot_per_file = 100000.;
20 char* myFile, myPath, myOutPath;
22 for (
int i = 1;
i < argc;
i++) {
24 if (tmpStr.find(
"--user=") == 0) {
26 user = tmpStr.substr(7);
27 }
else if (tmpStr.find(
"--version=") == 0) {
29 version = tmpStr.substr(10);
30 }
else if (tmpStr.find(
"--macro=") == 0) {
32 macro = tmpStr.substr(8);
33 }
else if (tmpStr.find(
"--current=") == 0) {
35 current = tmpStr.substr(10);
36 }
else if (tmpStr.find(
"--location=") == 0) {
38 location = tmpStr.substr(11);
39 std::cout<<
"location is "<<location<<
std::endl;
40 }
else if (tmpStr.find(
"--physics_list=") == 0) {
42 physics_list = tmpStr.substr(15);
43 std::cout<<
"Physics list is "<<physics_list<<
std::endl;
44 }
else if (tmpStr.find(
"--n_files=") == 0) {
46 n_files = atoi((tmpStr.substr(10)).c_str());
47 }
else if (tmpStr.find(
"--start_index=") == 0) {
49 start_index = atoi((tmpStr.substr(14)).c_str());
50 }
else if (tmpStr.find(
"--pot_per_file=") == 0) {
52 pot_per_file = atof((tmpStr.substr(15)).c_str());
53 std::cout<<
"pot_per_file "<<pot_per_file<<
std::endl;
54 }
else if (tmpStr.find(
"--on_grid=") == 0) {
59 }
else if (tmpStr.find(
"--dk2nu=") == 0) {
65 std::cout <<
" Unrecognized argument .\n" << tmpStr <<
" Fatal, exit here! \n " <<
std::endl;
72 eventRates t(user, version, macro, current, location, physics_list, n_files, start_index, pot_per_file, on_grid, dk2nu);
74 std::cout <<
" Event Rate class loaded.. " <<
std::endl;
75 std::cout <<
" Arguments are " <<
std::endl;
76 std::cout <<
" user = " << user <<
std::endl;
77 std::cout <<
" version = " << version <<
std::endl;
78 std::cout <<
" macro = " << macro <<
std::endl;
79 std::cout <<
" current = " << current <<
std::endl;
80 std::cout <<
" location = " << location <<
std::endl;
81 std::cout <<
" physics_list = " << physics_list <<
std::endl;
82 std::cout <<
" n_files " << n_files <<
std::endl;
83 std::cout <<
" start_index " << start_index <<
std::endl;
84 std::cout <<
" pot_per_file " << pot_per_file <<
std::endl;
85 if (on_grid) std::cout <<
" We are on the grid .. " <<
std::endl;
86 else std::cout <<
" We are NOT on the grid .. " <<
std::endl;
87 if (dk2nu) std::cout <<
" We are using Dk2nu .. " <<
std::endl;
88 else std::cout <<
" We are using the old NuMI style Ntuple .. " <<
std::endl;
std::string getenv(std::string const &name)
QTextStream & endl(QTextStream &s)