1 from tools
import loadCmsProcess,loadCrabCfg,loadCrabDefault,addCrabInputFile,writeCfg,prependPaths
2 from addPoolDBESSource
import addPoolDBESSource
26 self.process.GlobalTag.globaltag = self.config.globaltag
27 self.process.dtNoiseCalibration.rootFileName = self.
outputROOT
29 if hasattr(self.
config,
'inputDBTag')
and self.config.inputDBTag:
30 tag = self.config.inputDBTag
31 record = self.config.inputDBRcd
32 connect = self.config.connectStrDBTag
33 moduleName =
'customDB%s' % record
35 moduleName = moduleName,record = record,tag = tag,
38 if hasattr(self.
config,
'runOnRAW')
and self.config.runOnRAW:
39 if hasattr(self.
config,
'runOnMC')
and self.config.runOnMC:
40 getattr(self.
process,self.config.digilabel).inputLabel =
'rawDataCollector'
43 if hasattr(self.
config,
'preselection')
and self.config.preselection:
44 pathsequence = self.config.preselection.split(
':')[0]
45 seqname = self.config.preselection.split(
':')[1]
46 self.process.load(pathsequence)
52 crab_cfg_parser.set(
'CMSSW',
'pset',self.
pset_name)
54 crab_cfg_parser.remove_option(
'USER',
'additional_input_files')