OPAL (Object Oriented Parallel Accelerator Library)  2024.1
OPAL
BeamlineGeometry.cpp
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // $RCSfile: BeamlineGeometry.cpp,v $
3 // ------------------------------------------------------------------------
4 // $Revision: 1.1.1.1 $
5 // ------------------------------------------------------------------------
6 // Copyright: see Copyright.readme
7 // ------------------------------------------------------------------------
8 //
9 // Class: BeamlineGeometry
10 // A class for implementing the composite geometry of a beamline.
11 //
12 // ------------------------------------------------------------------------
13 // Class category: Beamlines
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:32:34 $
17 // $Author: fci $
18 //
19 // ------------------------------------------------------------------------
20 
22 #include "Beamlines/Beamline.h"
23 
24 
25 // Class BeamlineGeometry
26 // ------------------------------------------------------------------------
27 
29  itsLine(line)
30 {}
31 
32 
34 {}
35 
36 
38  return itsLine.getArcLength();
39 }
40 
41 
43  return itsLine.getElementLength();
44 }
45 
46 
48  return itsLine.getOrigin();
49 }
50 
51 
53  return itsLine.getEntrance();
54 }
55 
56 
57 double BeamlineGeometry::getExit() const {
58  return itsLine.getExit();
59 }
60 
61 
62 Euclid3D BeamlineGeometry::getTransform(double fromS, double toS) const {
63  return itsLine.getTransform(fromS, toS);
64 }
65 
66 
68  return itsLine.getTotalTransform();
69 }
70 
71 
73  return itsLine.getTransform(s);
74 }
75 
76 
78  return itsLine.getEntranceFrame();
79 }
80 
81 
83  return itsLine.getExitFrame();
84 }
85 
virtual double getExit() const
Get exit position.
virtual double getArcLength() const
Get arc length.
Definition: ElementBase.h:411
virtual Euclid3D getTransform(double fromS, double toS) const
Get transform.
virtual Euclid3D getTotalTransform() const
Get transform.
virtual Euclid3D getEntranceFrame() const
Get transform.
virtual double getElementLength() const
Get element length.
virtual double getExit() const
Get exit position.
Definition: ElementBase.h:431
An abstract sequence of beam line components.
Definition: Beamline.h:34
virtual Euclid3D getExitFrame() const
Get transform.
Definition: ElementBase.h:451
virtual double getOrigin() const
Get origin position.
Definition: ElementBase.h:423
virtual Euclid3D getEntranceFrame() const
Get transform.
Definition: ElementBase.h:447
virtual Euclid3D getTransform(double fromS, double toS) const
Get transform.
Definition: ElementBase.h:435
virtual double getElementLength() const
Get design length.
Definition: ElementBase.h:415
virtual double getEntrance() const
Get entrance position.
virtual double getArcLength() const
Get arc length.
virtual ~BeamlineGeometry()
virtual Euclid3D getExitFrame() const
Get transform.
virtual double getOrigin() const
Get origin position.
Displacement and rotation in space.
Definition: Euclid3D.h:68
virtual Euclid3D getTotalTransform() const
Get transform.
Definition: ElementBase.h:439
const Beamline & itsLine
virtual double getEntrance() const
Get entrance position.
Definition: ElementBase.h:427