Functions | |
def | cmssw_version |
def | represents_int |
def recoTauConfTools::cmssw_version | ( | ) |
Definition at line 20 of file recoTauConfTools.py.
00021 : 00022 version_str = os.environ['CMSSW_VERSION'].replace('CMSSW_', '').split('_') 00023 major_version = int(version_str[0]) 00024 minor_version = int(version_str[1]) 00025 subminor_version = None 00026 # Correctly deal with IB releases, where the subminor version is X. Return it 00027 # as a string, which is always larger than integers. 00028 if represents_int(version_str[2]): 00029 subminor_version = int(version_str[2]) 00030 else: 00031 subminor_version = version_str[2] 00032 return (version_str[0], version_str[1], version_str[2])
def recoTauConfTools::represents_int | ( | value | ) |
Definition at line 13 of file recoTauConfTools.py.