source: PSPA/Interface_Web/trunk/pspaWT/sources/controler/include/bareParticle.h @ 342

Last change on this file since 342 was 342, checked in by touze, 11 years ago

nvx element snapshot

File size: 1.1 KB
Line 
1#ifndef BAREPARTICLE_SEEN
2#define BAREPARTICLE_SEEN
3
4#include <iostream>
5#include <sstream>
6
7#include <cmath>
8
9
10#include "mathematicalTools.h"
11
12using namespace std;
13
14class bareParticle
15{
16
17 protected:
18
19  TRIDVECTOR position_;  // cm
20  TRIDVECTOR betagamma_;  // radians
21  double gamma_;
22
23
24
25 protected:
26
27
28
29
30 public :
31
32  bareParticle() {;}
33
34~bareParticle() {;}
35
36
37 bareParticle(const TRIDVECTOR&  pos , const TRIDVECTOR& bg);
38
39 bareParticle(bareParticle& bp);
40
41 bareParticle(const bareParticle& bp);
42 
43 void resetDynamics(const bareParticle& bp);
44
45 bareParticle& operator = (const bareParticle& bp);
46
47
48 const TRIDVECTOR& getReferenceToPosition() const;
49
50 TRIDVECTOR getPosition() const;
51
52 TRIDVECTOR& getReferenceToPosition(); 
53
54 double getZ() const;
55
56
57 void setZ(double z);
58
59 void incrementZ( double dz);
60
61 void setX(double x); 
62
63
64 double getRadius() const;
65
66
67 TRIDVECTOR getBetaGamma() const;
68
69
70 TRIDVECTOR& getReferenceToBetaGamma(); 
71 
72 void setBetaGamma(const TRIDVECTOR& btg); 
73
74 double getBetaz() const;
75
76
77 double getGamma() const; 
78
79
80 void imprimer() const; 
81
82
83 string FileOutputFlow() const;
84
85 virtual bool FileInput( ifstream& ifs);
86
87
88};
89#endif
Note: See TracBrowser for help on using the repository browser.