![]() |
![]() |
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 DTTTrigValid.py.
def DTTTrigValid::DTTTrigValid::__init__ | ( | self, | |
run, | |||
dir, | |||
input_db, | |||
config | |||
) |
Definition at line 7 of file DTTTrigValid.py.
00008 : 00009 self.pset_name = 'dtCalibValidation_cfg.py' 00010 #self.outputfile = 'residuals.root,DQM.root' 00011 self.outputfile = 'DQM.root' 00012 self.config = config 00013 self.dir = dir 00014 self.inputdb = input_db 00015 00016 self.pset_template = 'CalibMuon.DTCalibration.dtCalibValidation_cfg' 00017 if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics: 00018 self.pset_template = 'CalibMuon.DTCalibration.dtCalibValidation_cosmics_cfg' 00019 00020 self.process = None 00021 self.crab_cfg = None 00022 self.initProcess() 00023 self.initCrab() 00024 self.task = CrabTask(self.dir,self.crab_cfg)
def DTTTrigValid::DTTTrigValid::initCrab | ( | self | ) |
Definition at line 51 of file DTTTrigValid.py.
00052 : 00053 crab_cfg_parser = loadCrabCfg() 00054 loadCrabDefault(crab_cfg_parser,self.config) 00055 crab_cfg_parser.set('CMSSW','pset',self.pset_name) 00056 crab_cfg_parser.set('CMSSW','output_file',self.outputfile) 00057 crab_cfg_parser.remove_option('USER','additional_input_files') 00058 if self.inputdb: 00059 addCrabInputFile(crab_cfg_parser,self.inputdb) 00060 00061 if hasattr(self.config,'inputVdriftDB') and self.config.inputVdriftDB: 00062 addCrabInputFile(crab_cfg_parser,self.config.inputVdriftDB) 00063 00064 self.crab_cfg = crab_cfg_parser
def DTTTrigValid::DTTTrigValid::initProcess | ( | self | ) |
Definition at line 25 of file DTTTrigValid.py.
00026 : 00027 self.process = loadCmsProcess(self.pset_template) 00028 self.process.GlobalTag.globaltag = self.config.globaltag 00029 #self.process.dtCalibValidation.OutputMEsInRootFile = True 00030 00031 if(self.inputdb): 00032 label = '' 00033 if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics: label = 'cosmics' 00034 addPoolDBESSource(process = self.process, 00035 moduleName = 'calibDB',record = 'DTTtrigRcd',tag = 'ttrig',label=label, 00036 connect = 'sqlite_file:%s' % os.path.basename(self.inputdb)) 00037 00038 if hasattr(self.config,'inputVdriftDB') and self.config.inputVdriftDB: 00039 addPoolDBESSource(process = self.process, 00040 moduleName = 'vDriftDB',record = 'DTMtimeRcd',tag = 'vDrift', 00041 connect = 'sqlite_file:%s' % os.path.basename(self.config.inputVdriftDB)) 00042 00043 if hasattr(self.config,'runOnRAW') and self.config.runOnRAW: 00044 prependPaths(self.process,self.config.digilabel) 00045 00046 if hasattr(self.config,'preselection') and self.config.preselection: 00047 pathsequence = self.config.preselection.split(':')[0] 00048 seqname = self.config.preselection.split(':')[1] 00049 self.process.load(pathsequence) 00050 prependPaths(self.process,seqname)
def DTTTrigValid::DTTTrigValid::run | ( | self | ) |
Definition at line 69 of file DTTTrigValid.py.
def DTTTrigValid::DTTTrigValid::writeCfg | ( | self | ) |
Definition at line 65 of file DTTTrigValid.py.
Definition at line 7 of file DTTTrigValid.py.
Definition at line 7 of file DTTTrigValid.py.
Definition at line 7 of file DTTTrigValid.py.
Definition at line 7 of file DTTTrigValid.py.
Definition at line 7 of file DTTTrigValid.py.
Definition at line 7 of file DTTTrigValid.py.
Definition at line 69 of file DTTTrigValid.py.
Definition at line 7 of file DTTTrigValid.py.
Definition at line 7 of file DTTTrigValid.py.
Definition at line 7 of file DTTTrigValid.py.