CMS 3D CMS Logo

Public Member Functions | Public Attributes

DTTTrigProd::DTTTrigProd Class Reference

List of all members.

Public Member Functions

def __init__
def initCrab
def initProcess
def run
def writeCfg

Public Attributes

 config
 crab_cfg
 crab_template
 dir
 outputfile
 process
 project
 pset_name
 pset_template
 task

Detailed Description

Definition at line 6 of file DTTTrigProd.py.


Constructor & Destructor Documentation

def DTTTrigProd::DTTTrigProd::__init__ (   self,
  run,
  dir,
  config 
)

Definition at line 8 of file DTTTrigProd.py.

00009                                         :
00010         self.pset_name = 'DTTTrigCalibration_cfg.py'
00011         self.outputfile = 'DTTimeBoxes.root'
00012         self.config = config
00013         self.dir = dir 
00014 
00015         #self.crab_template = os.environ['CMSSW_BASE'] + '/src/Workflow/' + 'templates/crab/crab_ttrig_prod_TEMPL.cfg'
00016         #self.pset_template = os.environ['CMSSW_BASE'] + '/src/Workflow/' + 'templates/config/DTTTrigCalibration_TEMPL_cfg.py'
00017         self.crab_template = config.templatepath + '/crab/crab_ttrig_prod.cfg'
00018         self.pset_template = config.templatepath + '/config/DTTTrigCalibration_cfg.py'
00019 
00020         #self.crab_opts = crab_opts
00021         #self.crab_opts['PSET'] = pset_name
00022         #self.pset_opts = pset_opts
00023 
00024         #self.crab_cfg = replaceTemplate(self.crab_template,**self.crab_opts)
00025         #self.pset = replaceTemplate(self.pset_template,**self.pset_opts)
00026 
00027         #desc = 'Run%s'%run
00028         #desc += '/Ttrig/Production'
00029         #self.desc = desc 
00030 
00031         self.initProcess()
00032         self.initCrab()
00033         #self.task = CrabTask(self.dir,self.crab_cfg,self.pset,self.pset_name)
00034         self.task = CrabTask(self.dir,self.crab_cfg) 


Member Function Documentation

def DTTTrigProd::DTTTrigProd::initCrab (   self)

Definition at line 48 of file DTTTrigProd.py.

00049                       :
00050         crab_cfg_parser = loadCrabCfg(self.crab_template)
00051         loadCrabDefault(crab_cfg_parser,self.config)
00052         crab_cfg_parser.set('CMSSW','pset',self.pset_name)
00053         crab_cfg_parser.set('CMSSW','output_file',self.outputfile) 
00054         self.crab_cfg = crab_cfg_parser

def DTTTrigProd::DTTTrigProd::initProcess (   self)

Definition at line 35 of file DTTTrigProd.py.

00036                          :
00037         self.process = loadCmsProcess(self.pset_template)
00038         self.process.GlobalTag.globaltag = self.config.globaltag
00039         self.process.ttrigcalib.digiLabel = self.config.digilabel
00040         if hasattr(self.config,'preselection') and self.config.preselection:
00041             pathsequence = self.config.preselection.split(':')[0]
00042             seqname = self.config.preselection.split(':')[1]
00043             self.process.load(pathsequence)
00044             prependPaths(self.process,seqname)
00045 
00046         #writeCfg(self.process,self.dir,self.pset_name)
00047         #self.pset = self.process.dumpPython()

def DTTTrigProd::DTTTrigProd::run (   self)

Definition at line 58 of file DTTTrigProd.py.

00059                  :
00060         self.project = self.task.run() 
00061         return self.project

def DTTTrigProd::DTTTrigProd::writeCfg (   self)

Definition at line 55 of file DTTTrigProd.py.

00056                       :
00057         writeCfg(self.process,self.dir,self.pset_name)


Member Data Documentation

Definition at line 8 of file DTTTrigProd.py.

Definition at line 48 of file DTTTrigProd.py.

Definition at line 8 of file DTTTrigProd.py.

Definition at line 8 of file DTTTrigProd.py.

Definition at line 8 of file DTTTrigProd.py.

Definition at line 35 of file DTTTrigProd.py.

Definition at line 58 of file DTTTrigProd.py.

Definition at line 8 of file DTTTrigProd.py.

Definition at line 8 of file DTTTrigProd.py.

Definition at line 8 of file DTTTrigProd.py.