OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
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 getArcLength() const
Get arc length.
Definition: ElementBase.h:428
virtual double getExit() const
Get exit position.
Definition: ElementBase.h:448
virtual double getElementLength() const
Get design length.
Definition: ElementBase.h:432
virtual Euclid3D getExitFrame() const
Get transform.
Definition: ElementBase.h:468
virtual double getOrigin() const
Get origin position.
Definition: ElementBase.h:440
virtual Euclid3D getEntranceFrame() const
Get transform.
Definition: ElementBase.h:464
virtual Euclid3D getTransform(double fromS, double toS) const
Get transform.
Definition: ElementBase.h:452
virtual double getEntrance() const
Get entrance position.
Definition: ElementBase.h:444
virtual Euclid3D getTotalTransform() const
Get transform.
Definition: ElementBase.h:456
Displacement and rotation in space.
Definition: Euclid3D.h:68
An abstract sequence of beam line components.
Definition: Beamline.h:34
const Beamline & itsLine
virtual double getExit() const
Get exit position.
virtual Euclid3D getTransform(double fromS, double toS) const
Get transform.
virtual ~BeamlineGeometry()
virtual Euclid3D getEntranceFrame() const
Get transform.
virtual double getArcLength() const
Get arc length.
virtual double getElementLength() const
Get element length.
virtual Euclid3D getTotalTransform() const
Get transform.
virtual Euclid3D getExitFrame() const
Get transform.
virtual double getOrigin() const
Get origin position.
virtual double getEntrance() const
Get entrance position.