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