85 |
|
|
86 |
|
return |
87 |
|
|
88 |
– |
def addCrabFJR(self,name): |
89 |
– |
""" |
90 |
– |
_addCrabFJR_ |
91 |
– |
add CRAB specific FrameworkJobReport (FJR) |
92 |
– |
if a FJR already exists in input CMSSW parameter-set, add a second one. |
93 |
– |
This code is not needed for CMSSW >= 1.5.x and is non-functional in CMSSW >= 1.7.x. |
94 |
– |
It should be removed at some point in the future. |
95 |
– |
""" |
96 |
– |
|
97 |
– |
# Check if MessageLogger service already exists in configuration. If not, add it |
98 |
– |
svcs = self.cfg.data.services |
99 |
– |
if not svcs.has_key('MessageLogger'): |
100 |
– |
self.cfg.data.add_(CfgModules.Service("MessageLogger")) |
101 |
– |
|
102 |
– |
messageLogger = self.cfg.data.services['MessageLogger'] |
103 |
– |
|
104 |
– |
# Add fwkJobReports to Message logger if it doesn't exist |
105 |
– |
if "fwkJobReports" not in messageLogger.parameterNames_(): |
106 |
– |
messageLogger.fwkJobReports = CfgTypes.untracked(CfgTypes.vstring()) |
107 |
– |
|
108 |
– |
# should figure out how to remove "name" if it is there. |
109 |
– |
|
110 |
– |
if name not in messageLogger.fwkJobReports: |
111 |
– |
messageLogger.fwkJobReports.append(name) |
112 |
– |
|
113 |
– |
return |
114 |
– |
|
88 |
|
def getTFileService(self): |
89 |
|
""" Get Output filename from TFileService and return it. If not existing, return None """ |
90 |
|
if not self.cfg.data.services.has_key('TFileService'): |