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.pset_template = 'CalibMuon.DTCalibration.dtTTrigCalibration_cfg'
00017         if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics:
00018             self.pset_template = 'CalibMuon.DTCalibration.dtTTrigCalibration_cosmics_cfg'
00019 
00020         self.initProcess()
00021         self.initCrab()
00022         self.task = CrabTask(self.dir,self.crab_cfg) 


Member Function Documentation

def DTTTrigProd::DTTTrigProd::initCrab (   self)

Definition at line 49 of file DTTTrigProd.py.

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

def DTTTrigProd::DTTTrigProd::initProcess (   self)

Definition at line 23 of file DTTTrigProd.py.

00024                          :
00025         self.process = loadCmsProcess(self.pset_template)
00026         self.process.GlobalTag.globaltag = self.config.globaltag
00027         self.process.dtTTrigCalibration.rootFileName = self.outputfile
00028         self.process.dtTTrigCalibration.digiLabel = self.config.digilabel
00029 
00030         if hasattr(self.config,'inputDBTag') and self.config.inputDBTag:
00031             tag = self.config.inputDBTag
00032             record = self.config.inputDBRcd
00033             connect = self.config.connectStrDBTag
00034             moduleName = 'customDB%s' % record 
00035             addPoolDBESSource(process = self.process,
00036                               moduleName = moduleName,record = record,tag = tag,
00037                               connect = connect)
00038 
00039         if hasattr(self.config,'runOnRAW') and self.config.runOnRAW:
00040             if hasattr(self.config,'runOnMC') and self.config.runOnMC:
00041                 getattr(self.process,self.config.digilabel).inputLabel = 'rawDataCollector' 
00042             prependPaths(self.process,self.config.digilabel)
00043 
00044         if hasattr(self.config,'preselection') and self.config.preselection:
00045             pathsequence = self.config.preselection.split(':')[0]
00046             seqname = self.config.preselection.split(':')[1]
00047             self.process.load(pathsequence)
00048             prependPaths(self.process,seqname)

def DTTTrigProd::DTTTrigProd::run (   self)

Definition at line 60 of file DTTTrigProd.py.

00061                  :
00062         self.project = self.task.run() 
00063         return self.project
def DTTTrigProd::DTTTrigProd::writeCfg (   self)

Definition at line 56 of file DTTTrigProd.py.

00057                       :
00058         writeCfg(self.process,self.dir,self.pset_name)
00059         #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 60 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.