55 def initialize(self):
56 ''' initialize: open root file, book histograms '''
57
58
59 self.tfile = TFile.Open('checkCalpulse.root', 'recreate')
60
61 self.height_vs_width = TH2F("height_vs_width", "Pulse height vs. width; pulse width [ns]; pulse height [ADC counts]",
62 100, 0, 10, 200, 0, 2000)
63
64 self.height_vs_sample = TH2F("height_vs_sample", "Pulse height vs. sample; sample number; pulse height [ADC counts]",
65 256, 0, 256, 200, 0, 2000)
66
67 self.width_vs_sample = TH2F("width_vs_sample", "Pulse width vs. sample; sample number; pulse width [ns]",
68 256, 0, 256, 100, 0, 10)
69
70 self.time = TH1F('time', 'Time distibution; time [ns]', 400, -100, 300)
71
72 self.asic_channels = TH1F('asic_channels', 'ASIC channel occupancy; ASIC channel number', 8, 0, 8)
73