Ignore:
Timestamp:
Feb 26, 2013, 2:35:45 PM (11 years ago)
Author:
touze
Message:

nvx element snapshot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/controler/src/particleBeam.cc

    r341 r342  
     1
    12#include "particleBeam.h"
    23#include "mathematicalConstants.h"
    34#include "PhysicalConstants.h"
    45#include "mathematicalTools.h"
    5 //#include <string>
     6
    67#include <stdio.h>
    78#include <algorithm>
    89#include <sstream>
    9 //#include "environmentVariables.h"
     10
    1011using namespace std;
    1112
    1213particleBeam::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   // }
    1914  P0Transport_ = 0.0;
    2015  particleRepresentationOk_ = false;
     
    3429}
    3530
    36 const beam2Moments&   particleBeam::getTransportMoments() const  {
    37     return rij_;
     31const beam2Moments& particleBeam::getTransportMoments() const  {
     32  return rij_;
    3833}
    3934
     
    5853}
    5954
    60 
    61 double particleBeam::getUnnormalizedEmittanceX() {
     55double particleBeam::getUnnormalizedEmittanceX()
     56{
    6257  double r = getSigmaTransportij(2,1);
    6358  double rac = (1 - r*r);
     
    8277  }
    8378}
    84 
    85 
    8679
    8780void particleBeam::set2Moments(beam2Moments& moments) {
     
    9891  goodPartic_ = particles;
    9992  cout << " particleBeam::setWithParticles taille vect. part. ENREGISTRE " << goodPartic_.size() << endl;
    100   //  printAllXYZ();
    10193  particleRepresentationOk_ = true;
    10294}
    103 
    10495
    10596bool particleBeam::particleRepresentationOk() const {
     
    119110  return goodPartic_;
    120111}
     112
    121113vector<bareParticle>& particleBeam::getParticleVector()
    122114{
    123115  return goodPartic_;
    124116}
    125 
    126 
    127 
    128117
    129118void particleBeam::getVariance(double& varx, double& vary, double& varz) const {
Note: See TracChangeset for help on using the changeset viewer.