ImprovedOutputFile
Timing
dual_readout
llp
Last change
on this file since c526439 was 5b822e5, checked in by pavel <pavel@…>, 11 years ago |
add Hector module
|
-
Property mode
set to
100644
|
File size:
1.9 KB
|
Line | |
---|
1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
---|
2 | * *
|
---|
3 | * --<--<-- A fast simulator --<--<-- *
|
---|
4 | * / --<--<-- of particle --<--<-- *
|
---|
5 | * ----HECTOR----< *
|
---|
6 | * \ -->-->-- transport through -->-->-- *
|
---|
7 | * -->-->-- generic beamlines -->-->-- *
|
---|
8 | * *
|
---|
9 | * JINST 2:P09005 (2007) *
|
---|
10 | * X Rouby, J de Favereau, K Piotrzkowski (CP3) *
|
---|
11 | * http://www.fynu.ucl.ac.be/hector.html *
|
---|
12 | * *
|
---|
13 | * Center for Cosmology, Particle Physics and Phenomenology *
|
---|
14 | * Universite catholique de Louvain *
|
---|
15 | * Louvain-la-Neuve, Belgium *
|
---|
16 | * *
|
---|
17 | * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
---|
18 |
|
---|
19 | /// \file H_Dipole.cc
|
---|
20 | /// \brief Class aiming at simulating LHC beam dipoles
|
---|
21 |
|
---|
22 | //local includes
|
---|
23 | #include "H_Dipole.h"
|
---|
24 |
|
---|
25 | void H_Dipole::init() {
|
---|
26 | // needed for call from R- and S-Dipoles constructor
|
---|
27 | // must be in public section
|
---|
28 | element_mat.ResizeTo(MDIM,MDIM);
|
---|
29 | setTypeString();
|
---|
30 | if (fk !=0 ) setMatrix(0,MP,QP);
|
---|
31 | return;
|
---|
32 | }
|
---|
33 |
|
---|
34 | std::ostream& operator<< (std::ostream& os, const H_Dipole& el) {
|
---|
35 | os << el.typestring << el.name <<"\t at s = "<< el.fs <<"\t length = "<< el.element_length <<"\t k0 = "<<el.fk << endl;
|
---|
36 | if(el.element_aperture->getType()!=NONE) {
|
---|
37 | os << *(el.element_aperture) << endl;
|
---|
38 | }
|
---|
39 |
|
---|
40 | if(el.element_length<0) { if(VERBOSE) os <<"<H_Dipole> ERROR : Interpenetration of elements !"<<endl; }
|
---|
41 | if(el.element_length==0) { if(VERBOSE) os <<"<H_Dipole> WARNING : 0-length "<< el.name << " !" << endl; }
|
---|
42 | return os;
|
---|
43 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.