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 38 of file DTNoiseCalibration.py.
00039 : 00040 crab_cfg_parser = loadCrabCfg() 00041 loadCrabDefault(crab_cfg_parser,self.config) 00042 crab_cfg_parser.set('CMSSW','pset',self.pset_name) 00043 crab_cfg_parser.set('CMSSW','output_file','%s,%s' % (self.outputDB,self.outputROOT)) 00044 crab_cfg_parser.remove_option('USER','additional_input_files') 00045 00046 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,'runOnRAW') and self.config.runOnRAW: 00031 prependPaths(self.process,self.config.digilabel) 00032 00033 if hasattr(self.config,'preselection') and self.config.preselection: 00034 pathsequence = self.config.preselection.split(':')[0] 00035 seqname = self.config.preselection.split(':')[1] 00036 self.process.load(pathsequence) 00037 prependPaths(self.process,seqname)
def DTNoiseCalibration::DTNoiseCalibration::run | ( | self | ) |
Definition at line 51 of file DTNoiseCalibration.py.
def DTNoiseCalibration::DTNoiseCalibration::writeCfg | ( | self | ) |
Definition at line 47 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 51 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.