Last change
on this file since 386 was
359,
checked in by garnier, 11 years ago
|
Changement de la couleur des sections selectionnes + plein dautres choses
|
File size:
1.2 KB
|
Rev | Line | |
---|
[40] | 1 | #ifndef BENDDEFINITION_SEEN |
---|
| 2 | #define BENDDEFINITION_SEEN |
---|
| 3 | |
---|
| 4 | #include <iostream> |
---|
| 5 | #include <string> |
---|
[41] | 6 | #include "abstractElement.h" |
---|
[40] | 7 | #include "mathematicalTools.h" |
---|
[84] | 8 | //#include "PhysicalConstants.h" |
---|
[40] | 9 | |
---|
[287] | 10 | |
---|
[40] | 11 | using namespace std; |
---|
| 12 | |
---|
| 13 | // aimant dipolaire, DANS LE PLAN XZ (le champ est dans la direction Y) |
---|
[84] | 14 | |
---|
| 15 | |
---|
[41] | 16 | class elementBend : public abstractElement |
---|
[40] | 17 | { |
---|
[287] | 18 | |
---|
| 19 | double angleDeg_; // deg. |
---|
| 20 | double radius_; // m |
---|
| 21 | double beta1_; // deg. |
---|
| 22 | double beta2_; // deg. |
---|
| 23 | double momentum_; // MeV/c |
---|
| 24 | |
---|
| 25 | double angleDegDef_; // deg. |
---|
| 26 | double radiusDef_; // m |
---|
| 27 | double beta1Def_; // deg. |
---|
| 28 | double beta2Def_; // deg. |
---|
| 29 | double momentumDef_; // MeV/c |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | void setDefaultValues(); |
---|
| 34 | void setDefaults(); |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | public: |
---|
| 38 | |
---|
| 39 | elementBend(); |
---|
| 40 | |
---|
| 41 | ~elementBend() {;} |
---|
| 42 | |
---|
| 43 | double getLenghtOfElement() const; |
---|
[359] | 44 | |
---|
[287] | 45 | virtual void setParametersString(string* param); |
---|
| 46 | |
---|
| 47 | virtual string* getParametersString() const; |
---|
| 48 | |
---|
| 49 | virtual string parmelaOutputFlow() const; |
---|
| 50 | |
---|
| 51 | virtual string transportOutputFlow() const; |
---|
| 52 | |
---|
| 53 | virtual string FileOutputFlow() const; |
---|
| 54 | |
---|
| 55 | virtual void FileInput(ifstream& ifs); |
---|
| 56 | |
---|
| 57 | /** return a string with all parameters and value |
---|
| 58 | */ |
---|
| 59 | string print(); |
---|
| 60 | |
---|
[40] | 61 | }; |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.