-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGeneratore.h
More file actions
52 lines (32 loc) · 830 Bytes
/
Generatore.h
File metadata and controls
52 lines (32 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef GENERATORE_H
#define GENERATORE_H
#include "TObject.h"
#include "TRandom3.h"
#include "TFile.h"
#include "TH1.h"
#include "Retta.h"
#include "Punto.h"
#include "Neutron.h"
class Generatore : public TObject
{
public:
//ho definito un generatore con x0 già settato a zero
Generatore(int N_particles,double E_iniziale,double dx_beam, double dy_beam, double x0, double y0);
virtual ~Generatore();
void Genera_neutrone(Neutron *n);
int GetParticles() const {return Np;}
double GetEn() const {return Ep;}
double Getdy() const {return dy_p;}
double Getdx() const {return dx_p;}
double Gety0() const {return y0p;}
double Getx0() const {return x0p;}
private:
int Np;
double Ep;
double dy_p;
double dx_p;
double y0p;
double x0p;
ClassDef(Generatore,1)
};
#endif