def METHOD_NAME(self, mastertrees, subtrees):
    import ROOT
    for masterpath, mastertree in mastertrees.items():
        for subpath, subtree in subtrees.items():
            if (subpath == masterpath):
                subbranches = [branch.GetName()
                               for branch in subtree.GetListOfBranches()]
                masterbranches = [branch.GetName()
                                  for branch in mastertree.GetListOfBranches()]
                if (subbranches != masterbranches):
                    return self.failure
    return self.success