CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
readConfig.fileINI Class Reference

Public Member Functions

def __init__
 
def read
 

Public Attributes

 btag_modules
 
 btag_modules_string
 
 btag_pathes
 
 CMSSWVER
 
 fileName
 
 files
 
 jets
 
 maxEvents
 
 processname
 
 vertex_modules
 
 vertex_pathes
 

Detailed Description

Definition at line 6 of file readConfig.py.

Constructor & Destructor Documentation

def readConfig.fileINI.__init__ (   self,
  fileName 
)

Definition at line 7 of file readConfig.py.

7 
8  def __init__(self, fileName):
9  self.fileName=fileName

Member Function Documentation

def readConfig.fileINI.read (   self)

Definition at line 10 of file readConfig.py.

References readConfig.fileINI.fileName, WorkFlow.WorkFlowConnector.fileName, DTPerformanceHandler.fileName, DTT0Handler.fileName, DTReadOutMappingHandler.fileName, DTTPGParametersHandler.fileName, DTRangeT0Handler.fileName, DTTtrigHandler.fileName, DTStatusFlagHandler.fileName, DTDeadFlagHandler.fileName, DTMtimeHandler.fileName, EcalPnGraphs.fileName, MCatNLOSource.fileName, Vx3DHLTAnalyzer.fileName, and ConfigBuilder.ConfigBuilder.fileName.

10 
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=filter(lambda x: len(x)>0,files)
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])
tuple options
Definition: Config.py:5
def ConfigSectionMap
Definition: helper.py:11
if(conf.exists("allCellsPositionCalc"))

Member Data Documentation

readConfig.fileINI.btag_modules

Definition at line 23 of file readConfig.py.

readConfig.fileINI.btag_modules_string

Definition at line 25 of file readConfig.py.

readConfig.fileINI.btag_pathes

Definition at line 24 of file readConfig.py.

readConfig.fileINI.CMSSWVER

Definition at line 14 of file readConfig.py.

readConfig.fileINI.fileName

Definition at line 8 of file readConfig.py.

Referenced by readConfig.fileINI.read().

readConfig.fileINI.files

Definition at line 21 of file readConfig.py.

Referenced by chain.Chain._guessTreeName(), dataset.BaseDataset.listOfFiles(), dataset.BaseDataset.listOfGoodFiles(), and dataset.BaseDataset.printFiles().

readConfig.fileINI.jets

Definition at line 15 of file readConfig.py.

readConfig.fileINI.maxEvents

Definition at line 17 of file readConfig.py.

readConfig.fileINI.processname

Definition at line 13 of file readConfig.py.

readConfig.fileINI.vertex_modules

Definition at line 36 of file readConfig.py.

readConfig.fileINI.vertex_pathes

Definition at line 37 of file readConfig.py.