Exemple #1
0
	def Configure(self):
		
		self.binner = MuonGun.TrackBinner(self.GetParameter("MinDepth"), self.GetParameter("MaxDepth"), self.GetParameter("DepthSteps"))
		
		self.weighter = self.GetParameter("Weight")
		
		import os
		components = os.path.split(self.GetParameter("Outfile"))
		if os.path.splitext(components[-1])[1] in ('.hdf5', '.h5'):
			self.where = '/'
			self.outfile = os.path.join(*components)
		else:
			self.where = '/' + components[-1]
			self.outfile = os.path.join(*components[:-1])
		
		if os.path.exists(self.outfile):
			os.unlink(self.outfile)
			
		self.nevents = 0
Exemple #2
0
		def make_binner():
			return MuonGun.TrackBinner(self.GetParameter("MinDepth"), self.GetParameter("MaxDepth"), self.GetParameter("DepthSteps"))