Sixty patients undergoing open heart surgery ( cardiac valve replacement surgery and aortic valve replacement surgery ) were randomly and equally divided into Dexmedetomidine ( D ) and Midazolam ( M ) groups .