Last change
on this file since 424 was
424,
checked in by touze, 11 years ago
|
sauvgarde de la configuration sur fichier format AML
|
File size:
1.6 KB
|
Line | |
---|
1 | #ifndef RFGUNDEFINITION_SEEN |
---|
2 | #define RFGUNDEFINITION_SEEN |
---|
3 | |
---|
4 | #include <string> |
---|
5 | #include <iostream> |
---|
6 | #include <sstream> |
---|
7 | |
---|
8 | #include "abstractElement.h" |
---|
9 | |
---|
10 | using namespace std; |
---|
11 | |
---|
12 | class elementRfgun : public abstractElement |
---|
13 | { |
---|
14 | |
---|
15 | // int nbParam_; |
---|
16 | // string* parametersString_; |
---|
17 | double defaultPhaseStep_; |
---|
18 | int defaultNmacrop_; |
---|
19 | double defaultSigma_t_; |
---|
20 | double defaultSigma_r_; |
---|
21 | double defaultEmit_x_; |
---|
22 | double defaultEmit_y_; |
---|
23 | double defaultE_cin_; |
---|
24 | double defaultSigma_E_; |
---|
25 | double defaultTotalCharge_; |
---|
26 | double phaseStep_; // a recuperer dans les parametres globaux (methode setPhaseStep) |
---|
27 | int nmacrop_; |
---|
28 | double sigma_t_; // picoseconds |
---|
29 | double sigma_r_; // cm |
---|
30 | double emit_x_; // pi.mm.mrad |
---|
31 | double emit_y_; // pi.mm.mrad |
---|
32 | double E_cin_; // MeV |
---|
33 | double sigma_E_; // MeV |
---|
34 | double totalCharge_; // nC |
---|
35 | |
---|
36 | void setDefaultValues(); |
---|
37 | void setDefaults(); |
---|
38 | |
---|
39 | public: |
---|
40 | |
---|
41 | elementRfgun(); |
---|
42 | ~elementRfgun() {;} |
---|
43 | |
---|
44 | virtual void setPhaseStep(double ph) { phaseStep_ = ph;} |
---|
45 | virtual string* getParametersString() const; |
---|
46 | virtual void setParametersString(string* param); |
---|
47 | virtual inline double getInitialKineticEnergy() const {return E_cin_;} |
---|
48 | virtual vector< pair<string, vector<string> > > parametersToSoftware () const; |
---|
49 | // virtual string parmelaOutputFlow() const; |
---|
50 | // virtual string transportOutputFlow() const |
---|
51 | // virtual string generatorOutputFlow() const; |
---|
52 | |
---|
53 | virtual string FileOutputFlow() const; |
---|
54 | virtual void FileInput(ifstream& ifs); |
---|
55 | virtual void InputRep(UAPNode* root); |
---|
56 | |
---|
57 | /** return a string with all parameters and value */ |
---|
58 | string print(); |
---|
59 | }; |
---|
60 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.