Line | |
---|
1 | #include <iostream> |
---|
2 | #include <cmath> |
---|
3 | #include "crystal.h" |
---|
4 | using namespace std; |
---|
5 | /*This class describes the particule at the beginning.*/ |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | class Partcrys |
---|
10 | { |
---|
11 | |
---|
12 | public: |
---|
13 | |
---|
14 | //==================Constructeurs, destructeur========================================= |
---|
15 | |
---|
16 | Partcrys( double x = 0.00001, double xp = 0, double y = 0, double yp = 0, double PC = 0); |
---|
17 | |
---|
18 | |
---|
19 | ~Partcrys() {}; |
---|
20 | |
---|
21 | //private: |
---|
22 | /* Other parameters that depend on the inital one and it will simplify or calculation*/ |
---|
23 | double x; //coordinate of the particule [m] |
---|
24 | double xp; //coordinate of the particule [rad] |
---|
25 | double y; //coordinate of the particule [m] |
---|
26 | double yp; //coordinate of the particule [rad] |
---|
27 | double PC; //coordinate of the particule [GeV] |
---|
28 | double s; //long coordinates of the particle [m] |
---|
29 | double xp_rel; //xp-miscut angle [mrad] |
---|
30 | int n_part; |
---|
31 | |
---|
32 | double Ang_rms; //Volume reflection mean angle [mrad] |
---|
33 | double Ang_avr; //Volume reflection mean angle [mrad] (Defini ds parameters et utilise ensuite...) |
---|
34 | |
---|
35 | double Dechan; //probability for dechanneling |
---|
36 | double Vcapt; //volume capture probability |
---|
37 | double Chann; //channeling probability |
---|
38 | |
---|
39 | |
---|
40 | //the next parameters count the number of particule that is for exple channeling!! |
---|
41 | int nchann; |
---|
42 | int ndechann; |
---|
43 | int namor; |
---|
44 | int nvcapt; |
---|
45 | int nvrefl; |
---|
46 | int nabsorbed; |
---|
47 | int nout; //number of particles that not hit the crystal collimator |
---|
48 | int effet; //Number that defini the effect :1 --> Out ;;; 2 --> Amorphous ;;; 3 --> Channeling ;;; 4 --> Dechanneling ;;; 5 --> V. Reflection ;;; 6 --> V. Capture, 7 --> absorbed |
---|
49 | long int nhit; //number of particles that hit the crystal collimator |
---|
50 | |
---|
51 | |
---|
52 | }; |
---|
53 | |
---|
54 | |
---|
55 | |
---|
Note: See
TracBrowser
for help on using the repository browser.