source: PSPA/Interface_Web/trunk/pspaWT/sources/controler/include/elementBend.h @ 495

Last change on this file since 495 was 488, checked in by lemeur, 10 years ago

lecture fichier sauvegarde AML

File size: 1.3 KB
Line 
1#ifndef BENDDEFINITION_SEEN
2#define BENDDEFINITION_SEEN
3
4#include <iostream>
5#include <string>
6#include "abstractElement.h"
7#include "mathematicalTools.h"
8//#include "PhysicalConstants.h"
9
10
11using namespace std;
12
13// aimant dipolaire,  DANS LE PLAN XZ (le champ est dans la direction Y)
14
15class elementBend : public abstractElement
16{
17   
18  double angleDeg_; // deg.
19  double radius_; // m
20  double beta1_; // deg.
21  double beta2_; // deg.
22  double momentum_; // MeV/c
23 
24  double angleDegDef_; // deg.
25  double radiusDef_; // m
26  double beta1Def_; // deg.
27  double beta2Def_; // deg.
28  double momentumDef_; // MeV/c
29   
30  void setDefaultValues();
31  void setDefaults();
32   
33 public:
34   
35  elementBend();
36  ~elementBend() {;}
37 
38  double getLenghtOfElement() const;
39  virtual void setParametersString(string* param);
40  virtual string* getParametersString() const;
41  virtual vector< pair<string, vector<string> > > parametersToSoftware () const;
42  //   virtual  string parmelaOutputFlow() const;
43  //   virtual string transportOutputFlow() const;
44 
45  //  virtual string FileOutputFlow() const;
46  //  virtual void FileInput(ifstream& ifs);
47
48  virtual void InputRep(UAPNode* root);
49  virtual void FileAMLInput(UAPNode* entree);
50 
51  /** return a string with all parameters and value */
52  string print();
53};
54#endif
Note: See TracBrowser for help on using the repository browser.