def METHOD_NAME(self, MillePedeUser):
    # loop over output TTree
    for entry in MillePedeUser:
        # check which structures were aligned
        if (entry.ObjId != 1 and 999999 not in map(abs, entry.Par)):
            # check if structure is not yet in the list
            if not any(x.name == str(entry.Name) for x in self.structures):
                # create new structure object
                name = str(entry.Name)
                subdetid = self.get_subdetid(entry.ObjId)
                discriminator = self.get_discriminator(entry.ObjId)
                ndiscriminator = self.get_ndiscriminator(entry.ObjId)
                # create structure
                self.structures.append(
                    Structure(name, subdetid, discriminator, ndiscriminator))
                # add detids which belong to this structure
                self.structures[-1].detids = self.get_detids(subdetid)