source: PSPA/Interface_Web/trunk/pspaWT/include/beam2Moments.h @ 236

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

epuration particleBeam

File size: 939 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
27beam2Moments( beam2Moments& tm);
28
29beam2Moments(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 void raz();
36
37 // void readFromTransportOutput(ifstream& inp);
38 void readFromTransportOutput(stringstream& inp);
39 string writeToTransportInput(double P0) const;
40
41 void impression() const;
42
43  // operators
44 
45  beam2Moments& operator= (const beam2Moments& tpm);
46
47};
48
49
50#endif
Note: See TracBrowser for help on using the repository browser.