index = array('i', [0]) #t_time_l = array('f', maxN*[ 0. ] ) #t_amp_l = array('f', maxN*[ 0. ] ) #t_time = array('f', maxN*[ 0. ] ) #t_amp = array('f', maxN*[ 0. ] ) t_time_l = ROOT.std.vector(float)() t_amp_l = ROOT.std.vector(float)() t_time = ROOT.std.vector(float)() t_amp = ROOT.std.vector(float)() waveTree._t_time_l = t_time_l waveTree._t_amp_l = t_amp_l waveTree._t_time = t_time waveTree._t_amp = t_amp waveTree.Branch("index", index, 'index/I') #waveTree.Branch("t_time_l", t_time_l, 't_time_l[80000]/F' ) #waveTree.Branch("t_amp_l", t_amp_l, 't_amp_l[80000]/F' ) #waveTree.Branch("t_time", t_time, 't_time[80000]/F' ) #waveTree.Branch("t_amp", t_amp, 't_amp[80000]/F' ) waveTree.Branch("t_time_l", t_time_l) waveTree.Branch("t_amp_l", t_amp_l) waveTree.Branch("t_time", t_time) waveTree.Branch("t_amp", t_amp) NWAVEFORMS = 20000 for iWave in range(0, NWAVEFORMS):