43 |
|
self.cmsProcess = self.cfo |
44 |
|
except Exception, ex: |
45 |
|
msg = "Your cfg file is not valid, %s\n" % str(ex) |
46 |
< |
msg += " https://twiki.cern.ch/twiki/bin/view/CMS/CrabFaq#Problem_with_ParameterSet_parsin\n" |
46 |
> |
msg += " https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCrabFaq#Problem_with_ParameterSet_parsin\n" |
47 |
|
msg += " may help you understand the problem." |
48 |
|
raise CrabException(msg) |
49 |
|
self.cfg = CfgInterface(self.cmsProcess) |
110 |
|
|
111 |
|
def getPoolOutputModule(self): |
112 |
|
""" Get Output filename from PoolOutputModule and return it. If not existing, return None """ |
113 |
< |
return None |
114 |
< |
# if not self.cfg.data.outputModules: |
115 |
< |
# return None |
116 |
< |
# poolOutputModule = self.cfg.data.outputModules |
117 |
< |
# for out in poolOutputModule: |
118 |
< |
# print out |
119 |
< |
# fileName = poolOutputModule.getattr(poolOutputModule.values()[0],'fileName', None) |
120 |
< |
# return fileName |
113 |
> |
if not self.cfg.data.outputModules: |
114 |
> |
return None |
115 |
> |
poolOutputModule = self.cfg.data.outputModules |
116 |
> |
for out in poolOutputModule: |
117 |
> |
return poolOutputModule[out].fileName.value() |
118 |
|
|