Public Member Functions | |
def | __init__ |
def | initCrab |
def | initProcess |
def | run |
def | writeCfg |
Public Attributes | |
config | |
crab_cfg | |
dir | |
inputdb | |
outputfile | |
process | |
project | |
pset_name | |
pset_template | |
task |
Definition at line 6 of file DTResidualCalibration.py.
def DTResidualCalibration::DTResidualCalibration::__init__ | ( | self, | |
run, | |||
dir, | |||
input_db, | |||
config | |||
) |
Definition at line 7 of file DTResidualCalibration.py.
00008 : 00009 self.pset_name = 'dtResidualCalibration_cfg.py' 00010 self.outputfile = 'residuals.root' 00011 self.config = config 00012 self.dir = dir 00013 self.inputdb = input_db 00014 00015 self.pset_template = 'CalibMuon.DTCalibration.dtResidualCalibration_cfg' 00016 if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics: 00017 self.pset_template = 'CalibMuon.DTCalibration.dtResidualCalibration_cosmics_cfg' 00018 00019 self.process = None 00020 self.crab_cfg = None 00021 self.initProcess() 00022 self.initCrab() 00023 self.task = CrabTask(self.dir,self.crab_cfg)
def DTResidualCalibration::DTResidualCalibration::initCrab | ( | self | ) |
Definition at line 50 of file DTResidualCalibration.py.
00051 : 00052 crab_cfg_parser = loadCrabCfg() 00053 loadCrabDefault(crab_cfg_parser,self.config) 00054 crab_cfg_parser.set('CMSSW','pset',self.pset_name) 00055 crab_cfg_parser.set('CMSSW','output_file',self.outputfile) 00056 crab_cfg_parser.remove_option('USER','additional_input_files') 00057 if self.inputdb: 00058 addCrabInputFile(crab_cfg_parser,self.inputdb) 00059 00060 if hasattr(self.config,'inputVdriftDB') and self.config.inputVdriftDB: 00061 addCrabInputFile(crab_cfg_parser,self.config.inputVdriftDB) 00062 00063 self.crab_cfg = crab_cfg_parser
def DTResidualCalibration::DTResidualCalibration::initProcess | ( | self | ) |
Definition at line 24 of file DTResidualCalibration.py.
00025 : 00026 self.process = loadCmsProcess(self.pset_template) 00027 self.process.GlobalTag.globaltag = self.config.globaltag 00028 self.process.dtResidualCalibration.rootFileName = self.outputfile 00029 00030 if(self.inputdb): 00031 label = '' 00032 if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics: label = 'cosmics' 00033 addPoolDBESSource(process = self.process, 00034 moduleName = 'calibDB',record = 'DTTtrigRcd',tag = 'ttrig',label = label, 00035 connect = 'sqlite_file:%s' % os.path.basename(self.inputdb)) 00036 00037 if hasattr(self.config,'inputVdriftDB') and self.config.inputVdriftDB: 00038 addPoolDBESSource(process = self.process, 00039 moduleName = 'vDriftDB',record = 'DTMtimeRcd',tag = 'vDrift', 00040 connect = 'sqlite_file:%s' % os.path.basename(self.config.inputVdriftDB)) 00041 00042 if hasattr(self.config,'runOnRAW') and self.config.runOnRAW: 00043 prependPaths(self.process,self.config.digilabel) 00044 00045 if hasattr(self.config,'preselection') and self.config.preselection: 00046 pathsequence = self.config.preselection.split(':')[0] 00047 seqname = self.config.preselection.split(':')[1] 00048 self.process.load(pathsequence) 00049 prependPaths(self.process,seqname)
def DTResidualCalibration::DTResidualCalibration::run | ( | self | ) |
Definition at line 68 of file DTResidualCalibration.py.
def DTResidualCalibration::DTResidualCalibration::writeCfg | ( | self | ) |
Definition at line 64 of file DTResidualCalibration.py.
Definition at line 7 of file DTResidualCalibration.py.
Definition at line 7 of file DTResidualCalibration.py.
Definition at line 7 of file DTResidualCalibration.py.
Definition at line 7 of file DTResidualCalibration.py.
Definition at line 7 of file DTResidualCalibration.py.
Definition at line 7 of file DTResidualCalibration.py.
Definition at line 68 of file DTResidualCalibration.py.
Definition at line 7 of file DTResidualCalibration.py.
Definition at line 7 of file DTResidualCalibration.py.
Definition at line 7 of file DTResidualCalibration.py.