ImprovedOutputFile
Timing
dual_readout
llp
Last change
on this file since 43c646a 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.1 KB
|
Rev | Line | |
---|
[3c40083] | 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 | */
|
---|
[5b822e5] | 11 |
|
---|
| 12 | /// \file H_Quadrupole.cc
|
---|
| 13 | /// \brief Classes aiming at simulating LHC beam quadrupoles.
|
---|
| 14 |
|
---|
| 15 | #include "H_Quadrupole.h"
|
---|
| 16 |
|
---|
| 17 | void H_Quadrupole::init() {
|
---|
| 18 | // needed for call from H- and V-Quadrupoles constructor
|
---|
| 19 | // must be in public section
|
---|
| 20 | setTypeString();
|
---|
| 21 | setMatrix(0,MP,QP);
|
---|
| 22 | return;
|
---|
| 23 | }
|
---|
| 24 |
|
---|
[3c40083] | 25 | void H_Quadrupole::printProperties() const{
|
---|
| 26 | cout << typestring;
|
---|
| 27 | cout << name;
|
---|
| 28 | cout << "\t at s = " << fs;
|
---|
| 29 | cout << "\t length = " << element_length;
|
---|
| 30 | cout << "\t k1 = " << fk;
|
---|
| 31 | cout<<endl;
|
---|
| 32 | if(element_aperture->getType()!=NONE) {
|
---|
| 33 | cout <<"\t aperture type = " << element_aperture->getTypeString();
|
---|
| 34 | element_aperture->printProperties();
|
---|
[5b822e5] | 35 | }
|
---|
| 36 |
|
---|
[3c40083] | 37 | if(element_length<0) { if(VERBOSE) cout<<"\t ERROR : Interpenetration of elements !"<<endl; }
|
---|
| 38 | if(element_length==0) { if(VERBOSE) cout<<"\t WARNING : 0-length "<< typestring << " !" << endl; }
|
---|
[5b822e5] | 39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.