blob: 4bc5a59b99ba26757f7b9c6f18dd7a1e72d896f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/*
* PacticleTest.cc
*
* Created on: Apr 25, 2011
* Author: jakob
*/
#include <iostream>
#include "constants.h"
#include "Particle.h"
#include "Vector3D.h"
using namespace std;
using namespace vhc;
using namespace constants;
int main() {
Particle p1 = Particle(Vector3D::Null, PROTON_MASS, E, 1 * GeV, Vector3D::i);
Particle p2 = Particle(Vector3D(5,3,2), ELECTRON_MASS, E, 1.5 * GeV, Vector3D::j);
Particle p3 = p1;
cout << p1 << endl;
cout << p2 << endl;
cout << p3 << endl;
return 0;
}
|