def setChannelsTest(): mat = ShashlikMatrix("SH_41_out.root") mat.setChannels() c1 = mat.getChannel1() c2 = mat.getChannel2() outFile = TFile("test.root", "recreate") c1.Write() c2.Write() outFile.Close() mat.close()
def recreateTest(): mat = ShashlikMatrix("SH_41_out.root") mat.recreate() c1 = mat.getChannel1() c4 = mat.getChannel2() posExp = mat.getPosExp() integral = mat.getIntegral() outFile = TFile("test.root", "recreate") c1.Write() c4.Write() posExp.Write() integral.Write() outFile.Close() mat.close()