Public Member Functions | |
def | __init__ |
def | initCrab |
def | initProcess |
def | run |
def | writeCfg |
Public Attributes | |
config | |
crab_cfg | |
dir | |
outputDB | |
outputROOT | |
process | |
project | |
pset_name | |
pset_template | |
task |
Definition at line 6 of file DTNoiseCalibration.py.
def DTNoiseCalibration::DTNoiseCalibration::__init__ | ( | self, | |
run, | |||
dir, | |||
config | |||
) |
Definition at line 7 of file DTNoiseCalibration.py.
00008 : 00009 self.pset_name = 'dtNoiseCalibration_cfg.py' 00010 self.outputROOT = 'dtNoiseCalib.root' 00011 self.outputDB = 'noise.db' 00012 self.config = config 00013 self.dir = dir 00014 00015 self.pset_template = 'CalibMuon.DTCalibration.dtNoiseCalibration_cfg' 00016 #if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics: 00017 # self.pset_template = 'CalibMuon.DTCalibration.dtNoiseCalibration_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 DTNoiseCalibration::DTNoiseCalibration::initCrab | ( | self | ) |
Definition at line 49 of file DTNoiseCalibration.py.
00050 : 00051 crab_cfg_parser = loadCrabCfg() 00052 loadCrabDefault(crab_cfg_parser,self.config) 00053 crab_cfg_parser.set('CMSSW','pset',self.pset_name) 00054 crab_cfg_parser.set('CMSSW','output_file','%s,%s' % (self.outputDB,self.outputROOT)) 00055 crab_cfg_parser.remove_option('USER','additional_input_files') 00056 00057 self.crab_cfg = crab_cfg_parser
def DTNoiseCalibration::DTNoiseCalibration::initProcess | ( | self | ) |
Definition at line 24 of file DTNoiseCalibration.py.
00025 : 00026 self.process = loadCmsProcess(self.pset_template) 00027 self.process.GlobalTag.globaltag = self.config.globaltag 00028 self.process.dtNoiseCalibration.rootFileName = self.outputROOT 00029 00030 if hasattr(self.config,'inputDBTag') and self.config.inputDBTag: 00031 tag = self.config.inputDBTag 00032 record = self.config.inputDBRcd 00033 connect = self.config.connectStrDBTag 00034 moduleName = 'customDB%s' % record 00035 addPoolDBESSource(process = self.process, 00036 moduleName = moduleName,record = record,tag = tag, 00037 connect = connect) 00038 00039 if hasattr(self.config,'runOnRAW') and self.config.runOnRAW: 00040 if hasattr(self.config,'runOnMC') and self.config.runOnMC: 00041 getattr(self.process,self.config.digilabel).inputLabel = 'rawDataCollector' 00042 prependPaths(self.process,self.config.digilabel) 00043 00044 if hasattr(self.config,'preselection') and self.config.preselection: 00045 pathsequence = self.config.preselection.split(':')[0] 00046 seqname = self.config.preselection.split(':')[1] 00047 self.process.load(pathsequence) 00048 prependPaths(self.process,seqname)
def DTNoiseCalibration::DTNoiseCalibration::run | ( | self | ) |
Definition at line 62 of file DTNoiseCalibration.py.
def DTNoiseCalibration::DTNoiseCalibration::writeCfg | ( | self | ) |
Definition at line 58 of file DTNoiseCalibration.py.
Definition at line 7 of file DTNoiseCalibration.py.
Definition at line 7 of file DTNoiseCalibration.py.
Definition at line 7 of file DTNoiseCalibration.py.
Definition at line 7 of file DTNoiseCalibration.py.
Definition at line 7 of file DTNoiseCalibration.py.
Definition at line 7 of file DTNoiseCalibration.py.
Definition at line 62 of file DTNoiseCalibration.py.
Definition at line 7 of file DTNoiseCalibration.py.
Definition at line 7 of file DTNoiseCalibration.py.
Definition at line 7 of file DTNoiseCalibration.py.