Public Member Functions | |
def | __init__ |
def | initProcess |
def | run |
def | writeCfg |
Public Attributes | |
config | |
configs | |
dir | |
input_file | |
output_dir | |
process | |
pset_templates | |
runnumber | |
task |
Definition at line 6 of file DTVDriftMeanTimerWriter.py.
def DTVDriftMeanTimerWriter::DTVDriftMeanTimerWriter::__init__ | ( | self, | |
run, | |||
dir, | |||
input_file, | |||
output_dir, | |||
config | |||
) |
Definition at line 7 of file DTVDriftMeanTimerWriter.py.
00008 : 00009 self.runnumber = int(run) 00010 self.config = config 00011 self.dir = dir 00012 self.input_file = input_file 00013 self.output_dir = output_dir 00014 00015 self.configs = ['dtVDriftMeanTimerWriter_cfg.py', 00016 'dumpDBToFile_vdrift_cfg.py'] 00017 00018 self.pset_templates = {} 00019 self.pset_templates['dtVDriftMeanTimerWriter_cfg.py'] = 'CalibMuon.DTCalibration.dtVDriftMeanTimerWriter_cfg' 00020 self.pset_templates['dumpDBToFile_vdrift_cfg.py'] = 'CalibMuon.DTCalibration.dumpDBToFile_vdrift_cfg' 00021 00022 self.initProcess() 00023 self.task = CmsswTask(self.dir,self.configs)
def DTVDriftMeanTimerWriter::DTVDriftMeanTimerWriter::initProcess | ( | self | ) |
Definition at line 24 of file DTVDriftMeanTimerWriter.py.
00024 : 00025 vDrift_meantimer = self.output_dir + '/' + 'vDrift_meantimer_' + str(self.runnumber) 00026 vDrift_meantimer_db = os.path.abspath(vDrift_meantimer + '.db') 00027 vDrift_meantimer_txt = os.path.abspath(vDrift_meantimer + '.txt') 00028 00029 self.process = {} 00030 # dtVDriftMeanTimerWriter 00031 self.process['dtVDriftMeanTimerWriter_cfg.py'] = loadCmsProcess(self.pset_templates['dtVDriftMeanTimerWriter_cfg.py']) 00032 self.process['dtVDriftMeanTimerWriter_cfg.py'].source.firstRun = self.runnumber 00033 self.process['dtVDriftMeanTimerWriter_cfg.py'].GlobalTag.globaltag = self.config.globaltag 00034 00035 # Input vDrift db 00036 if hasattr(self.config,'inputVDriftDB') and self.config.inputVDriftDB: 00037 addPoolDBESSource(process = self.process['dtVDriftMeanTimerWriter_cfg.py'], 00038 moduleName = 'vDriftDB',record = 'DTMtimeRcd',tag = 'vDrift', 00039 connect = 'sqlite_file:%s' % self.config.inputVDriftDB) 00040 00041 self.process['dtVDriftMeanTimerWriter_cfg.py'].PoolDBOutputService.connect = 'sqlite_file:%s' % vDrift_meantimer_db 00042 self.process['dtVDriftMeanTimerWriter_cfg.py'].dtVDriftMeanTimerWriter.vDriftAlgoConfig.rootFileName = self.input_file 00043 00044 # dumpDBToFile 00045 self.process['dumpDBToFile_vdrift_cfg.py'] = loadCmsProcess(self.pset_templates['dumpDBToFile_vdrift_cfg.py']) 00046 self.process['dumpDBToFile_vdrift_cfg.py'].calibDB.connect = 'sqlite_file:%s' % vDrift_meantimer_db 00047 self.process['dumpDBToFile_vdrift_cfg.py'].dumpToFile.outputFileName = vDrift_meantimer_txt 00048
def DTVDriftMeanTimerWriter::DTVDriftMeanTimerWriter::run | ( | self | ) |
Definition at line 54 of file DTVDriftMeanTimerWriter.py.
def DTVDriftMeanTimerWriter::DTVDriftMeanTimerWriter::writeCfg | ( | self | ) |
Definition at line 49 of file DTVDriftMeanTimerWriter.py.
Definition at line 7 of file DTVDriftMeanTimerWriter.py.
Definition at line 7 of file DTVDriftMeanTimerWriter.py.
Definition at line 7 of file DTVDriftMeanTimerWriter.py.
Definition at line 7 of file DTVDriftMeanTimerWriter.py.
Definition at line 7 of file DTVDriftMeanTimerWriter.py.
Definition at line 24 of file DTVDriftMeanTimerWriter.py.
Definition at line 7 of file DTVDriftMeanTimerWriter.py.
Definition at line 7 of file DTVDriftMeanTimerWriter.py.
Definition at line 7 of file DTVDriftMeanTimerWriter.py.