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

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

mise a jour des manipulations de faisceau

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
20  bool beamFromParmela(string workingDir,unsigned numeroElement, double referencefrequency, vector<double>& centroid, bareParticle& refPart,vector<bareParticle>& particles );
21
22  bool beamToParmela(string workingDir, particleBeam* partic );
23  void setRelativeParmelaElementIndices();
24 public : 
25    softwareParmela();
26   
27    softwareParmela(string inputFileName, globalParameters* globals, dataManager* beamLine);
28
29  virtual ~softwareParmela() {;}
30
31
32  virtual bool createInputFile(particleBeam* beamBefore, unsigned int numeroDeb, unsigned int numeroFin, string workingDir);
33
34  virtual bool  execute(string workingDir);
35
36
37virtual bool buildBeamAfterElements(string workingDir);
38
39    inline string getColor() {
40        return "#e09bdf";
41    }
42
43    /* inline string getName() const { */
44    /*     return "parmela"; */
45    /* } */
46
47};
48#endif
Note: See TracBrowser for help on using the repository browser.