Skip to content

Commit 38dbe1b

Browse files
ChristianTackeGSIdennisklein
authored andcommitted
chore: Use TTree::kMaxEntries for AddFile
The default for the second param to `TChain::AddFile` is `TTree::kMaxEntries`. So use this instead of a random large constant. See: https://root.cern.ch/doc/v630/classTChain.html#a4d491db32262125e6cb77a8f7a6bfd93
1 parent 810add2 commit 38dbe1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fairroot/base/source/FairFileSource.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ void FairFileSource::AddFriendsToChain()
388388
}
389389

390390
TChain* chain = fFriendTypeList[inputLevel];
391-
chain->AddFile(fileName, 1234567890, FairRootManager::GetTreeName());
391+
chain->AddFile(fileName, TTree::kMaxEntries, FairRootManager::GetTreeName());
392392
}
393393

394394
// Check if all friend chains have the same runids and the same

0 commit comments

Comments
 (0)