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;
VP1CaloCellManager(VP1CC_SelectionTypes type, VP1CC_SoNode2CCMap *node2cc, bool useEt, const QPair< bool, double > &scale, bool outline, const VP1CC_GlobalCuts &globalCuts)