CMS 3D CMS Logo

Public Member Functions | Public Attributes

DTNoiseCalibration::DTNoiseCalibration Class Reference

List of all members.

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

Detailed Description

Definition at line 6 of file DTNoiseCalibration.py.


Constructor & Destructor Documentation

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)


Member Function Documentation

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.

00052                  :
00053         self.project = self.task.run()
00054         return self.project
def DTNoiseCalibration::DTNoiseCalibration::writeCfg (   self)

Definition at line 47 of file DTNoiseCalibration.py.

00048                       :
00049         writeCfg(self.process,self.dir,self.pset_name)
00050         #writeCfgPkl(self.process,self.dir,self.pset_name)


Member Data Documentation

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.