Fork me on GitHub

source: svn/trunk/Utilities/Hector/src/H_CircularAperture.cc@ 1080

Last change on this file since 1080 was 281, checked in by Xavier Rouby, 16 years ago

new Hector version

File size: 1.6 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_CircularAperture.cc
20/// \brief Defines the circular aperture of beamline elements.
21
22// C++ #includes
23#include <iostream>
24
25// C #includes
26#include <cmath> // needed for fabs and log
27
28// local #includes
29#include "H_CircularAperture.h"
30using namespace std;
31
32H_CircularAperture* H_CircularAperture::clone() const {
33 return new H_CircularAperture(x1,fx,fy);
34}
35
36std::ostream& operator<< (std::ostream& os, const H_CircularAperture& ap) {
37 os << "Aperture shape:" << ap.aptypestring << ", aperture radius : " << ap.x1 << endl;
38 os << " \t Center : " << ap.fx << "," << ap.fy << endl;
39 return os;
40}
Note: See TracBrowser for help on using the repository browser.