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

Last change on this file since 287 was 287, checked in by garnier, 11 years ago

ajout de tooltip et nettoyage de code

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 trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const;
46   
47   
48    virtual void setParametersString(string* param);
49   
50    virtual string* getParametersString() const;
51   
52    virtual  string parmelaOutputFlow() const;
53   
54    virtual string transportOutputFlow() const;
55   
56    virtual  string FileOutputFlow() const;
57   
58    virtual void FileInput(ifstream& ifs);
59   
60    /** return a string with all parameters and value
61     */
62    string print();
63   
64};
65
66
67#endif
Note: See TracBrowser for help on using the repository browser.