/**
  * Gets the maximum of channel two. Takes channel swapping into consideration and will return max
  * of channel one if swapped.
  *
  * @return The maximum of what is seen as channel two.
  */
 protected double getMaxCh2(DataContainer<T> container) {
   return swapChannels ? container.getMaxCh1() : container.getMaxCh2();
 }