@property
def cosmics0T(self):
    if ('Cosmics' not in self.general['trackcollection']):
        return False
    Bfield = self.dataset.magneticFieldForRun()
    if (Bfield < 0.5):
        return True
    if isinstance(Bfield, str):
        if ('unknown ' in Bfield):
            msg = Bfield.replace('unknown ', '', 1)
        elif (Bfield == 'unknown'):
            msg = ("Can't get the B field for %s." % self.dataset.name())
        else:
            msg = 'B field = {}???'.format(Bfield)
        raise AllInOneError((msg + '\nTo use this dataset, specify magneticfield = [value] in your .ini config file.'))
    return False
@property
def cosmics0T(self):
    if ('Cosmics' not in self.general['trackcollection']):
        return False
    Bfield = self.dataset.magneticFieldForRun()
    if (Bfield < 0.5):
        return True
    if isinstance(Bfield, str):
        if ('unknown ' in Bfield):
            msg = Bfield.replace('unknown ', , 1)
        elif (Bfield == 'unknown'):
            msg = ("Can't get the B field for %s." % self.dataset.name())
        else:
            msg = 'B field = {}???'.format(Bfield)
        raise AllInOneError((msg + '\nTo use this dataset, specify magneticfield = [value] in your .ini config file.'))
    return False