source: ZHANGProjects/ICOSIM/CPP/trunk/source/icosim++.cc @ 17

Last change on this file since 17 was 13, checked in by zhangj, 10 years ago

The proton routine from SixTrack has been linked in ICOSIM++...But still it still needs to be tested.

File size: 882 bytes
Line 
1#include <iostream>
2#include <vector>
3#include <string>
4#include "simulation.h"
5
6//#include "crystalproton.h"
7
8using namespace std;
9/*
10###################################################################################################################################
11
12main part who is called at the beginning of a simulation
13
14###################################################################################################################################
15 */
16
17
18
19
20int main(int argc, char* argv[])
21{
22
23    Simulation simul;
24
25    string inputfile;
26
27    string outputpath;
28
29    if ((argc == 1) || (argc == 2)) {
30        cerr << "Warning: you must put the path to the collimator file as first paramenter and the path to the ouptut folder as second parameter!!" << endl;
31    }
32
33    inputfile = argv[1];
34    outputpath = argv[2];
35
36
37    simul.run(inputfile, outputpath);
38
39    return 0;
40}
Note: See TracBrowser for help on using the repository browser.