Fork me on GitHub

source: svn/trunk/Utilities/Hector/include/H_Parameters.h@ 176

Last change on this file since 176 was 3, checked in by Xavier Rouby, 16 years ago

first commit

File size: 2.4 KB
Line 
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]
28const double MP=0.93827;
29 /// proton charge [e]
30const double QP=1.;
31 /// pi
32#ifndef __PI__
33#define __PI__
34const double PI=acos(-1.);
35#endif
36 /// conversion factor for \f$\mu\f$rad <-> rad
37const double URAD=1000000.;
38
39/* beam parameters */
40 /// beam nominal energy in GeV
41const double BE=7000.;
42 /// beam energy divergence, in GeV
43const double SBE=0.79;
44 /// beam nominal energy in TeV
45const double BETEV=7.;
46 /// beam S @ IP
47const double PS=0.;
48 /// beam X @ IP
49const double PX=-500.;
50 /// beam Y @ IP
51const double PY=0.;
52 /// beam longitudinal dispersion
53const double SS=0.;
54 /// beam lateral width SX @ IP
55const double SX=16.63;
56 /// beam lateral width SY @ IP
57const double SY=16.63;
58 /// beam transverse direction angle TX @ IP
59const double TX=0.;
60 /// beam transverse direction angle TY @ IP
61const double TY=0.;
62 /// beam angular divergence STX @ IP
63const double STX=30.23;
64 /// beam angular divergence STY @ IP
65const double STY=30.23;
66 /// half crossing angle at IP [\f$ \mu \f$RAD]
67const double CRANG=142.5;
68
69// local defines, used in H_BeamParticle & H_OpticalElements
70#define LENGTH_VEC 5
71#define INDEX_X 0
72#define INDEX_TX 1
73#define INDEX_Y 2
74#define INDEX_TY 3
75#define INDEX_S 4
76// (x,theta_x,y,theta_y,s)
77//
78
79/// include Pythia libraries ? (not included on some ROOT installations)
80//#define _include_pythia_
81
82const unsigned int TM = 0; // not used anymore. left for backward compatibility
83const unsigned int AM = 1; // not used anymore. left for backward compatibility
84
85
86/* display parameters */
87 /// Verbose mode ?
88const bool VERBOSE=false;
89
90#endif
91
Note: See TracBrowser for help on using the repository browser.