Last change
on this file since 1393 was 1365, checked in by Pavel Demin, 11 years ago |
switch to a more stable Hector version
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision Date
|
File size:
1.1 KB
|
Rev | Line | |
---|
[1365] | 1 | /*
|
---|
| 2 | ---- Hector the simulator ----
|
---|
| 3 | A fast simulator of particles through generic beamlines.
|
---|
| 4 | J. de Favereau, X. Rouby ~~~ hector_devel@cp3.phys.ucl.ac.be
|
---|
[1360] | 5 |
|
---|
[1365] | 6 | http://www.fynu.ucl.ac.be/hector.html
|
---|
| 7 |
|
---|
| 8 | Centre de Physique des Particules et de Phénoménologie (CP3)
|
---|
| 9 | Université Catholique de Louvain (UCL)
|
---|
| 10 | */
|
---|
| 11 |
|
---|
[1360] | 12 | /// \file H_Dipole.cc
|
---|
| 13 | /// \brief Class aiming at simulating LHC beam dipoles
|
---|
| 14 |
|
---|
| 15 | //local includes
|
---|
| 16 | #include "H_Dipole.h"
|
---|
| 17 |
|
---|
| 18 | void H_Dipole::init() {
|
---|
| 19 | // needed for call from R- and S-Dipoles constructor
|
---|
| 20 | // must be in public section
|
---|
| 21 | setTypeString();
|
---|
| 22 | if (fk !=0 ) setMatrix(0,MP,QP);
|
---|
| 23 | return;
|
---|
| 24 | }
|
---|
| 25 |
|
---|
[1365] | 26 | void H_Dipole::printProperties() const {
|
---|
| 27 | cout << typestring;
|
---|
| 28 | cout << name;
|
---|
| 29 | cout<<"\t at s = "<< fs;
|
---|
| 30 | cout<<"\t length = "<< element_length;
|
---|
| 31 | cout<<"\t k0 = "<<fk;
|
---|
| 32 | cout<<endl;
|
---|
| 33 | if(element_aperture->getType()!=NONE) {
|
---|
| 34 | cout <<"\t aperture type = " << element_aperture->getTypeString();
|
---|
| 35 | element_aperture->printProperties();
|
---|
[1360] | 36 | }
|
---|
| 37 |
|
---|
[1365] | 38 | if(element_length<0) { if(VERBOSE) cout<<"\t ERROR : Interpenetration of elements !"<<endl; }
|
---|
| 39 | if(element_length==0) { if(VERBOSE) cout<<"\t WARNING : 0-length "<< name << " !" << endl; }
|
---|
[1360] | 40 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.