10 #include <QDoubleSpinBox>
15 const QPair<bool,double>&
scale,
23 m_globalCuts(globalCuts)
70 double ccKey = fabs(
energy);
73 useMap.emplace(ccKey,
cell);
79 VP1CCIntervalMap::const_iterator
it = intervals.find(
m_type);
80 if(
it!=intervals.end()) {
159 if(*currentInterval==newInterval) {
169 *currentInterval = newInterval;
170 *useItFirst = useMap->end();
171 *useItLast = useMap->end();
177 if(currentInterval->
isEmpty()) {
178 *useItFirst = useMap->lower_bound(newInterval.
lower());
180 *useItLast = useMap->end();
182 *useItLast = useMap->upper_bound(newInterval.
upper());
187 *currentInterval = newInterval;
194 if(currentInterval->
lower() != newInterval.
lower() &&
195 currentInterval->
upper() != newInterval.
upper()) {
201 *useItFirst = useMap->lower_bound(newInterval.
lower());
203 *useItLast = useMap->end();
205 *useItLast = useMap->upper_bound(newInterval.
upper());
210 }
else if (currentInterval->
lower() != newInterval.
lower()) {
212 newIterator = useMap->lower_bound(newInterval.
lower());
214 if(currentInterval->
lower() < newInterval.
lower())
223 *useItFirst = newIterator;
229 newIterator = useMap->end();
235 newIterator = useMap->upper_bound(newInterval.
upper());
237 if(*useItLast == useMap->end() ||
238 currentInterval->
upper() > newInterval.
upper()) {
248 *useItLast = newIterator;
251 *currentInterval = newInterval;