48 def initialize(self):
49 ''' Initialize the Module: set histogram axis titles, description and check'''
50
51
52 self.hist = [TH1F('h' + str(i), self.simHits[i], 400, -20, 20) for i in range(self.n)]
53
54 for i in range(self.n):
55 self.hist[i].GetXaxis().SetTitle('time [#mus]')
56 self.hist[i].GetYaxis().SetTitle('entries/bin')
57 descr = TNamed('Description', 'Time distribution of ' + self.simHits[i] +
58 ' for mixed background')
59 self.hist[i].GetListOfFunctions().Add(descr)
60 check = TNamed('Check', 'Distribution must be flat in the time window. ' +
61 'Bin statistics is not Poissonian.')
62 self.hist[i].GetListOfFunctions().Add(check)
63 contact = TNamed('Contact', 'marko.staric@ijs.si')
64 self.hist[i].GetListOfFunctions().Add(contact)
65 options = TNamed('MetaOptions', 'shifter')
66 self.hist[i].GetListOfFunctions().Add(options)
67