-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathNeutron.h
More file actions
55 lines (39 loc) · 1.13 KB
/
Neutron.h
File metadata and controls
55 lines (39 loc) · 1.13 KB
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
53
54
55
#ifndef NEUTRON_H
#define NEUTRON_H
#include "TObject.h"
#include "Retta.h"
#include "Punto.h"
class Neutron : public TObject
{
public:
//eutron();
//Neutron(const Neutron&);
Neutron(const Neutron *n);
//Neutron(Punto *p, Retta *r, double Energy);
Neutron();
virtual ~Neutron();
Punto GetPunto() const {return fp;}
Retta GetRetta() const {return fr;}
double GetX() const {return fp.GetX();} //GetY
double GetY() const {return fp.GetY();} //GetX
double GetZ() const {return fp.GetZ();}
double GetTheta() const {return fr.GetTheta();}
double GetPhi() const {return fr.GetPhi();}
double GetEnergy() const {return En;}
bool GetAbsorption() const {return Absorption;}
void SetPunto(Punto fph){this->fp=fph;}
void SetRetta(Retta frh){this->fr=frh;}
void SetTheta(double theta){this->fr.SetTheta(theta);}
void SetPhi(double phi){this->fr.SetPhi(phi);}
void SetEnergia(double Enh){this->En=Enh;}
void SetAbsorption(){this->Absorption=kTRUE;}
void SetNuovoPunto(double x_int);
void Reset();
private:
Punto fp;
Retta fr;
double En;
bool Absorption;
ClassDef(Neutron,1)
};
#endif