CMS 3D CMS Logo

Public Member Functions | Public Attributes

DTDQMMerge::DTDQMMerge Class Reference

List of all members.

Public Member Functions

def __init__
def initProcess
def run
def writeCfg

Public Attributes

 config
 configFiles
 dir
 dqm_files
 process
 pset_name
 pset_template
 result_dir
 runnumber
 task

Detailed Description

Definition at line 5 of file DTDQMMerge.py.


Constructor & Destructor Documentation

def DTDQMMerge::DTDQMMerge::__init__ (   self,
  run,
  dir,
  dqm_files,
  result_dir,
  config = None 
)

Definition at line 6 of file DTDQMMerge.py.

00007                                                                     :
00008         self.runnumber = int(run)
00009         self.dir = dir
00010         self.result_dir = result_dir
00011         self.config = config
00012         self.dqm_files = dqm_files
00013 
00014         self.pset_name = 'dtDQMMerge_cfg.py'
00015         self.pset_template = 'CalibMuon.DTCalibration.dtDQMMerge_cfg'
00016 
00017         self.process = None
00018         self.initProcess()
00019         self.configFiles = []
00020         self.configFiles.append(self.pset_name)
00021         self.task = CmsswTask(self.dir,self.configFiles)


Member Function Documentation

def DTDQMMerge::DTDQMMerge::initProcess (   self)

Definition at line 22 of file DTDQMMerge.py.

00023                          :
00024         self.process = loadCmsProcess(self.pset_template)
00025         self.process.source.fileNames = self.dqm_files
00026 
00027         outputFileName = 'DQM.root'
00028         if self.config:
00029             label = 'dtDQMValidation'
00030             if hasattr(self.config,'label') and self.config.label: label = self.config.label 
00031             #workflowName = dqmWorkflowName(self.config.datasetpath,label,self.config.trial)
00032             datasetStr = getDatasetStr(self.config.datasetpath)
00033               
00034             outputFileName = 'DQM_%s-%s.root' % (datasetStr,label) 
00035 
00036         self.process.output.fileName = '%s/%s' % (os.path.abspath(self.result_dir),outputFileName) 
00037         
00038         #if self.process.DQMStore.collateHistograms:

def DTDQMMerge::DTDQMMerge::run (   self)

Definition at line 43 of file DTDQMMerge.py.

00044                  :
00045         self.task.run()
00046         return

def DTDQMMerge::DTDQMMerge::writeCfg (   self)

Definition at line 39 of file DTDQMMerge.py.

00040                       :
00041         writeCfg(self.process,self.dir,self.pset_name)   
00042         #writeCfgPkl(self.process,self.dir,self.pset_name) 
    

Member Data Documentation

Definition at line 6 of file DTDQMMerge.py.

Definition at line 6 of file DTDQMMerge.py.

Definition at line 6 of file DTDQMMerge.py.

Definition at line 6 of file DTDQMMerge.py.

Definition at line 6 of file DTDQMMerge.py.

Definition at line 6 of file DTDQMMerge.py.

Definition at line 6 of file DTDQMMerge.py.

Definition at line 6 of file DTDQMMerge.py.

Definition at line 6 of file DTDQMMerge.py.

Definition at line 6 of file DTDQMMerge.py.