calculate dcr using the root file in mode 0