Last change
on this file since 386 was
312,
checked in by lemeur, 11 years ago
|
suppression designation elements par index + fin generator
|
File size:
589 bytes
|
Line | |
---|
1 | #ifndef GENERATORPARTICLE_SEEN |
---|
2 | #define GENERATORPARTICLE_SEEN |
---|
3 | #include <iostream> |
---|
4 | typedef struct |
---|
5 | { |
---|
6 | float xx, yy, zz; |
---|
7 | float px, py, pz; |
---|
8 | float clock; |
---|
9 | float macroCharge; |
---|
10 | int index, flag; |
---|
11 | |
---|
12 | int readFromGeneratorFile(FILE* fp) |
---|
13 | { |
---|
14 | return fscanf(fp, " %e %e %e %e %e %e %e %e %d %d \n", &xx, &yy, &zz,&px,&py,&pz,&clock, ¯oCharge,&index,&flag); |
---|
15 | } |
---|
16 | void imprim() |
---|
17 | { |
---|
18 | std::cout << xx << " " << yy<< " " << zz << " " << px << " " << py << " " << pz << " " << clock << " " << macroCharge << " " << index << " " << flag << std::endl;; |
---|
19 | } |
---|
20 | |
---|
21 | } generatorParticle; |
---|
22 | |
---|
23 | |
---|
24 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.