def halosInMassRange(massColumn, minMass, maxMass, VERBOSE=True):
    """ Returns the selection array which has 'True' values for halos with masses in the range 'minMass' to 'maxMass'. The masses are given by the argument 'massColumn'. """
    if VERBOSE:
        print(
            "Selecting the halos with masses in the interval [%e,%e] ... "
            % (minMass, maxMass)
        )
    return (massColumn >= minMass) * (massColumn <= maxMass)