I have a function which takes an input (and an output too, but that shouldn’t be relevant at the moment) I have 3-4 input files on average and they are named Analysis_numberhere_s000_p001.root, and the second one is Analysis_numberhere_s001_p001.root and so on.
What I’ve done is function("/path/to/file/Analysis_numberhere_s00*.root","outputfile")
also function("/path/to/file/Analysis_numberhere_s00*","outputfile")
unfortunately, the files are analysed in the wrong order, and it appears to me, that the order is s001, s002 and lastly s000.
No, I’m not doing any of that. (unfortunately, I haven’t even heard of them).
Would a TChain help with a “general” code? As I have hundreds of files to analyse.