def setEventsTest(): mat = ShashlikMatrix("SH_42_out.root") mat.setEvents() event0 = mat.eventHists[0] outFile = TFile("test.root", "recreate") event0.Write() outFile.Close() mat.close()
def posExpTest(): mat = ShashlikMatrix("SH_41_out.root") mat.posExp() posExp = mat.curveFitHists['posExp'] outFile = TFile("test.root", "recreate") posExp.Write() outFile.Close() mat.close()
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()
def updateChannelsTest(): mat = ShashlikMatrix("SH_42_out.root") mat.recreate() mat.updateChannels() mat.close()
def updateAllTest(): mat = ShashlikMatrix("SH_42_out.root") mat.recreate() mat.updateAll() mat.close()