#ifndef GENERATORPARTICLE_SEEN #define GENERATORPARTICLE_SEEN #include typedef struct { float xx, yy, zz; float px, py, pz; float clock; float macroCharge; int index, flag; int readFromGeneratorFile(FILE* fp) { return fscanf(fp, " %e %e %e %e %e %e %e %e %d %d \n", &xx, &yy, &zz,&px,&py,&pz,&clock, ¯oCharge,&index,&flag); } void imprim() { std::cout << xx << " " << yy<< " " << zz << " " << px << " " << py << " " << pz << " " << clock << " " << macroCharge << " " << index << " " << flag << std::endl;; } } generatorParticle; #endif