Changeset 342 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/include/particleBeam.h
- Timestamp:
- Feb 26, 2013, 2:35:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/include/particleBeam.h
r341 r342 4 4 #include <sstream> 5 5 #include <stdio.h> 6 7 6 #include<cmath> 8 9 7 #include <vector> 10 8 11 9 #include "bareParticle.h" 12 //#include "mathematicalTools.h"13 10 #include "nomdElements.h" 14 11 #include "beam2Moments.h" … … 16 13 using namespace std; 17 14 18 19 20 15 class particleBeam 21 16 { 22 23 17 bool particleRepresentationOk_; 24 18 bool momentRepresentationOk_; 25 26 19 bareParticle referenceParticle_; 20 beam2Moments rij_; 21 double P0Transport_; 27 22 28 23 vector<bareParticle> goodPartic_; 29 30 beam2Moments rij_;31 32 33 24 vector<double> centroid_; 34 double P0Transport_;35 36 25 37 26 void impressionDesMoments() const; 38 27 void razDesMoments(); 39 28 40 41 29 public: 42 30 43 31 particleBeam(); 44 45 32 virtual ~particleBeam() {;} 46 33 47 34 void buildMomentRepresentation(); 48 49 50 35 void clear(); 51 52 36 int getNbParticles() const; 53 54 37 const beam2Moments& getTransportMoments() const; 55 38 double getSigmaTransportij(unsigned i, unsigned j); … … 59 42 bool particleRepresentationOk() const; 60 43 bool momentRepresentationOk() const; 61 62 63 44 void addParticle( bareParticle p); 64 65 66 67 45 const vector<bareParticle>& getParticleVector() const; 68 69 46 vector<bareParticle>& getParticleVector(); 70 71 47 double getXmaxRms(); 72 73 48 void getVariance(double& varx, double& vary, double& varz) const; 74 75 49 void set2Moments(beam2Moments& moments); 76 50 void setWithParticles(vector<double>& centroid, bareParticle& referencePart, vector<bareParticle>& particles); 77 51 void printAllXYZ() const; 78 79 80 52 void Zrange(double& zmin, double& zmax) const; 81 82 53 void donneesDessinEllipseXxp(vector<double>& xcor, vector<double>& ycor); 83 54 void donneesDessinEllipse(vector<double>& xcor, vector<double>& ycor, unsigned indexAbs, unsigned indexOrd); 84 55 85 56 virtual string FileOutputFlow() const; 86 87 88 57 virtual bool FileInput(ifstream& ifs); 89 90 58 void histogramme(vector<double>&xcor,vector<int>& hist,int& cnts,double out[3]); 91 59 }; 92 93 94 60 #endif
Note: See TracChangeset
for help on using the changeset viewer.