32 return std::get<1>(a) < std::get<1>(b);
40 std::advance(
it_m, posIterator);
54 "iterator is at end of list of configurations");
65 "iterator is at begin of list of configurations");
75 while (std::get<1>(*
it) < front &&
80 double zstop = std::get<1>(*it);
81 if (zstop < front)
return;
83 std::get<1>(*it) = front;
87 std::swap(zstop, std::get<1>(*it));
93 while (std::get<1>(*
it) > back &&
98 double zstop = std::get<1>(*it);
99 if (zstop > back)
return;
101 std::get<1>(*it) = back;
105 std::swap(zstop, std::get<1>(*it));
112 "iterator is at end of list of configurations");
115 return std::get<0>(*it_m);
121 "iterator is at end of list of configurations");
124 return std::get<1>(*it_m);
130 "iterator is at end of list of configurations");
133 return std::get<2>(*it_m);
137 unsigned long long maxSteps = 0;
139 maxSteps += std::get<2>(config);
147 unsigned long long totalNumSteps = 0;
150 const double &dt = std::get<0>(config);
151 const unsigned long &numSteps = std::get<2>(config);
153 if (minTimeStep > dt) {
154 totalNumSteps =
std::ceil(totalNumSteps * minTimeStep / dt);
158 totalNumSteps +=
std::ceil(numSteps * dt / minTimeStep);
161 return totalNumSteps;
167 if (minTimeStep > std::get<0>(config)) {
168 minTimeStep = std::get<0>(config);
180 out << std::scientific <<
" "
181 << std::setw(20) <<
"dt [ns] "
182 << std::setw(20) <<
"zStop [m] "
183 << std::setw(20) <<
"num Steps [1]"
195 out << std::setw(20) << std::get<0>(*it)
196 << std::setw(20) << std::get<1>(*it)
197 << std::setw(20) << std::get<2>(*it)
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of it
double getFinalZStop() const
void sortAscendingZStop()
ValueRange< double > getPathLengthRange() const
container_t configurations_m
container_t::iterator it_m
void print(Inform &out) const
StepSizeConfig & advanceToPos(double spos)
Inform & endl(Inform &inf)
StepSizeConfig & operator++()
StepSizeConfig & operator--()
The base class for all OPAL exceptions.
unsigned long long getMaxSteps() const
unsigned long long getNumStepsFinestResolution() const
double getMinTimeStep() const
void shiftZStopLeft(double back)
unsigned long getNumSteps() const
bool reachedStart() const
std::tuple< double, double, unsigned long > entry_t
PETE_TUTree< FnCeil, typename T::PETE_Expr_t > ceil(const PETE_Expr< T > &l)
void shiftZStopRight(double front)
void enlargeIfOutside(T value)