source: PSPA/Interface_Web/trunk/pspaWT/include/elementBend.h @ 228

Last change on this file since 228 was 202, checked in by lemeur, 12 years ago

bend pour parmela

File size: 1.0 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
37 public:
38
39  elementBend();
40
41  ~elementBend() {;}
42
43  double getLenghtOfElement() const;
44
45
46  virtual void setParametersString(string* param);
47
48  virtual string* getParametersString() const;
49
50  virtual  string parmelaOutputFlow() const;
51
52 virtual string transportOutputFlow() const;
53
54 virtual  string FileOutputFlow() const;
55
56 virtual void FileInput(ifstream& ifs);
57
58};
59
60
61#endif
Note: See TracBrowser for help on using the repository browser.