Changeset 342 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/src/particleBeam.cc
- Timestamp:
- Feb 26, 2013, 2:35:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/src/particleBeam.cc
r341 r342 1 1 2 #include "particleBeam.h" 2 3 #include "mathematicalConstants.h" 3 4 #include "PhysicalConstants.h" 4 5 #include "mathematicalTools.h" 5 //#include <string> 6 6 7 #include <stdio.h> 7 8 #include <algorithm> 8 9 #include <sstream> 9 //#include "environmentVariables.h" 10 10 11 using namespace std; 11 12 12 13 particleBeam::particleBeam() { 13 // rij_transportMoments_.resize(6);14 // unsigned dim=0;15 // unsigned k;16 // for ( k=0; k < 6; k++){17 // rij_transportMoments_.at(k).resize(++dim);18 // }19 14 P0Transport_ = 0.0; 20 15 particleRepresentationOk_ = false; … … 34 29 } 35 30 36 const beam2Moments& 37 31 const beam2Moments& particleBeam::getTransportMoments() const { 32 return rij_; 38 33 } 39 34 … … 58 53 } 59 54 60 61 double particleBeam::getUnnormalizedEmittanceX(){55 double particleBeam::getUnnormalizedEmittanceX() 56 { 62 57 double r = getSigmaTransportij(2,1); 63 58 double rac = (1 - r*r); … … 82 77 } 83 78 } 84 85 86 79 87 80 void particleBeam::set2Moments(beam2Moments& moments) { … … 98 91 goodPartic_ = particles; 99 92 cout << " particleBeam::setWithParticles taille vect. part. ENREGISTRE " << goodPartic_.size() << endl; 100 // printAllXYZ();101 93 particleRepresentationOk_ = true; 102 94 } 103 104 95 105 96 bool particleBeam::particleRepresentationOk() const { … … 119 110 return goodPartic_; 120 111 } 112 121 113 vector<bareParticle>& particleBeam::getParticleVector() 122 114 { 123 115 return goodPartic_; 124 116 } 125 126 127 128 117 129 118 void particleBeam::getVariance(double& varx, double& vary, double& varz) const {
Note: See TracChangeset
for help on using the changeset viewer.