CMS 3D CMS Logo

Functions

RecoTLR Namespace Reference

Functions

def customiseCosmicData
def customiseCosmicMC
def customiseExpress
def customiseExpressHI
def customisePPData
def customisePPMC
def customisePrompt
def customisePromptHI
def customiseVALSKIM
def getCustomProcess
def getRelease

Function Documentation

def RecoTLR::customiseCosmicData (   process)

Definition at line 59 of file RecoTLR.py.

00060                                 :
00061     myname=sys._getframe().f_code.co_name
00062     return getCustomProcess(process,myname)

def RecoTLR::customiseCosmicMC (   process)

Definition at line 64 of file RecoTLR.py.

00065                               :
00066     myname=sys._getframe().f_code.co_name
00067     return getCustomProcess(process,myname)

def RecoTLR::customiseExpress (   process)

Definition at line 69 of file RecoTLR.py.

00070                              :
00071     myname=sys._getframe().f_code.co_name
00072     return getCustomProcess(process,myname)

def RecoTLR::customiseExpressHI (   process)

Definition at line 79 of file RecoTLR.py.

00080                                :
00081     myname=sys._getframe().f_code.co_name
00082     return getCustomProcess(process,myname)

def RecoTLR::customisePPData (   process)

Definition at line 45 of file RecoTLR.py.

00046                             :
00047     myname=sys._getframe().f_code.co_name
00048     return getCustomProcess(process,myname)

def RecoTLR::customisePPMC (   process)

Definition at line 54 of file RecoTLR.py.

00055                           :
00056     myname=sys._getframe().f_code.co_name
00057     return getCustomProcess(process,myname)

def RecoTLR::customisePrompt (   process)

Definition at line 74 of file RecoTLR.py.

00075                             :
00076     myname=sys._getframe().f_code.co_name
00077     return getCustomProcess(process,myname)

def RecoTLR::customisePromptHI (   process)

Definition at line 84 of file RecoTLR.py.

00085                               :
00086     myname=sys._getframe().f_code.co_name
00087     return getCustomProcess(process,myname)
def RecoTLR::customiseVALSKIM (   process)

Definition at line 49 of file RecoTLR.py.

00050                              :
00051     myname=sys._getframe().f_code.co_name
00052     return getCustomProcess(process,myname)
        
def RecoTLR::getCustomProcess (   process,
  myname 
)

Definition at line 32 of file RecoTLR.py.

00033                                     :
00034     rel=getRelease()
00035     try:
00036         _temp=__import__('Configuration.GlobalRuns.reco_TLR_'+rel,globals(),locals(),[myname])
00037     except ImportError,ex:
00038         msg= 'Unable to import reco TLR configuration ' + str(ex)
00039         raise RuntimeError,msg
00040     
00041     return getattr(_temp,myname)(process)
00042     

def RecoTLR::getRelease ( )

Definition at line 13 of file RecoTLR.py.

00014                 :
00015     import os
00016 
00017     try:
00018         release=os.environ['CMSSW_VERSION']
00019     except:
00020         msg='No CMSSW_VERSION envvar defined'
00021         raise RuntimeError,msg
00022 
00023     sp=release.split('_')
00024     if len(sp)<2:
00025         raise RuntimeError,'Unexpected release name'+release
00026     
00027     return ''.join(sp[1:3])+'X'
00028 
00029     #__import__(moduleName,globals(),locals(),[scenarioName])
00030     #except ImportError, ex:
00031