ImprovedOutputFile
Last change
on this file since 31f3bca was 3c40083, checked in by pavel <pavel@…>, 11 years ago |
switch to a more stable Hector version
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
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
|
---|
5 |
|
---|
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 |
|
---|
12 | /// \file H_Kicker.cc
|
---|
13 | /// \brief Classes aiming at simulating kickers in LHC beamline.
|
---|
14 |
|
---|
15 | // local #includes
|
---|
16 | #include "H_OpticalElement.h"
|
---|
17 | #include "H_Kicker.h"
|
---|
18 |
|
---|
19 | void H_Kicker::init() {
|
---|
20 | // needed for call from H- and V-Kickers constructor
|
---|
21 | // must be in public section
|
---|
22 | setTypeString();
|
---|
23 | if (fk !=0 ) {
|
---|
24 | setMatrix(0,MP,QP);
|
---|
25 | }
|
---|
26 | return;
|
---|
27 | }
|
---|
28 |
|
---|
29 | void H_Kicker::printProperties() const {
|
---|
30 | cout << typestring;
|
---|
31 | cout << name;
|
---|
32 | cout<<"\t at s = "<< fs;
|
---|
33 | cout<<"\t length = "<< element_length;
|
---|
34 | cout<<"\t k0 = "<<fk;
|
---|
35 | cout<<endl;
|
---|
36 | if(element_aperture->getType()!=NONE) {
|
---|
37 | cout <<"\t aperture type = " << element_aperture->getTypeString();
|
---|
38 | element_aperture->printProperties();
|
---|
39 | }
|
---|
40 |
|
---|
41 | if(element_length<0) { if(VERBOSE) cout<<"\t ERROR : Interpenetration of elements !"<<endl; }
|
---|
42 | if(element_length==0) { if(VERBOSE) cout<<"\t WARNING : 0-length "<< name << " !" << endl; }
|
---|
43 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.