We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f201fa commit abeed9fCopy full SHA for abeed9f
Framework/DataHandling/src/GroupDetectors2.cpp
@@ -1010,6 +1010,13 @@ size_t GroupDetectors2::formGroupsEvent(const DataObjects::EventWorkspace_const_
1010
// Start fresh with no detector IDs
1011
outEL.clearDetectorIDs();
1012
1013
+ // Reserve space for the event list
1014
+ std::size_t totalEvents = 0;
1015
+ for (auto i : it->second) {
1016
+ totalEvents += inputWS->getSpectrum(i).getNumberEvents();
1017
+ }
1018
+ outEL.reserve(totalEvents);
1019
+
1020
// the Y values and errors from spectra being grouped are combined in the
1021
// output spectrum
1022
// Keep track of number of detectors required for masking
0 commit comments