def initProcess(self): self.process = loadCmsProcess(self.pset_template) self.process.GlobalTag.globaltag = self.config.globaltag self.process.dtTTrigCalibration.rootFileName = self.outputfile self.process.dtTTrigCalibration.digiLabel = self.config.digilabel if hasattr(self.config, 'inputDBTag') and self.config.inputDBTag: tag = self.config.inputDBTag record = self.config.inputDBRcd connect = self.config.connectStrDBTag moduleName = 'customDB%s' % record addPoolDBESSource(process=self.process, moduleName=moduleName, record=record, tag=tag, connect=connect) if hasattr(self.config, 'runOnRAW') and self.config.runOnRAW: if hasattr(self.config, 'runOnMC') and self.config.runOnMC: getattr(self.process, self.config.digilabel).inputLabel = 'rawDataCollector' prependPaths(self.process, self.config.digilabel) if hasattr(self.config, 'preselection') and self.config.preselection: pathsequence = self.config.preselection.split(':')[0] seqname = self.config.preselection.split(':')[1] self.process.load(pathsequence) prependPaths(self.process, seqname)
def initProcess(self): self.process = loadCmsProcess(self.pset_template) self.process.GlobalTag.globaltag = self.config.globaltag if hasattr(self.config,'inputTTrigDB') and self.config.inputTTrigDB: label = '' if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics: label = 'cosmics' addPoolDBESSource(process = self.process, moduleName = 'tTrigDB',record = 'DTTtrigRcd',tag = 'ttrig',label = label, connect = 'sqlite_file:%s' % os.path.basename(self.config.inputTTrigDB)) if hasattr(self.config,'inputVDriftDB') and self.config.inputVDriftDB: addPoolDBESSource(process = self.process, moduleName = 'vDriftDB',record = 'DTMtimeRcd',tag = 'vDrift', connect = 'sqlite_file:%s' % os.path.basename(self.config.inputVDriftDB)) if hasattr(self.config,'inputDBTag') and self.config.inputDBTag: tag = self.config.inputDBTag record = self.config.inputDBRcd connect = self.config.connectStrDBTag moduleName = 'customDB%s' % record addPoolDBESSource(process = self.process, moduleName = moduleName,record = record,tag = tag, connect = connect) if hasattr(self.config,'runOnRAW') and self.config.runOnRAW: if hasattr(self.config,'runOnMC') and self.config.runOnMC: getattr(self.process,self.config.digilabel).inputLabel = 'rawDataCollector' prependPaths(self.process,self.config.digilabel) if hasattr(self.config,'preselection') and self.config.preselection: pathsequence = self.config.preselection.split(':')[0] seqname = self.config.preselection.split(':')[1] self.process.load(pathsequence) prependPaths(self.process,seqname)
def initProcess(self): self.process = loadCmsProcess(self.pset_template) self.process.GlobalTag.globaltag = self.config.globaltag self.process.dtTTrigCalibration.rootFileName = self.outputfile self.process.dtTTrigCalibration.digiLabel = self.config.digilabel if hasattr(self.config,'inputDBTag') and self.config.inputDBTag: tag = self.config.inputDBTag record = self.config.inputDBRcd connect = self.config.connectStrDBTag moduleName = 'customDB%s' % record addPoolDBESSource(process = self.process, moduleName = moduleName,record = record,tag = tag, connect = connect) if hasattr(self.config,'runOnRAW') and self.config.runOnRAW: if hasattr(self.config,'runOnMC') and self.config.runOnMC: getattr(self.process,self.config.digilabel).inputLabel = 'rawDataCollector' prependPaths(self.process,self.config.digilabel) if hasattr(self.config,'preselection') and self.config.preselection: pathsequence = self.config.preselection.split(':')[0] seqname = self.config.preselection.split(':')[1] self.process.load(pathsequence) prependPaths(self.process,seqname)
def initProcess(self): import FWCore.ParameterSet.Config as cms self.process = loadCmsProcess(self.pset_template) self.process.GlobalTag.globaltag = self.config.globaltag if (self.inputdb): self.process.calibDB = cms.ESSource( "PoolDBESSource", self.process.CondDBSetup, timetype=cms.string('runnumber'), toGet=cms.VPSet( cms.PSet(record=cms.string('DTTtrigRcd'), tag=cms.string('ttrig'))), connect=cms.string('sqlite_file:'), authenticationMethod=cms.untracked.uint32(0)) self.process.calibDB.connect = 'sqlite_file:%s' % os.path.basename( self.inputdb) self.process.es_prefer_calibDB = cms.ESPrefer( 'PoolDBESSource', 'calibDB') if hasattr(self.config, 'preselection') and self.config.preselection: pathsequence = self.config.preselection.split(':')[0] seqname = self.config.preselection.split(':')[1] self.process.load(pathsequence) prependPaths(self.process, seqname)
def add_preselection(self): """ Add preselection to the process object stored in workflow_object""" if not hasattr(self, "process"): raise NameError("Process is not initalized in workflow object") pathsequence = self.options.preselection.split(':')[0] seqname = self.options.preselection.split(':')[1] self.process.load(pathsequence) tools.prependPaths(self.process, seqname)
def initProcess(self): self.process = loadCmsProcess(self.pset_template) self.process.GlobalTag.globaltag = self.config.globaltag self.process.ttrigcalib.digiLabel = self.config.digilabel if hasattr(self.config,'preselection') and self.config.preselection: pathsequence = self.config.preselection.split(':')[0] seqname = self.config.preselection.split(':')[1] self.process.load(pathsequence) prependPaths(self.process,seqname)
def initProcess(self): self.process = loadCmsProcess(self.pset_template) self.process.GlobalTag.globaltag = self.config.globaltag self.process.ttrigcalib.digiLabel = self.config.digilabel if hasattr(self.config, 'preselection') and self.config.preselection: pathsequence = self.config.preselection.split(':')[0] seqname = self.config.preselection.split(':')[1] self.process.load(pathsequence) prependPaths(self.process, seqname)
def add_raw_option(self): getattr(self.process, self.digilabel).inputLabel = 'rawDataCollector' tools.prependPaths(self.process,self.digilabel)