Skip to content

Commit ace97b5

Browse files
committed
PP: Added warning message when chunk is skipped
1 parent 872fda7 commit ace97b5

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

DegenerateStopAnalysis/python/cmgPostProcessing/cmgPostProcessing_v2.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def getSamples(args):
237237
foundSample = True
238238
continue
239239
else:
240-
print "WARNING: Sample name is not consistant with the cmgComp name"
240+
print "WARNING: Sample name is not consistent with the cmgComp name"
241241
elif isinstance(sampleRequested, list):
242242
# list of components - add all components
243243
for comp in sampleRequested:
@@ -916,7 +916,10 @@ def getTreeFromChunk(c, skimCond, iSplit, nSplit):
916916

917917
if not c.has_key('file'):return
918918

919-
if not helpers.checkRootFile(c['file']): return # NOTE: checks whether the file must exists and is not (ROOT-)corrupted
919+
if not helpers.checkRootFile(c['file']): # NOTE: checks whether the file must exists and is not (ROOT-)corrupted
920+
print "!!! WARNING: Failed to read chunk %s located in %s. Skipping this chunk !!!"%(chunk['name'],chunk['file'])
921+
logger.info("!!! WARNING: Failed to read chunk %s located in %s. Skipping this chunk !!!"%(chunk['name'],chunk['file']))
922+
return
920923

921924
rf = ROOT.TFile.Open(c['file'])
922925

DegenerateStopAnalysis/python/cmgPostProcessing/signal_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#raise Exception("Cache file not found in cmgTuples")
4242
print "Cache file not found in cmgTuples"
4343
## one needs to make sure the proxy is availble at this stage
44-
from Workspace.DegenerateStopAnalysis.samples.cmgTuples.RunIISummer16MiniAODv2_ISR import getHeppyMap
44+
from Workspace.DegenerateStopAnalysis.samples.cmgTuples.RunIISummer16MiniAODv2_v10 import getHeppyMap
4545
heppySamples = getHeppyMap()
4646
#heppySamples = heppy_mapper(cmgTuples.allComponents, [], cache_file)
4747
if not heppySamples.heppy_sample_names:

HEPHYPythonTools/python/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
if os.environ['USER'] in ['mzarucki']:
2626
defaultPlotPath = "/afs/hephy.at/user/n/mzarucki/www/"
2727
saveDir = defaultPlotPath
28-
afsDataName = "mzarucki01"
28+
afsDataName = "mzarucki02"
2929
combineLocation = "/afs/hephy.at/work/m/mzarucki/CMSSW/CMSSW_7_4_12_patch4/src/"
3030
username = "mzarucki"
3131

0 commit comments

Comments
 (0)