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

◆ __init__()

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, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ read()

def readConfig.fileINI.read (   self)

Definition at line 11 of file readConfig.py.

References readConfig.fileINI.fileName, QGLikelihoodSystematicsDBWriter.fileName, WorkFlow.WorkFlowConnector.fileName, DTPerformanceHandler.fileName, DTRangeT0Handler.fileName, DTT0Handler.fileName, DTTPGParametersHandler.fileName, DTStatusFlagHandler.fileName, DTDeadFlagHandler.fileName, EcalPnGraphs.fileName, DTReadOutMappingHandler.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 
options
Definition: Config.py:8
def ConfigSectionMap(config, section)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Member Data Documentation

◆ btag_modules

readConfig.fileINI.btag_modules

Definition at line 24 of file readConfig.py.

◆ btag_modules_string

readConfig.fileINI.btag_modules_string

Definition at line 26 of file readConfig.py.

◆ btag_pathes

readConfig.fileINI.btag_pathes

Definition at line 25 of file readConfig.py.

◆ CMSSWVER

readConfig.fileINI.CMSSWVER

Definition at line 15 of file readConfig.py.

◆ fileName

readConfig.fileINI.fileName

Definition at line 9 of file readConfig.py.

Referenced by readConfig.fileINI.read().

◆ files

readConfig.fileINI.files

◆ jets

readConfig.fileINI.jets

Definition at line 16 of file readConfig.py.

◆ maxEvents

readConfig.fileINI.maxEvents

Definition at line 18 of file readConfig.py.

◆ processname

readConfig.fileINI.processname

Definition at line 14 of file readConfig.py.

◆ vertex_modules

readConfig.fileINI.vertex_modules

Definition at line 37 of file readConfig.py.

◆ vertex_pathes

readConfig.fileINI.vertex_pathes

Definition at line 38 of file readConfig.py.