source: PSPA/Interface_Web/trunk/pspaWT/include/elementInitialBeam.h @ 122

Last change on this file since 122 was 107, checked in by touze, 12 years ago

gestion des elts etiquetes

File size: 1.4 KB
Line 
1#ifndef INITIALBEAMDEFINITION_SEEN
2#define INITIALBEAMDEFINITION_SEEN
3
4#include <string>
5#include <iostream>
6#include <sstream>
7
8#include "abstractElement.h"
9
10using namespace std;
11
12class elementInitialBeam : public abstractElement
13{
14
15  //  int nbParam_;
16  //  string* parametersString_;
17
18  double defaultPhaseStep_; 
19  int defaultNmacrop_;
20  double defaultSigma_t_;
21  double defaultSigma_r_;
22  double defaultE_cin_;
23  double defaultSigma_E_;
24  double defaultNb_true_particles_;
25
26  double phaseStep_; // a recuperer dans les parametres globaux (methode setPhaseStep)
27  int nmacrop_;
28  double sigma_t_; // picoseconds
29  double sigma_r_; // cm
30  double E_cin_;   // MeV
31  double sigma_E_; // MeV
32  double nb_true_particles_;
33
34  void setDefaultValues();
35 
36  void setDefaults();
37
38 public:
39
40  elementInitialBeam(); 
41
42  ~elementInitialBeam() {;}
43
44  virtual void setPhaseStep(double ph) { phaseStep_ = ph;}
45 
46 
47  virtual string* getParametersString() const;
48 
49  virtual void setParametersString(string* param);
50 
51  virtual inline double getInitialKineticEnergy() const {return E_cin_;}
52 
53  virtual string parmelaOutputFlow() const;
54 
55  virtual string transportOutputFlow() const
56  {
57    ostringstream sortie;
58    cout << " CELL sortie transport non programmee " << endl;
59    return sortie.str();
60  }
61 
62 virtual string FileOutputFlow() const;
63 
64 virtual void FileInput(ifstream& ifs);
65
66
67};
68
69
70#endif
Note: See TracBrowser for help on using the repository browser.