Maximum number of files using TChain Add

Hi all,

I am running an script created with makeClass. To run the script adding several files I am doing:

void runAnalyzer(TString sample="all"){ if (sample=="HT250-500"){ TChain chain("EvTree"); chain.Add(file1); chain.Add(file2); ...... chain.Process("myscript.C++","sample="HT250-500); } }

Seems to work fine, but when I run the same code for a different sample I have to add ~1000 files. The problem is that some of the numbers that I am getting don’t make sense and I am not sure if is something in the code or if is a problem with the number of files that I am using. Is it a maximum number of files that I can add using this method?