Assigning branch to variable name in Python 3

Hi everyone,

I’m trying to assign a branch that’s a multidimensional vector (B1[30][30][7]3]) to a python variable so I can easily analyze the data. I tried SetBranchAddress without success.
Here’s my code:

#from c.Print()
#Br1 :B1 : B1[30][30][3][6]/D
#Entries : 3751 : Total Size= 486550065 bytes File Size = 6104255
#Baskets : 3751 : Basket Size= 32000 bytes Compression= 79.69

auto myvar
c.SetBranchAddress(“B1”,myvar)

Thank you,
Hichem

Try:

import numpy
myvar = numpy.zeros((30, 30, 3, 6), dtype = numpy.float64) # *Br 1 :B1 : B1[30][30][3][6]/D *
c.SetBranchAddress("B1", myvar) # or maybe myvar.data

Hello,

Thank you for your help, this fix solved my problem.

Best,
Hichem