Slight changes in Driftapproximation:
1) Spectrometer will reflect electrons. 2) Taking into account radial movement leading to smaller delta z.
This commit is contained in:
@@ -14,20 +14,15 @@ using namespace std;
|
||||
|
||||
|
||||
int main(int argc, const char * argv[]) {
|
||||
//runTests();
|
||||
|
||||
clock_t start;
|
||||
double duration;
|
||||
start = clock();
|
||||
clock_t start = clock();
|
||||
|
||||
try {
|
||||
Simulation Sim;
|
||||
Sim.doit();
|
||||
} catch (MyException& caught) {
|
||||
cout<<caught.what()<<endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
duration = ( clock() - start ) / (double) CLOCKS_PER_SEC;
|
||||
cout<<"Duration: "<< duration <<'\n';
|
||||
|
||||
cout<<"Duration: "<< ( clock() - start ) / (double) CLOCKS_PER_SEC <<'\n';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user