source:
PSPA/Interface_Web/trunk/pspaWT/sources/controler/include/bareParticle.h
@
342
Last change on this file since 342 was 342, checked in by , 11 years ago | |
---|---|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[54] | 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 | ||
12 | using namespace std; | |
13 | ||
14 | class bareParticle | |
15 | { | |
16 | ||
17 | protected: | |
18 | ||
[312] | 19 | TRIDVECTOR position_; // cm |
20 | TRIDVECTOR betagamma_; // radians | |
[54] | 21 | double gamma_; |
22 | ||
23 | ||
24 | ||
25 | protected: | |
26 | ||
27 | ||
28 | ||
29 | ||
30 | public : | |
31 | ||
32 | bareParticle() {;} | |
33 | ||
34 | ~bareParticle() {;} | |
35 | ||
36 | ||
[166] | 37 | bareParticle(const TRIDVECTOR& pos , const TRIDVECTOR& bg); |
[54] | 38 | |
[166] | 39 | bareParticle(bareParticle& bp); |
[54] | 40 | |
[166] | 41 | bareParticle(const bareParticle& bp); |
42 | ||
43 | void resetDynamics(const bareParticle& bp); | |
[54] | 44 | |
[166] | 45 | bareParticle& operator = (const bareParticle& bp); |
[54] | 46 | |
47 | ||
[166] | 48 | const TRIDVECTOR& getReferenceToPosition() const; |
[54] | 49 | |
[166] | 50 | TRIDVECTOR getPosition() const; |
[54] | 51 | |
[166] | 52 | TRIDVECTOR& getReferenceToPosition(); |
[54] | 53 | |
[166] | 54 | double getZ() const; |
[54] | 55 | |
56 | ||
[166] | 57 | void setZ(double z); |
[54] | 58 | |
[166] | 59 | void incrementZ( double dz); |
[54] | 60 | |
[166] | 61 | void setX(double x); |
[54] | 62 | |
63 | ||
[166] | 64 | double getRadius() const; |
[54] | 65 | |
66 | ||
[166] | 67 | TRIDVECTOR getBetaGamma() const; |
[54] | 68 | |
69 | ||
[166] | 70 | TRIDVECTOR& getReferenceToBetaGamma(); |
[54] | 71 | |
[166] | 72 | void setBetaGamma(const TRIDVECTOR& btg); |
[54] | 73 | |
[166] | 74 | double getBetaz() const; |
[54] | 75 | |
76 | ||
[166] | 77 | double getGamma() const; |
[54] | 78 | |
79 | ||
80 | void imprimer() const; | |
81 | ||
82 | ||
[166] | 83 | string FileOutputFlow() const; |
[54] | 84 | |
[166] | 85 | virtual bool FileInput( ifstream& ifs); |
[54] | 86 | |
87 | ||
88 | }; | |
89 | #endif |
Note: See TracBrowser
for help on using the repository browser.