test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTValidSummary.py
Go to the documentation of this file.
1 from tools import loadCmsProcess,writeCfg
2 from CmsswTask import CmsswTask
3 import os
4 
6  def __init__(self, run, dir, input_file, output_file, config):
7  self.runnumber = run
8  self.config = config
9  self.dir = dir
10  self.input_file = input_file
11  self.output_file = output_file
12 
13  self.pset_name = 'dtTTrigValidSummary_cfg.py'
14  self.pset_template = 'CalibMuon.DTCalibration.dtTTrigValidSummary_cfg'
15 
16  self.process = None
17  self.initProcess()
18  self.configs = [self.pset_name]
19  self.task = CmsswTask(self.dir,self.configs)
20 
21  def initProcess(self):
23  self.process.resolutionTest.inputFile = self.input_file
24  self.process.resolutionTest.OutputFileName = self.output_file
25 
26  def writeCfg(self):
27  writeCfg(self.process,self.dir,self.pset_name)
28  #writeCfgPkl(self.process,self.dir,self.pset_name)
29 
30  def run(self):
31  self.task.run()
32  return
def loadCmsProcess
Definition: tools.py:144