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

Last change on this file since 495 was 482, checked in by touze, 10 years ago

maj dans le fichier d'appel de madx

File size: 1013 bytes
Line 
1#ifndef TRANSPORTMOMENTS_SEEN
2#define TRANSPORTMOMENTS_SEEN
3
4#include <iostream>
5#include <fstream>
6#include <vector>
7
8using namespace std;
9
10class beam2Moments
11{
12
13  // matrice des moments ; pour l'instant au format transport
14  // rii = sqrt(sigma_ii)
15  // rij = correlation , |rij| < 1
16  vector< vector<double> > rij_secondOrderMoments_;
17
18  void initializeMoments();
19
20 public :
21 
22  beam2Moments();
23 
24  ~beam2Moments();
25
26
27  beam2Moments( beam2Moments& tm);
28
29  beam2Moments(const beam2Moments& tm);
30
31  beam2Moments(double x, double xp, double y, double yp, double dl, double del);
32
33  // const vector< vector<double> >& getMoments() const;
34  vector< vector<double> >& getMatrix();
35  const vector< vector<double> >& getMoments() const;
36
37  void raz();
38
39  // void readFromTransportOutput(ifstream& inp);
40  bool readFromTransportOutput(stringstream& inp);
41  string writeToTransportInput(double P0) const;
42
43  void impression() const;
44
45  // operators
46 
47  beam2Moments& operator= (const beam2Moments& tpm);
48
49};
50
51
52#endif
Note: See TracBrowser for help on using the repository browser.