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

Last change on this file since 418 was 418, checked in by lemeur, 11 years ago

definition des compatibilites des elements dans les software

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
15
16class elementBend : public abstractElement
17{
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   
37public:
38   
39    elementBend();
40   
41    ~elementBend() {;}
42   
43    double getLenghtOfElement() const;
44       
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 vector< pair<string, vector<string> > > parametersToSoftware () const;
56   
57    virtual void FileInput(ifstream& ifs);
58   
59    /** return a string with all parameters and value
60     */
61    string print();
62   
63};
64
65
66#endif
Note: See TracBrowser for help on using the repository browser.