Friday, June 7, 2019

Lots of problems easily converting flat trees to pandas objects...

Long story short: I have spent the last several days trying to fix the pyroot build on my machine.  Making ROOT build against the Anaconda version of python now seems to be not worth the effort (though I did have it working a few months back).  After five days of trying different combinations of ROOT 6.14/16 and python 3.6/3.7, I broke down and installed ROOT 6.16 via conda.  Seems to be working well.

The root_numpy module will allow easy conversion from root ttrees to numpy arrays or pandas dfs.  HOWEVER, it doesn't seem to work easily if the TTree branches are TLorentzVectors. 

Solution: rewrite DSelector so that the TLorentzVectors are instead entered into the tree as flattened components.  Remove the TLorentzVectors from the output stream to keep the file sizes smaller.  Should take a few hours worth of work.

No comments:

Post a Comment

Relegator update

Kripa has produced some really nice plots of significance vs decision function threshold for the regressor.  NICE. We also have plots of a...