Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
RecoTauTag
Configuration
python
tools
recoTauConfTools.py
Go to the documentation of this file.
1
#import FWCore.ParameterSet.Config as cms
2
import
os
3
4
'''
5
6
Helper functions for modifying the tau sequences.
7
8
9
Author: Evan K. Friis, UC Davis
10
11
'''
12
13
def
represents_int
(value):
14
try
:
15
int(value)
16
return
True
17
except
ValueError:
18
return
False
19
20
def
cmssw_version
():
21
version_str = os.environ[
'CMSSW_VERSION'
].
replace
(
'CMSSW_'
,
''
).
split
(
'_'
)
22
major_version = int(version_str[0])
23
minor_version = int(version_str[1])
24
subminor_version =
None
25
# Correctly deal with IB releases, where the subminor version is X. Return it
26
# as a string, which is always larger than integers.
27
if
represents_int
(version_str[2]):
28
subminor_version = int(version_str[2])
29
else
:
30
subminor_version = version_str[2]
31
return
(version_str[0], version_str[1], version_str[2])
recoTauConfTools.cmssw_version
def cmssw_version
Definition:
recoTauConfTools.py:20
recoTauConfTools.represents_int
def represents_int
Definition:
recoTauConfTools.py:13
python.rootplot.root2matplotlib.replace
def replace
Definition:
root2matplotlib.py:444
submitPVValidationJobs.split
def split
Definition:
submitPVValidationJobs.py:352
Generated for CMSSW Reference Manual by
1.8.5