You've made the following category assignments to your catalogs. Which categories will be displayed if a call is made on allRootCategories on catalog B?
Catalog A:
rootCategories = category1, category2
Catalog B:
rootCategories = category3, category4
rootSubCatalogs = CatalogA