def createCrabCfg(self, path, crabCfgBaseName):
    '\n        Method which creates a `crab.cfg` for a validation on datasets.\n        \n        Arguments:\n        - `path`: Path at which the file will be stored.\n        - `crabCfgBaseName`: String which depends on the actual type of\n                             validation calling this method.\n        '
    crabCfgName = ('crab.%s.%s.%s.cfg' % (crabCfgBaseName, self.name, self.alignmentToValidate.name))
    repMap = self.getRepMap()
    repMap['script'] = 'dummy_script.sh'
    repMap['crabWorkingDir'] = crabCfgName.split('.cfg')[0]
    self.crabWorkingDir = repMap['crabWorkingDir']
    repMap['numberOfJobs'] = self.general['parallelJobs']
    repMap['cfgFile'] = self.configFiles[0]
    repMap['queue'] = self.jobmode.split(',')[1].split('-q')[1]
    if (self.dataset.dataType() == 'mc'):
        repMap['McOrData'] = 'events = .oO[nEvents]Oo.'
    elif (self.dataset.dataType() == 'data'):
        repMap['McOrData'] = 'lumis = -1'
        if (self.jobmode.split(',')[0] == 'crab'):
            print("For jobmode 'crab' the parameter 'maxevents' will be ignored and all events will be processed.")
    else:
        raise AllInOneError("Unknown data type!  Can't run in crab mode")
    crabCfg = {crabCfgName: replaceByMap(configTemplates.crabCfgTemplate, repMap)}
    return super(GenericValidationData, self).createCrabCfg(crabCfg, path)
Method which creates a `crab.cfg` for a validation on datasets.

Arguments:
- `path`: Path at which the file will be stored.
- `crabCfgBaseName`: String which depends on the actual type of
                     validation calling this method.
def createCrabCfg(self, path, crabCfgBaseName):
    '\n        Method which creates a `crab.cfg` for a validation on datasets.\n        \n        Arguments:\n        - `path`: Path at which the file will be stored.\n        - `crabCfgBaseName`: String which depends on the actual type of\n                             validation calling this method.\n        '
    crabCfgName = ('crab.%s.%s.%s.cfg' % (crabCfgBaseName, self.name, self.alignmentToValidate.name))
    repMap = self.getRepMap()
    repMap['script'] = 'dummy_script.sh'
    repMap['crabWorkingDir'] = crabCfgName.split('.cfg')[0]
    self.crabWorkingDir = repMap['crabWorkingDir']
    repMap['numberOfJobs'] = self.general['parallelJobs']
    repMap['cfgFile'] = self.configFiles[0]
    repMap['queue'] = self.jobmode.split(',')[1].split('-q')[1]
    if (self.dataset.dataType() == 'mc'):
        repMap['McOrData'] = 'events = .oO[nEvents]Oo.'
    elif (self.dataset.dataType() == 'data'):
        repMap['McOrData'] = 'lumis = -1'
        if (self.jobmode.split(',')[0] == 'crab'):
            print("For jobmode 'crab' the parameter 'maxevents' will be ignored and all events will be processed.")
    else:
        raise AllInOneError("Unknown data type!  Can't run in crab mode")
    crabCfg = {crabCfgName: replaceByMap(configTemplates.crabCfgTemplate, repMap)}
    return super(GenericValidationData, self).createCrabCfg(crabCfg, path)