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

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

complements graphiques, legendes et unification unites

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  //    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
33virtual 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
Note: See TracBrowser for help on using the repository browser.