Hello
In my analysis, I have several 100 files that I need to run on. So far, I am hadd
ing files, and then I run on one huge file, which of course can be a bit inconvenient. In any case, while merging files, and sometimes, even with the -k
flag I guess crashes and errors like [*] that are very difficult to debug and understand if my file is corrupted or not. Even using multithreaded jobs, sometimes the job loses connection to the node etc
So, I also investigated the possibility of doing a TChain
for all .root files, but this is again extremely slow to loop over all of my nAOD needed files.
So, here is my question. Is there a way, to create some kind of TChain and then store it as a dictionary or some kind of precompiled lib, so that every time I have to run it, I won’t have to read the .root files from scratch? The files have a typical structure of a TTree and a couple of TH1 objects.
I hope my questions make sense,
Thanks
Alex
[*] hadd Target path: ./parts//partial6_7d570eaa-7fcb-11ee-bee1-96bde183beef.root:/ Error in <TBasket::Streamer>: The value of fKeylen is incorrect (-30095) ; trying to recover by setting it to zero Error in <TBasket::Streamer>: The value of fNbytes is incorrect (-1526730564) ; trying to recover by setting it to zero Error in <TBasket::Streamer>: The value of fObjlen is incorrect (-1471649464) ; trying to recover by setting it to zero Error in <TBasket::Streamer>: The value of fNbytes is incorrect (-685220469) ; trying to recover by setting it to zero hadd Opening the next 1 files hadd Target path: ./parts//partial5_7d570eaa-7fcb-11ee-bee1-96bde183beef.root:/ Error in <TBasket::Streamer>: The value of fObjlen is incorrect (-1536104923) ; trying to recover by setting it to zero Error in <TBasket::Streamer>: The value of fIOBits (00000000000000000000000001111100) contains unknown flags (supported flags are 00000000000000000000000000000001), indicating this was written with a newer version of ROOT utilizing critical IO features this version of ROOT does not support. Refusing to deserialize. hadd Opening the next 1 files