B mk @ sd d dl Z d dlZd dlZd dlZd dlZddlmZ dd Zdd Zdd Z dddZ dd dZdS ) N ) constantsc C sV t | } t | r&| j}|j|jfS t| tjr