CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 7 of file readConfig.py.

Constructor & Destructor Documentation

def readConfig.fileINI.__init__ (   self,
  fileName 
)

Definition at line 8 of file readConfig.py.

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

Member Function Documentation

def readConfig.fileINI.read (   self)

Definition at line 11 of file readConfig.py.

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

Referenced by edmIntegrityCheck.PublishToFileSystem.get().

11 
12  def read(self):
13  Config.optionxform = str
14  Config.read(self.fileName)
15  self.processname=ConfigSectionMap("config")["processname"]
16  self.CMSSWVER=ConfigSectionMap("config")["cmsswver"]
17  self.jets=ConfigSectionMap("config")["hltjets"]
18  files=ConfigSectionMap("config")["files"]
19  self.maxEvents=ConfigSectionMap("config")["maxevents"]
20 # self.denominatorTriggerPath=ConfigSectionMap("config")["denominatorTriggerPath"]
21 
22  files=files.splitlines()
23  self.files=[x for x in files if len(x)>0]
24 
25  self.btag_modules=cms.VInputTag()
26  self.btag_pathes=cms.vstring()
27  self.btag_modules_string=cms.vstring()
28  for path in Config.options("btag"):
29  print(path)
30  modules=Config.get("btag",path)
31  modules=modules.splitlines()
32  for module in modules:
33  if(module!="" and path!=""):
34  self.btag_modules.extend([cms.InputTag(module)])
35  self.btag_modules_string.extend([module])
36  self.btag_pathes.extend([path])
37 
38  self.vertex_modules=cms.VInputTag()
39  self.vertex_pathes=cms.vstring()
40  for path in Config.options("vertex"):
41  print(path)
42  modules=Config.get("vertex",path)
43  modules=modules.splitlines()
44  for module in modules:
45  if(module!="" and path!=""):
46  self.vertex_modules.extend([cms.InputTag(module)])
47  self.vertex_pathes.extend([path])
tuple options
Definition: Config.py:8
if(conf_.getParameter< bool >("UseStripCablingDB"))
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

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

Definition at line 22 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 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.