ImprovedOutputFile
Timing
dual_readout
llp
Last change
on this file since 4af92f5 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
|
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_CircularAperture.cc
|
---|
13 | /// \brief Defines the circular aperture of beamline elements.
|
---|
14 |
|
---|
15 | // C++ #includes
|
---|
16 | #include <iostream>
|
---|
17 |
|
---|
18 | // C #includes
|
---|
19 | #include <cmath> // needed for fabs and log
|
---|
20 |
|
---|
21 | // local #includes
|
---|
22 | #include "H_CircularAperture.h"
|
---|
23 | using namespace std;
|
---|
24 |
|
---|
25 | /// Circular apertures
|
---|
26 | H_CircularAperture::H_CircularAperture(const float r, const float posx, const float posy) :H_EllipticAperture(r,r,posx,posy) {
|
---|
27 | /// @param r is the radius of the circular shape
|
---|
28 | /// @param posx, posy are the (x,y) coordinates of the center of the circle
|
---|
29 | type= CIRCULAR;
|
---|
30 | }
|
---|
31 |
|
---|
32 | void H_CircularAperture::printProperties() const {
|
---|
33 | cout << "Aperture shape:" << getTypeString() << ", aperture radius : " << x1 << endl;
|
---|
34 | cout << " \t Center : " << fx << "," << fy << endl;
|
---|
35 | return;
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.