Пример #1
0
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()
Пример #2
0
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()
Пример #3
0
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()
Пример #4
0
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()
Пример #5
0
def updateChannelsTest():
	mat = ShashlikMatrix("SH_42_out.root")
	mat.recreate()
	mat.updateChannels()

	mat.close()
Пример #6
0
def updateAllTest():
	mat = ShashlikMatrix("SH_42_out.root")
	mat.recreate()
	mat.updateAll()

	mat.close()
Пример #7
0
def setPrimaryChannelTest():
	mat = ShashlikMatrix("SH_138_out.root")
	mat.setChannels()
	mat.setPrimaryChannel()
	print "Primary channel is: " + str(mat.primaryChannel)