Example program to print eigen values in 2D.
More...
#include <string>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <vector>
#include "JGeometry2D/JVector2D.hh"
#include "JGeometry2D/JEigenValues2D.hh"
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Example program to print eigen values in 2D.
- Author
- mdejong
Definition in file JEigenValues2D.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 21 of file JEigenValues2D.cc.
30 JParser<> zap(
"Example program to print eigen values in 2D.");
37 catch(
const exception& error) {
38 FATAL(error.what() << endl);
49 if (inputFile !=
"") {
51 ifstream
in(inputFile.c_str());
53 for (
double x, y;
in >> x >> y; ) {
55 buffer.push_back(JVector2D(x,y));
61 JEigenValues2D eigen(buffer.begin(), buffer.end());
63 cout <<
"Number of eigen values " << eigen.getN() << endl;
64 cout <<
FIXED(7,3) << eigen.getX() << endl;
65 cout <<
FIXED(7,3) << eigen.getY() << endl;
Utility class to parse command line options.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
Auxiliary data structure for floating point format specification.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object