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