Public Member Functions | |
def | __init__ |
Public Attributes | |
AuthenticationPath | |
BaseDir | |
CMS_PATH | |
CMSSW_Version | |
Database | |
FirstRun | |
Group | |
LastRun | |
QualityFlag | |
RecoTypes | |
RunsToSkip | |
RunType | |
SourceDir | |
StorageDir | |
SubDet | |
SubDetsAndTags | |
Tag | |
TagName | |
TemplatesDir |
Definition at line 4 of file HDQMDatabaseProducerConfiguration.py.
def HDQMDatabaseProducerConfiguration::HDQMDatabaseProducerConfiguration::__init__ | ( | self, | |
configFileName | |||
) |
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
00007 : 00008 config = ConfigParser.ConfigParser() 00009 # config.read("HDQMDatabaseProducerConfiguration.cfg") 00010 config.read(configFileName) 00011 00012 # [RunSelection] 00013 # ############## 00014 00015 self.FirstRun = config.get('Config', 'FirstRun') 00016 self.LastRun = config.get('Config', 'LastRun') 00017 self.RunType = config.get('Config', 'RunType') 00018 00019 if config.get('Config', 'DiscoverRecoTypes') == "True": 00020 self.RecoTypes = "" 00021 else: 00022 self.RecoTypes = config.get('Config', 'RecoTypes').split(",") 00023 00024 self.RunsToSkip = config.get('Config', 'RunsToSkip') 00025 00026 # Good run selection 00027 self.Group = config.get('Config', 'Group') 00028 00029 # Tag 00030 # ### 00031 00032 # Prefix to tag name. Will be composed with subdet and tag version to build the actual tag name 00033 self.TagName = config.get('Config', 'TagName') 00034 00035 # Helper class to store information for each tag 00036 class SubDetInfo: 00037 def __init__(self, subDet, tag, qualityFlag): 00038 self.SubDet = subDet 00039 self.Tag = tag 00040 self.QualityFlag = qualityFlag 00041 00042 self.SubDetsAndTags = list() 00043 fullList = config.get('Config', 'SubDetsAndTags') 00044 for item in fullList.split(";"): 00045 itemList = item.split(",") 00046 if len(itemList) != 3: 00047 print "Error: incorrect configuration of subDetsAndTags" 00048 sys.exit() 00049 self.SubDetsAndTags.append(SubDetInfo(itemList[0].strip(), itemList[1].strip(), itemList[2].strip())) 00050 # print itemList[0], itemList[1], itemList[2] 00051 00052 # [Database] 00053 # ########## 00054 00055 self.AuthenticationPath = config.get('Config', 'AuthenticationPath') 00056 self.Database = config.get('Config', 'Database') 00057 00058 # [Directories] 00059 # ############# 00060 00061 # Directory where the scripts are 00062 self.BaseDir = config.get('Config', 'BaseDir') 00063 00064 # CMS environment 00065 self.CMS_PATH = config.get('Config', 'CMS_PATH') 00066 self.CMSSW_Version = config.get('Config', 'CMSSW_Version') 00067 00068 # Directory containing the cfg templates 00069 self.TemplatesDir = config.get('Config', 'TemplatesDir') 00070 00071 # DQM root files location 00072 self.SourceDir = config.get('Config', 'SourceDir') 00073 00074 # Directory where to copy the plots 00075 self.StorageDir = config.get('Config', 'StorageDir')
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.
Definition at line 6 of file HDQMDatabaseProducerConfiguration.py.