Commit 177583f6 authored by TOUZE Francois's avatar TOUZE Francois
Browse files

initialisation du dépôt

parent 08eb3e57
#ifndef GENERATORPARTICLE_SEEN
#define GENERATORPARTICLE_SEEN
#include <iostream>
typedef struct
{
float xx, yy, zz; // m
float px, py, pz; // eV/c
float clock; // ns
float macroCharge; // nC
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, &macroCharge, &index, &flag);
}
void imprim()
{
std::cout << xx << " " << yy<< " " << zz << " " << px << " " << py << " " << pz << " " << clock << " " << macroCharge << " " << index << " " << flag << std::endl;;
}
} generatorParticle;
#endif
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#ifndef MATHEMATICALCONSTANTS_SEEN
#define MATHEMATICALCONSTANTS_SEEN
#define PI 3.14159265359
#define TWOPI 6.28318530718
#define DEG_TO_RADIANS 1.74532925199e-2
#define PETIT 0.5e-38
#define GRAND 0.5e+38
#define EPSILON 1.e-10
#endif
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment