7 |
|
|
8 |
|
from crab_util import * |
9 |
|
from crab_exceptions import * |
10 |
– |
from crab_logger import Logger |
10 |
|
|
11 |
|
from ProdCommon.CMSConfigTools.ConfigAPI.CfgInterface import CfgInterface |
12 |
|
from FWCore.ParameterSet.DictTypes import SortedKeysDict |
25 |
|
self.pset = pset |
26 |
|
#convert Pset |
27 |
|
from FWCore.ParameterSet.Config import include |
28 |
< |
common.logger.debug(3,"PsetManipulator::__init__: PSet file = "+self.pset) |
28 |
> |
common.logger.debug("PsetManipulator::__init__: PSet file = "+self.pset) |
29 |
|
# FUTURE: Can drop cfg mode for CMSSW < 2_1_x |
30 |
|
if self.pset.endswith('py'): |
31 |
|
handle = open(self.pset, 'r') |
96 |
|
if not self.cfg.data.outputModules: |
97 |
|
return None |
98 |
|
poolOutputModule = self.cfg.data.outputModules |
99 |
+ |
# FIXME: Still a "bug" here in that only one name is returned and the POM can be in any order |
100 |
|
for out in poolOutputModule: |
101 |
+ |
if poolOutputModule[out].type_() != "PoolOutputModule": |
102 |
+ |
continue |
103 |
|
return poolOutputModule[out].fileName.value() |
104 |
|
|
105 |
|
def getBadFilesSetting(self): |