Beispiel #1
0
/** Carries out the binary operation IN-PLACE on a single EventList,
 * with another EventList as the right-hand operand.
 *
 *  @param lhs :: Reference to the EventList that will be modified in place.
 *  @param rhs :: Const reference to the EventList on the right hand side.
 */
void Divide::performEventBinaryOperation(DataObjects::EventList &lhs,
                                         const DataObjects::EventList &rhs) {
  // We must histogram the rhs event list to divide.
  MantidVec rhsY, rhsE;
  rhs.generateHistogram(rhs.constDataX(), rhsY, rhsE);
  lhs.divide(rhs.constDataX(), rhsY, rhsE);
}
Beispiel #2
0
 /** Carries out the binary operation IN-PLACE on a single EventList,
  * with another EventList as the right-hand operand.
  *
  *  @param lhs :: Reference to the EventList that will be modified in place.
  *  @param rhs :: Const reference to the EventList on the right hand side.
  */
 void Multiply::performEventBinaryOperation(DataObjects::EventList & lhs,
     const DataObjects::EventList & rhs)
 {
   // We must histogram the rhs event list to multiply.
   MantidVec rhsY, rhsE;
   rhs.generateHistogram( rhs.constDataX(), rhsY, rhsE);
   lhs.multiply(rhs.constDataX(), rhsY, rhsE);
 }