Changeset 243 in PSPA for Interface_Web/trunk/pspaWT/include
- Timestamp:
- Jan 18, 2013, 10:02:58 PM (11 years ago)
- Location:
- Interface_Web/trunk/pspaWT/include
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/include/GWt_abstractElement.h
r239 r243 5 5 #include "GWt_draggableImage.h" 6 6 #include "abstractElement.h" 7 #include "GWt_console.h" 7 8 8 9 #include <Wt/WDialog> -
Interface_Web/trunk/pspaWT/include/abstractElement.h
r229 r243 7 7 8 8 #include "nomdElements.h" 9 #include "nomDeLogiciel.h" 10 #include "trivaluedBool.h" 9 11 10 12 using namespace std; … … 14 16 protected : 15 17 16 bool parmelaOk_;17 bool parmelaIgnored_;18 bool transportOk_;18 /* bool parmelaOk_; */ 19 /* bool parmelaIgnored_; */ 20 /* bool transportOk_; */ 19 21 int nbParam_; 20 22 string* parametersString_; … … 50 52 51 53 /* string getElementImage() const; */ 52 53 54 /* string getElementName() const; */ 54 55 55 56 double getLenghtOfElement() const; 56 57 int getNbParams() const; 57 bool is_parmela_ignored() const;58 bool is_parmela_element() const;59 bool is_transport_element() const;60 58 /* bool is_parmela_ignored() const; */ 59 /* bool is_parmela_element() const; */ 60 /* bool is_transport_element() const; */ 61 virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const; 61 62 virtual void setPhaseStep(double); 62 63 virtual double getInitialKineticEnergy() const; -
Interface_Web/trunk/pspaWT/include/dataManager.h
r236 r243 12 12 #include "beam2Moments.h" 13 13 14 typedef struct 15 { 16 float xx, xxp, begamx,yy,yyp,begamy,z, begamz,phi,wz; 17 float phi0, ksi1,ksi2,ksi3; 18 int ne,np,ngood,npart; 19 20 int readFromParmelaFile(FILE* fp) 21 { 22 return fscanf(fp, " %e %e %e %e %e %e %e %e %e %e %d %d %d %d %e %e %e %e \n", &xx, &xxp, &begamx,&yy,&yyp,&begamy,&z, &begamz,&phi,&wz,&ne,&np,&ngood,&npart,&phi0, &ksi1,&ksi2,&ksi3); 23 } 24 void imprim() 25 { 26 printf( " %e %e %e %e %e %e %e %e %e %e %d %d %d, %d %e %e %e %e \n", xx, xxp, begamx,yy,yyp,begamy,z, begamz,phi,wz,ne,np,ngood,npart,phi0, ksi1,ksi2,ksi3); 27 } 28 } parmelaParticle; 14 29 15 30 … … 31 46 void clearSectionToExecute(); 32 47 bool moments2FromTransport(string workingDir, string elLab, const nomdElements elem, beam2Moments& moments) const; 33 48 bool beamFromParmela(string workingDir,unsigned numeroElement, double referencefrequency, vector<double>& centroid, bareParticle& refPart,vector<bareParticle>& particles ); 34 49 public: 35 50 … … 56 71 void initializeExecution(string workingDir); 57 72 trivaluedBool checkExecute(string& diagnostic); 73 trivaluedBool checkElementsForExec(nomDeLogiciel logiciel, unsigned indexDeb, unsigned indexFin, string& diagnostic); 58 74 bool executeTransport( unsigned int numeroDeb, unsigned int numeroFin, string workingDir, string& resul); 59 75 bool executeParmela( unsigned int numeroDeb, unsigned int numeroFin, string workingDir, string& resul); 76 bool launchJob(string commandLine, string& resul); 60 77 bool executeAll(string workingDir, string& resul); 61 78 void saveConfiguration(string workingDir, string nameOfFile); -
Interface_Web/trunk/pspaWT/include/elementBeam.h
r180 r243 30 30 ~elementBeam(); 31 31 32 virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const; 32 33 33 34 -
Interface_Web/trunk/pspaWT/include/elementBend.h
r202 r243 43 43 double getLenghtOfElement() const; 44 44 45 virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const; 46 45 47 46 48 virtual void setParametersString(string* param); -
Interface_Web/trunk/pspaWT/include/elementCell.h
r107 r243 46 46 ~elementCell() { ;} 47 47 48 virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const; 48 49 49 50 virtual string* getParametersString() const; -
Interface_Web/trunk/pspaWT/include/elementDrift.h
r84 r243 18 18 ~elementDrift() {;} 19 19 20 virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const; 21 22 20 23 virtual string* getParametersString() const; 21 24 -
Interface_Web/trunk/pspaWT/include/elementFit.h
r225 r243 29 29 ~elementFit() {;} 30 30 31 virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const; 32 31 33 32 34 virtual void setParametersString(string* param); -
Interface_Web/trunk/pspaWT/include/elementRfgun.h
r155 r243 42 42 ~elementRfgun() {;} 43 43 44 virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const; 45 44 46 virtual void setPhaseStep(double ph) { phaseStep_ = ph;} 45 47 -
Interface_Web/trunk/pspaWT/include/elementSoleno.h
r229 r243 32 32 ~elementSoleno() {;} 33 33 34 virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const; 35 34 36 virtual void setParametersString(string* param); 35 37 -
Interface_Web/trunk/pspaWT/include/particleBeam.h
r236 r243 10 10 11 11 #include "bareParticle.h" 12 #include "mathematicalTools.h"12 //#include "mathematicalTools.h" 13 13 #include "nomdElements.h" 14 14 #include "beam2Moments.h" … … 16 16 using namespace std; 17 17 18 typedef struct 19 { 20 float xx, xxp, begamx,yy,yyp,begamy,z, begamz,phi,wz; 21 float phi0, ksi1,ksi2,ksi3; 22 int ne,np,ngood,npart; 18 /* typedef struct */ 19 /* { */ 20 /* float xx, xxp, begamx,yy,yyp,begamy,z, begamz,phi,wz; */ 21 /* float phi0, ksi1,ksi2,ksi3; */ 22 /* int ne,np,ngood,npart; */ 23 23 24 int readFromParmelaFile(FILE* fp) 25 { 26 return fscanf(fp, " %e %e %e %e %e %e %e %e %e %e %d %d %d %d %e %e %e %e \n", &xx, &xxp, &begamx,&yy,&yyp,&begamy,&z, &begamz,&phi,&wz,&ne,&np,&ngood,&npart,&phi0, &ksi1,&ksi2,&ksi3); 27 } 28 void imprim() 29 { 30 printf( " %e %e %e %e %e %e %e %e %e %e %d %d %d, %d %e %e %e %e \n", xx, xxp, begamx,yy,yyp,begamy,z, begamz,phi,wz,ne,np,ngood,npart,phi0, ksi1,ksi2,ksi3); 31 } 32 } parmelaParticle; 24 /* int readFromParmelaFile(FILE* fp) */ 25 /* { */ 26 /* return fscanf(fp, " %e %e %e %e %e %e %e %e %e %e %d %d %d %d %e %e %e %e \n", &xx, &xxp, &begamx,&yy,&yyp,&begamy,&z, &begamz,&phi,&wz,&ne,&np,&ngood,&npart,&phi0, &ksi1,&ksi2,&ksi3); */ 27 /* } */ 28 /* void imprim() */ 29 /* { */ 30 /* printf( " %e %e %e %e %e %e %e %e %e %e %d %d %d, %d %e %e %e %e \n", xx, xxp, begamx,yy,yyp,begamy,z, begamz,phi,wz,ne,np,ngood,npart,phi0, ksi1,ksi2,ksi3); */ 31 /* } */ 32 /* } parmelaParticle; */ 33 33 34 34 … … 63 63 virtual ~particleBeam() {;} 64 64 65 bool setFromParmela(string workingDir,unsigned numeroElement,double referencefrequency);65 // bool setFromParmela(string workingDir,unsigned numeroElement,double referencefrequency); 66 66 void buildMomentRepresentation(); 67 67 … … 92 92 93 93 void set2Moments(beam2Moments& moments); 94 94 void setWithParticles(vector<double>& centroid, bareParticle& referencePart, vector<bareParticle>& particles); 95 95 void printAllXYZ() const; 96 96
Note: See TracChangeset
for help on using the changeset viewer.