#include <Magnet.h>
|
| | Magnet (double x, double y, double center, double strength, double length, int apertype, double aper_A1, double aper_A2, double aper_A3, double aper_A4, double xb, Side side, IBender *bender, const std::string &label) |
| double | frontFace () const |
| double | rearFace () const |
| double | zabspos () const |
| double | zsignedpos () const |
| double | centerZ () const |
| Point | position () const |
| Side | side () const |
| bool | isEndElement () const |
| std::string | str () const |
| std::string | label () const |
| void | track (IParticle &) const |
| void | calibrate (IParticle &) |
| IBeamElement::ConstPtr_t | clone () const |
◆ ConstIter_t
◆ ConstListIter_t
◆ ConstPtr_t
◆ Container_t
◆ Iter_t
◆ List_t
◆ ListIter_t
◆ Ptr_t
◆ Type
◆ Magnet()
| FPTracker::Magnet::Magnet |
( |
double | x, |
|
|
double | y, |
|
|
double | center, |
|
|
double | strength, |
|
|
double | length, |
|
|
int | apertype, |
|
|
double | aper_A1, |
|
|
double | aper_A2, |
|
|
double | aper_A3, |
|
|
double | aper_A4, |
|
|
double | xb, |
|
|
Side | side, |
|
|
IBender * | bender, |
|
|
const std::string & | label ) |
◆ calibrate()
| void FPTracker::Magnet::calibrate |
( |
IParticle & | particle | ) |
|
|
virtual |
◆ centerZ()
| double FPTracker::Magnet::centerZ |
( |
| ) |
const |
◆ clone()
Implements FPTracker::IBeamElement.
Definition at line 50 of file FPTracker/src/Magnet.cxx.
50 {
52 return pm;
53 }
std::shared_ptr< const IBeamElement > ConstPtr_t
Magnet(double x, double y, double center, double strength, double length, int apertype, double aper_A1, double aper_A2, double aper_A3, double aper_A4, double xb, Side side, IBender *bender, const std::string &label)
◆ frontFace()
| double FPTracker::Magnet::frontFace |
( |
| ) |
const |
|
virtual |
◆ frontface()
| double FPTracker::Magnet::frontface |
( |
| ) |
const |
|
private |
◆ isEndElement()
| bool FPTracker::Magnet::isEndElement |
( |
| ) |
const |
|
virtual |
◆ isOutOfAperture()
| bool FPTracker::Magnet::isOutOfAperture |
( |
IParticle & | particle | ) |
const |
|
private |
Definition at line 103 of file FPTracker/src/Magnet.cxx.
103 {
104
105 TransversePoint offCenter =
particle.displacement();
107 {
108
111
112 if(out)
113 {
114 std::ostringstream
ost;
117 return true;
118 }
119
120 return false;
121 }
122
124 {
125 double part_x = offCenter.x();
126 double part_y = offCenter.y();
127
130
132 if(out)
133 {
134 std::ostringstream
ost;
135 ost<<
"outside for aperture type 2 x xx, xaper "<<part_x<<
" "<<
xx<<
" "<<
m_aper_A3<<
" y yy yaper "<<part_y<<
" "<<
yy<<
" "<<
m_aper_A4<<
'\n';
137 return true;
138 }
139
140
142 {
144 {
145 std::ostringstream
ost;
146 ost<<
"outside for aperture type 2 x test: particle x "<<part_x<<
" m_aper_A1 "<<
m_aper_A1<<
"\n";
148 return true;
149 }
150 }
152 {
154 {
155 std::ostringstream
ost;
156 ost<<
"outside for aperture type 2 y test: particle y "<<part_y<<
" m_aper_A2 "<<
m_aper_A2<<
"\n";
158 return true;
159 }
160 }
161
162 return false;
163 }
165 {
166 double part_x = offCenter.x();
167 double part_y = offCenter.y();
168
170 {
172 {
173 std::ostringstream
ost;
174 ost<<
"outside for aperture type 3 x test: particle x "<<part_x<<
" m_aper_A1 "<<
m_aper_A1<<
"\n";
176 return true;
177 }
178 }
180 {
182 {
183 std::ostringstream
ost;
184 ost<<
"outside for aperture type 3 y test: particle y "<<part_y<<
" m_aper_A2 "<<
m_aper_A2<<
"\n";
186 return true;
187 }
188 }
190 {
194
195 if(d<1.)
196 {
197 std::ostringstream
ost;
198 ost<<
"outside for aperture type 3 test: particle x "<<part_x<<
" particle y "<<part_y<<
"; m_aper_A1 "<<
m_aper_A1<<
" m_aper_A2 "<<
m_aper_A2<<
" m_aper_A3 "<<
m_aper_A3<<
" m_aper_A4 "<<
m_aper_A4<<
"\n";
200 return true;
201 }
202 }
203
204 return false;
205 }
206
207
208 return false;
209 }
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
◆ label()
| std::string FPTracker::Magnet::label |
( |
| ) |
const |
|
virtual |
◆ position()
| Point FPTracker::Magnet::position |
( |
| ) |
const |
|
virtual |
◆ rearFace()
| double FPTracker::Magnet::rearFace |
( |
| ) |
const |
|
virtual |
◆ side()
| Side FPTracker::Magnet::side |
( |
| ) |
const |
|
virtual |
◆ str()
| std::string FPTracker::Magnet::str |
( |
| ) |
const |
|
virtual |
◆ swap()
| void FPTracker::Magnet::swap |
( |
Magnet & | | ) |
|
|
private |
◆ track()
| void FPTracker::Magnet::track |
( |
IParticle & | particle | ) |
const |
|
virtual |
◆ zabspos()
| double FPTracker::Magnet::zabspos |
( |
| ) |
const |
|
virtual |
◆ zsignedpos()
| double FPTracker::Magnet::zsignedpos |
( |
| ) |
const |
|
virtual |
◆ m_aper_A1
| double FPTracker::Magnet::m_aper_A1 |
|
private |
◆ m_aper_A2
| double FPTracker::Magnet::m_aper_A2 |
|
private |
◆ m_aper_A3
| double FPTracker::Magnet::m_aper_A3 |
|
private |
◆ m_aper_A4
| double FPTracker::Magnet::m_aper_A4 |
|
private |
◆ m_apertype
| int FPTracker::Magnet::m_apertype |
|
private |
◆ m_bender
| IBender* FPTracker::Magnet::m_bender {} |
|
private |
◆ m_center
| Point FPTracker::Magnet::m_center |
|
private |
◆ m_frontFace
| double FPTracker::Magnet::m_frontFace |
|
private |
◆ m_label
| std::string FPTracker::Magnet::m_label |
|
private |
◆ m_rearFace
| double FPTracker::Magnet::m_rearFace |
|
private |
◆ m_side
| Side FPTracker::Magnet::m_side |
|
private |
◆ m_strength
| double FPTracker::Magnet::m_strength |
|
private |
◆ m_xb
| double FPTracker::Magnet::m_xb |
|
private |
The documentation for this class was generated from the following files: