The degrees of both spontaneous pain and the pain on percussion before and after treatment were recorded , and root canal exudate samples were collected to quantify the associated levels of substance P , calcitonin gene-related peptide ( CGRP ) , and matrix metalloproteinase ( MMP ) -@ by immunoassay .