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
 dir
 outputfile
 process
 project
 pset_name
 pset_template
 task

Detailed Description

Definition at line 5 of file DTTTrigProd.py.


Constructor & Destructor Documentation

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

Definition at line 6 of file DTTTrigProd.py.

00007                                         :
00008         self.pset_name = 'dtTTrigCalibration_cfg.py'
00009         self.outputfile = 'DTTimeBoxes.root'
00010         self.config = config
00011         self.dir = dir 
00012         self.pset_template = 'CalibMuon.DTCalibration.dtTTrigCalibration_cfg'
00013         self.process = None
00014         self.crab_cfg = None
00015 
00016         self.initProcess()
00017         self.initCrab()
00018         self.task = CrabTask(self.dir,self.crab_cfg) 


Member Function Documentation

def DTTTrigProd::DTTTrigProd::initCrab (   self)

Definition at line 36 of file DTTTrigProd.py.

00037                       :
00038         crab_cfg_parser = loadCrabCfg()
00039         crab_cfg_parser = loadCrabDefault(crab_cfg_parser,self.config)
00040         crab_cfg_parser.set('CMSSW','pset',self.pset_name)
00041         crab_cfg_parser.set('CMSSW','output_file',self.outputfile) 
00042         self.crab_cfg = crab_cfg_parser

def DTTTrigProd::DTTTrigProd::initProcess (   self)

Definition at line 19 of file DTTTrigProd.py.

00020                          :
00021         self.process = loadCmsProcess(self.pset_template)
00022         self.process.GlobalTag.globaltag = self.config.globaltag
00023         self.process.dtTTrigCalibration.rootFileName = self.outputfile
00024         self.process.dtTTrigCalibration.digiLabel = self.config.digilabel
00025         if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics:
00026             self.process.load('RecoLocalMuon.Configuration.RecoLocalMuonCosmics_cff')
00027 
00028         if hasattr(self.config,'runOnRAW') and self.config.runOnRAW:
00029             prependPaths(self.process,self.config.digilabel)
00030 
00031         if hasattr(self.config,'preselection') and self.config.preselection:
00032             pathsequence = self.config.preselection.split(':')[0]
00033             seqname = self.config.preselection.split(':')[1]
00034             self.process.load(pathsequence)
00035             prependPaths(self.process,seqname)

def DTTTrigProd::DTTTrigProd::run (   self)

Definition at line 47 of file DTTTrigProd.py.

00048                  :
00049         self.project = self.task.run() 
00050         return self.project
def DTTTrigProd::DTTTrigProd::writeCfg (   self)

Definition at line 43 of file DTTTrigProd.py.

00044                       :
00045         writeCfg(self.process,self.dir,self.pset_name)
00046         #writeCfgPkl(self.process,self.dir,self.pset_name) 


Member Data Documentation

Definition at line 6 of file DTTTrigProd.py.

Definition at line 6 of file DTTTrigProd.py.

Definition at line 6 of file DTTTrigProd.py.

Definition at line 6 of file DTTTrigProd.py.

Definition at line 6 of file DTTTrigProd.py.

Definition at line 47 of file DTTTrigProd.py.

Definition at line 6 of file DTTTrigProd.py.

Definition at line 6 of file DTTTrigProd.py.

Definition at line 6 of file DTTTrigProd.py.