CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
readConfig.fileINI Class Reference

Public Member Functions

def __init__ (self, fileName)
 
def read (self)
 

Public Attributes

 btag_modules
 
 btag_modules_string
 
 btag_pathes
 
 CMSSWVER
 
 fileName
 
 files
 
 jets
 
 maxEvents
 
 processname
 
 vertex_modules
 
 vertex_pathes
 

Detailed Description

Definition at line 7 of file readConfig.py.

Constructor & Destructor Documentation

def readConfig.fileINI.__init__ (   self,
  fileName 
)

Definition at line 8 of file readConfig.py.

8  def __init__(self, fileName):
9  self.fileName=fileName
10 
def __init__(self, fileName)
Definition: readConfig.py:8

Member Function Documentation

def readConfig.fileINI.read (   self)

Definition at line 11 of file readConfig.py.

References readConfig.fileINI.fileName, WorkFlow.WorkFlowConnector.fileName, EcalPnGraphs.fileName, DTT0Handler.fileName, DTRangeT0Handler.fileName, DTTPGParametersHandler.fileName, DTPerformanceHandler.fileName, DTStatusFlagHandler.fileName, DTDeadFlagHandler.fileName, DTReadOutMappingHandler.fileName, MCatNLOSource.fileName, DrawIteration::Input.fileName, and Vx3DHLTAnalyzer.fileName.

Referenced by edmIntegrityCheck.PublishToFileSystem.get().

11  def read(self):
12  Config.optionxform = str
13  Config.read(self.fileName)
14  self.processname=ConfigSectionMap("config")["processname"]
15  self.CMSSWVER=ConfigSectionMap("config")["cmsswver"]
16  self.jets=ConfigSectionMap("config")["hltjets"]
17  files=ConfigSectionMap("config")["files"]
18  self.maxEvents=ConfigSectionMap("config")["maxevents"]
19 # self.denominatorTriggerPath=ConfigSectionMap("config")["denominatorTriggerPath"]
20 
21  files=files.splitlines()
22  self.files=[x for x in files if len(x)>0]
23 
24  self.btag_modules=cms.VInputTag()
25  self.btag_pathes=cms.vstring()
26  self.btag_modules_string=cms.vstring()
27  for path in Config.options("btag"):
28  print(path)
29  modules=Config.get("btag",path)
30  modules=modules.splitlines()
31  for module in modules:
32  if(module!="" and path!=""):
33  self.btag_modules.extend([cms.InputTag(module)])
34  self.btag_modules_string.extend([module])
35  self.btag_pathes.extend([path])
36 
37  self.vertex_modules=cms.VInputTag()
38  self.vertex_pathes=cms.vstring()
39  for path in Config.options("vertex"):
40  print(path)
41  modules=Config.get("vertex",path)
42  modules=modules.splitlines()
43  for module in modules:
44  if(module!="" and path!=""):
45  self.vertex_modules.extend([cms.InputTag(module)])
46  self.vertex_pathes.extend([path])
47 
def ConfigSectionMap(section)
Definition: helper.py:12
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def read(self)
Definition: readConfig.py:11

Member Data Documentation

readConfig.fileINI.btag_modules

Definition at line 24 of file readConfig.py.

readConfig.fileINI.btag_modules_string

Definition at line 26 of file readConfig.py.

readConfig.fileINI.btag_pathes

Definition at line 25 of file readConfig.py.

readConfig.fileINI.CMSSWVER

Definition at line 15 of file readConfig.py.

readConfig.fileINI.fileName

Definition at line 9 of file readConfig.py.

Referenced by readConfig.fileINI.read().

readConfig.fileINI.files
readConfig.fileINI.jets

Definition at line 16 of file readConfig.py.

readConfig.fileINI.maxEvents

Definition at line 18 of file readConfig.py.

readConfig.fileINI.processname

Definition at line 14 of file readConfig.py.

readConfig.fileINI.vertex_modules

Definition at line 37 of file readConfig.py.

readConfig.fileINI.vertex_pathes

Definition at line 38 of file readConfig.py.