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

Last change on this file since 347 was 347, checked in by garnier, 11 years ago

Ameliorations pour la sauvegarde des fichiers et autres

File size: 1.1 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
15
16  softwareParmela();
17
18  bool beamFromParmela(string workingDir,unsigned numeroElement, double referencefrequency, vector<double>& centroid, bareParticle& refPart,vector<bareParticle>& particles );
19
20  bool beamToParmela(string workingDir, particleBeam* partic );
21
22 public : 
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
40};
41#endif
Note: See TracBrowser for help on using the repository browser.