What is faster?


I was wondering what is faster when using trees:

  1. Filling a histogram in a loop
  2. Use the Draw option while requiring some specific events



Without looking at specific code snippets, I think that’s generally hard to say. But you do get from Draw (and even more so from RDataFrame) a nicer abstraction layer than from hand-written loops. That should ideally help you being faster in developing and refining your analysis code. With RDataFrame, you can also benefit from implicit multi-threading to automatically make use of all of your CPU cores.


1 Like

Hi Jakob! thanks a lot! Especially fo the RDataFrame info, it looks promising! I will definitely give it a try!