1 | #ifndef _Hector_parameters_
|
---|
2 | #define _Hector_parameters_
|
---|
3 |
|
---|
4 | /*
|
---|
5 | ---- Hector the simulator ----
|
---|
6 | A fast simulator of particles through generic beamlines.
|
---|
7 | J. de Favereau, X. Rouby ~~~ hector_devel@cp3.phys.ucl.ac.be
|
---|
8 |
|
---|
9 | http://www.fynu.ucl.ac.be/hector.html
|
---|
10 | J.~de Favereau, X.~Rouby and K.~Piotrzkowski,
|
---|
11 | Hector, a fast simulator for the transport of particles in beamlines,
|
---|
12 | JINST 2, P09005 (2007)
|
---|
13 | arXiv:0707.1198 [physics.acc-ph]
|
---|
14 |
|
---|
15 | Centre de Physique des Particules et de Phénoménologie (CP3)
|
---|
16 | Université Catholique de Louvain (UCL)
|
---|
17 | */
|
---|
18 |
|
---|
19 | /// \file H_Parameters.h
|
---|
20 | /// \brief Class aiming at gathering all parameters that must be defined.
|
---|
21 | ///
|
---|
22 | /// Units : angles [\f$ \mu \f$rad], distances [\f$ \mu \f$m], energies [GeV], c=[1].
|
---|
23 |
|
---|
24 | #include <cmath>
|
---|
25 |
|
---|
26 | /* from physics and maths */
|
---|
27 | /// proton mass [GeV]
|
---|
28 | const double MP=0.93827;
|
---|
29 | /// proton charge [e]
|
---|
30 | const double QP=1.;
|
---|
31 | /// conversion factor for \f$\mu\f$rad <-> rad
|
---|
32 | const double URAD=1000000.;
|
---|
33 |
|
---|
34 | /* beam parameters */
|
---|
35 | /// beam nominal energy in GeV
|
---|
36 | const double BE=7000.;
|
---|
37 | /// beam energy divergence, in GeV
|
---|
38 | const double SBE=0.79;
|
---|
39 | /// beam nominal energy in TeV
|
---|
40 | const double BETEV=7.;
|
---|
41 | /// beam S @ IP
|
---|
42 | const double PS=0.;
|
---|
43 | /// beam X @ IP
|
---|
44 | const double PX=-500.;
|
---|
45 | /// beam Y @ IP
|
---|
46 | const double PY=0.;
|
---|
47 | /// beam longitudinal dispersion
|
---|
48 | const double SS=0.;
|
---|
49 | /// beam lateral width SX @ IP
|
---|
50 | const double SX=16.63;
|
---|
51 | /// beam lateral width SY @ IP
|
---|
52 | const double SY=16.63;
|
---|
53 | /// beam transverse direction angle TX @ IP
|
---|
54 | const double TX=0.;
|
---|
55 | /// beam transverse direction angle TY @ IP
|
---|
56 | const double TY=0.;
|
---|
57 | /// beam angular divergence STX @ IP
|
---|
58 | const double STX=30.23;
|
---|
59 | /// beam angular divergence STY @ IP
|
---|
60 | const double STY=30.23;
|
---|
61 | /// half crossing angle at IP [\f$ \mu \f$RAD]
|
---|
62 | const double CRANG=142.5;
|
---|
63 |
|
---|
64 | // local defines, used in H_BeamParticle & H_OpticalElements
|
---|
65 | enum {INDEX_X=0, INDEX_TX, INDEX_Y, INDEX_TY, INDEX_S, LENGTH_VEC};
|
---|
66 | // (x,theta_x,y,theta_y,s)
|
---|
67 |
|
---|
68 | /// include Pythia libraries ? (not included on some ROOT installations)
|
---|
69 | //#define _include_pythia_
|
---|
70 |
|
---|
71 | const unsigned int TM = 0; // not used anymore. left for backward compatibility
|
---|
72 | const unsigned int AM = 1; // not used anymore. left for backward compatibility
|
---|
73 |
|
---|
74 |
|
---|
75 | /* display parameters */
|
---|
76 | /// Verbose mode ?
|
---|
77 | const bool VERBOSE=false;
|
---|
78 |
|
---|
79 | #endif
|
---|
80 |
|
---|