source: PSPA/Interface_Web/trunk/pspaWT/sources/controler/include/softwareParmela.h @ 386

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

amélioration fiabilité graphique

File size: 1.2 KB
Line 
1#ifndef SOFTWAREPARMELA_SEEN
2#define SOFTWAREPARMELA_SEEN
3
4#include "abstractSoftware.h"
5
6class softwareParmela : public abstractSoftware
7{
8
9 protected : 
10
11
12 
13  //    les elements de parmela sont indexes à partir du premier, il faut
14  // donc prevoir un offset pour le raccord a pspa
15  //  unsigned offsetNumElem_;
16
17    vector<int> relativeParmelaElementIndices_;
18
19  bool beamFromParmela(string workingDir,unsigned numeroElement, double referencefrequency, vector<double>& centroid, bareParticle& refPart,vector<bareParticle>& particles );
20
21  bool beamToParmela(string workingDir, particleBeam* partic );
22  void setRelativeParmelaElementIndices();
23 public : 
24    softwareParmela();
25   
26    softwareParmela(string inputFileName, globalParameters* globals, dataManager* beamLine);
27
28  virtual ~softwareParmela() {;}
29
30
31  virtual bool createInputFile(particleBeam* beamBefore, unsigned int numeroDeb, unsigned int numeroFin, string workingDir);
32
33  virtual bool  execute(string workingDir);
34
35
36virtual bool buildBeamAfterElements(string workingDir);
37
38    inline string getColor() {
39        return "#e09bdf";
40    }
41
42    /* inline string getName() const { */
43    /*     return "parmela"; */
44    /* } */
45
46};
47#endif
Note: See TracBrowser for help on using the repository browser.