Changeset 424 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/include/elementRfgun.h
- Timestamp:
- Sep 30, 2013, 5:03:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/include/elementRfgun.h
r418 r424 13 13 { 14 14 15 // int nbParam_; 16 // string* parametersString_; 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(); 17 38 18 double defaultPhaseStep_; 19 int defaultNmacrop_; 20 double defaultSigma_t_; 21 double defaultSigma_r_; 22 double defaultEmit_x_; 23 double defaultEmit_y_; 24 double defaultE_cin_; 25 double defaultSigma_E_; 26 double defaultTotalCharge_; 39 public: 27 40 28 double phaseStep_; // a recuperer dans les parametres globaux (methode setPhaseStep) 29 int nmacrop_; 30 double sigma_t_; // picoseconds 31 double sigma_r_; // cm 32 double emit_x_; // pi.mm.mrad 33 double emit_y_; // pi.mm.mrad 34 double E_cin_; // MeV 35 double sigma_E_; // MeV 36 double totalCharge_; // nC 37 38 void setDefaultValues(); 39 40 void setDefaults(); 41 42 public: 43 44 elementRfgun(); 45 46 ~elementRfgun() {;} 47 48 virtual void setPhaseStep(double ph) { phaseStep_ = ph;} 49 50 51 virtual string* getParametersString() const; 52 53 virtual void setParametersString(string* param); 54 55 virtual inline double getInitialKineticEnergy() const {return E_cin_;} 56 57 // virtual string parmelaOutputFlow() const; 58 59 /* virtual string transportOutputFlow() const */ 60 /* { */ 61 /* ostringstream sortie; */ 62 /* cout << " CELL sortie transport non programmee " << endl; */ 63 /* return sortie.str(); */ 64 /* } */ 65 66 // virtual string generatorOutputFlow() const; 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; 67 52 68 virtual string FileOutputFlow() const; 69 virtual vector< pair<string, vector<string> > > parametersToSoftware () const; 53 virtual string FileOutputFlow() const; 54 virtual void FileInput(ifstream& ifs); 55 virtual void InputRep(UAPNode* root); 70 56 71 virtual void FileInput(ifstream& ifs); 72 73 /** return a string with all parameters and value 74 */ 75 string print(); 76 77 57 /** return a string with all parameters and value */ 58 string print(); 78 59 }; 79 80 81 60 #endif
Note: See TracChangeset
for help on using the changeset viewer.