1 from tools
import loadCmsProcess,loadCrabCfg,loadCrabDefault,writeCfg,prependPaths
15 self.
pset_template =
'CalibMuon.DTCalibration.dtTTrigCalibration_cfg' 16 if hasattr(self.
config,
'runOnCosmics')
and self.config.runOnCosmics:
17 self.
pset_template =
'CalibMuon.DTCalibration.dtTTrigCalibration_cosmics_cfg' 25 self.process.GlobalTag.globaltag = self.config.globaltag
26 self.process.dtTTrigCalibration.rootFileName = self.
outputfile 27 self.process.dtTTrigCalibration.digiLabel = self.config.digilabel
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)
53 crab_cfg_parser.set(
'CMSSW',
'output_file',self.
outputfile)
def __init__(self, run, dir, config)