Skip to content

Commit

Permalink
Merge pull request #18758 from davidlange6/92xClean
Browse files Browse the repository at this point in the history
92x cleanup of printouts
  • Loading branch information
davidlange6 committed May 17, 2017
2 parents 2bc65c7 + fa19da6 commit 99c4a15
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 24 deletions.
Expand Up @@ -11,8 +11,8 @@
InputLabel = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
)

import L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi
unpackGctDigis = L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi.caloStage1LegacyFormatDigis.clone(
import L1Trigger.L1TCalorimeter.caloStage1LegacyFormatDigis_cfi
unpackGctDigis = L1Trigger.L1TCalorimeter.caloStage1LegacyFormatDigis_cfi.caloStage1LegacyFormatDigis.clone(
InputCollection = cms.InputTag("unpackGctStage1"),
InputRlxTauCollection = cms.InputTag("unpackGctStage1:rlxTaus"),
InputIsoTauCollection = cms.InputTag("unpackGctStage1:isoTaus"),
Expand Down
2 changes: 1 addition & 1 deletion DQM/L1TMonitor/python/L1TEmulatorMonitor_cff.py
Expand Up @@ -63,7 +63,7 @@

# transfer stage1 format digis to legacy format digis

from L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi import *
from L1Trigger.L1TCalorimeter.caloStage1LegacyFormatDigis_cfi import *

############################################################

Expand Down
3 changes: 0 additions & 3 deletions L1Trigger/Configuration/python/L1TDigiToRaw_cff.py
Expand Up @@ -21,7 +21,6 @@
# Legacy Trigger:
#
if not (stage1L1Trigger.isChosen() or stage2L1Trigger.isChosen()):
sys.stderr.write("L1TDigiToRaw Sequence configured for Run1 (Legacy) trigger. \n")
# legacy L1 packages:
from EventFilter.CSCTFRawToDigi.csctfpacker_cfi import *
from EventFilter.DTTFRawToDigi.dttfpacker_cfi import *
Expand All @@ -42,7 +41,6 @@
# Stage-1 Trigger
#
if stage1L1Trigger.isChosen() and not stage2L1Trigger.isChosen():
sys.stderr.write("L1TDigiToRaw Sequence configured for Stage-1 (2015) trigger. \n")
# legacy L1 packers, still in use for 2015:
from EventFilter.CSCTFRawToDigi.csctfpacker_cfi import *
from EventFilter.DTTFRawToDigi.dttfpacker_cfi import *
Expand All @@ -67,7 +65,6 @@
# Stage-2 Trigger
#
if stage2L1Trigger.isChosen():
sys.stderr.write("L1TDigiToRaw Sequence configured for Stage-2 (2016) trigger. \n")
from EventFilter.L1TRawToDigi.caloStage2Raw_cfi import *
from EventFilter.L1TRawToDigi.gmtStage2Raw_cfi import *
from EventFilter.L1TRawToDigi.gtStage2Raw_cfi import *
Expand Down
3 changes: 0 additions & 3 deletions L1Trigger/Configuration/python/L1TRawToDigi_cff.py
Expand Up @@ -71,23 +71,20 @@ def unpack_stage2():
from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger
from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
if not (stage1L1Trigger.isChosen() or stage2L1Trigger.isChosen()):
sys.stderr.write("L1TRawToDigi Sequence configured for Run1 (Legacy) trigger. \n")
unpack_legacy()
L1TRawToDigi = cms.Sequence(L1TRawToDigi_Legacy);

#
# Stage-1 Trigger
#
if stage1L1Trigger.isChosen() and not stage2L1Trigger.isChosen():
sys.stderr.write("L1TRawToDigi Sequence configured for Stage-1 (2015) trigger. \n")
unpack_stage1()
L1TRawToDigi = cms.Sequence(L1TRawToDigi_Stage1)

#
# Stage-2 Trigger: fow now, unpack Stage 1 and Stage 2 (in case both available)
#
if stage2L1Trigger.isChosen():
sys.stderr.write("L1TRawToDigi Sequence configured for Stage-2 (2016) trigger. \n")
unpack_stage1()
unpack_stage2()
L1TRawToDigi = cms.Sequence(L1TRawToDigi_Stage1+L1TRawToDigi_Stage2)
Expand Down
4 changes: 1 addition & 3 deletions L1Trigger/L1TCalorimeter/python/hackConditions_cff.py
Expand Up @@ -24,7 +24,6 @@
# Stage-1 Trigger
#
if stage1L1Trigger.isChosen() and not stage2L1Trigger.isChosen():
sys.stderr.write("L1TCalorimeter Conditions configured for Stage-1 (2015) trigger. \n")
# Switch between HI and PP calo configuration:
if (run2_HI_specific.isChosen()):
from L1Trigger.L1TCalorimeter.caloConfigStage1HI_cfi import *
Expand All @@ -39,11 +38,10 @@
#
if stage2L1Trigger.isChosen():
if pA_2016.isChosen():
sys.stderr.write("L1TCalorimeter Conditions configured for Stage-2 (2016 pA) trigger. \n")
from L1Trigger.L1TCalorimeter.caloStage2Params_2016_v3_3_1_HI_cfi import *
else:
sys.stderr.write("L1TCalorimeter Conditions configured for Stage-2 (2016) trigger. \n")
from L1Trigger.L1TCalorimeter.caloStage2Params_2017_v1_5_cfi import *


# What about CaloConfig? Related: How will we switch PP/HH?
#
3 changes: 0 additions & 3 deletions L1Trigger/L1TCalorimeter/python/simDigis_cff.py
Expand Up @@ -7,7 +7,6 @@
from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger
from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
if not (stage1L1Trigger.isChosen() or stage2L1Trigger.isChosen()):
sys.stderr.write("L1TCalorimeter Sequence configured for Run1 (Legacy) trigger. \n")
# - RCT (Regional Calorimeter Trigger) emulator
import L1Trigger.RegionalCaloTrigger.rctDigis_cfi
simRctDigis = L1Trigger.RegionalCaloTrigger.rctDigis_cfi.rctDigis.clone()
Expand All @@ -23,7 +22,6 @@
# Stage-1 Trigger
#
if stage1L1Trigger.isChosen() and not stage2L1Trigger.isChosen():
sys.stderr.write("L1TCalorimeter Sequence configured for Stage-1 (2015) trigger. \n")
#
# - RCT (Regional Calorimeter Trigger) emulator
#
Expand All @@ -43,7 +41,6 @@
# Stage-2 Trigger
#
if stage2L1Trigger.isChosen():
sys.stderr.write("L1TCalorimeter Sequence configured for Stage-2 (2016) trigger. \n")
# select one of the following two options:
# - layer1 from L1Trigger/L1TCalorimeter package
#from L1Trigger.L1TCalorimeter.simCaloStage2Layer1Digis_cfi import simCaloStage2Layer1Digis
Expand Down
3 changes: 2 additions & 1 deletion L1Trigger/L1TGlobal/python/StableParameters_cff.py
Expand Up @@ -5,7 +5,8 @@
import sys
import FWCore.ParameterSet.Config as cms

print >> sys.stderr, 'L1Trigger/L1TGlobal/python/StableParameters_cff.py is deprecated, please use GlobalParameters_cff.py instead.'
#seems this is not the case
#print >> sys.stderr, 'L1Trigger/L1TGlobal/python/StableParameters_cff.py is deprecated, please use GlobalParameters_cff.py instead.'

StableParametersRcdSource = cms.ESSource("EmptyESSource",
recordName = cms.string('L1TGlobalParametersRcd'),
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TGlobal/python/hackConditions_cff.py
Expand Up @@ -30,7 +30,6 @@
# Stage-2 Trigger
#
if stage2L1Trigger.isChosen():
sys.stderr.write("L1TGlobal Conditions configured for Stage-2 (2016) trigger. \n")
from L1Trigger.L1TGlobal.StableParameters_cff import *
# from L1Trigger.L1TGlobal.GlobalParameters_cff import *
from L1Trigger.L1TGlobal.PrescalesVetos_cff import *
Expand Down
2 changes: 0 additions & 2 deletions L1Trigger/L1TGlobal/python/simDigis_cff.py
Expand Up @@ -10,7 +10,6 @@
#
from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
if not (stage2L1Trigger.isChosen()):
sys.stderr.write("L1TGlobal Sequence configured for Legacy trigger (Run1 and Run 2015). \n")
#
# - Global Trigger emulator
#
Expand All @@ -33,6 +32,5 @@
#
# - Global Trigger emulator
#
sys.stderr.write("L1TGlobal Sequence configured for Stage-2 (2016) trigger. \n")
from L1Trigger.L1TGlobal.simGtStage2Digis_cfi import *
SimL1TGlobal = cms.Sequence(simGtStage2Digis)
1 change: 0 additions & 1 deletion L1Trigger/L1TMuon/python/hackConditions_cff.py
Expand Up @@ -25,7 +25,6 @@
# Stage-2 Trigger
#
if stage2L1Trigger.isChosen():
sys.stderr.write("L1TMuon Conditions configured for Stage-2 (2016) trigger. \n")
from L1Trigger.L1TMuonBarrel.fakeBmtfParams_cff import *
from L1Trigger.L1TMuonOverlap.fakeOmtfParams_cff import *
from L1Trigger.L1TMuonEndCap.fakeEmtfParams_cff import *
Expand Down
2 changes: 0 additions & 2 deletions L1Trigger/L1TMuon/python/simDigis_cff.py
Expand Up @@ -26,7 +26,6 @@
#
from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
if not (stage2L1Trigger.isChosen()):
sys.stderr.write("L1TMuon Sequence configured for Legacy trigger (Run1 and Run 2015). \n")
#
# - CSC Track Finder emulator
#
Expand Down Expand Up @@ -69,7 +68,6 @@
# Stage-2 Trigger
#
if stage2L1Trigger.isChosen():
sys.stderr.write("L1TMuon Sequence configured for Stage-2 (2016) trigger. \n")
from L1Trigger.L1TMuonBarrel.simTwinMuxDigis_cfi import *
from L1Trigger.L1TMuonBarrel.simBmtfDigis_cfi import *
from L1Trigger.L1TMuonEndCap.simEmtfDigis_cfi import *
Expand Down
1 change: 0 additions & 1 deletion PhysicsTools/PatAlgos/python/tools/jetTools.py
Expand Up @@ -549,7 +549,6 @@ def setupBTagging(process, jetSource, pfCandidates, explicitJTA, pvSource, svSou
if hasattr(btag,btagDiscr):
newDiscr = btagPrefix+btagDiscr+labelName+postfix #new discriminator name
if hasattr(process, newDiscr):
print 'skipping %s as it has already been loaded in the process' % newDiscr #check that we did not create this producer before, if so skip
pass
elif hasattr(getattr(btag, btagDiscr), 'tagInfos'):
addToProcessAndTask(
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/SelectorUtils/python/tools/vid_id_tools.py
Expand Up @@ -177,7 +177,7 @@ def switchOnVIDPhotonIdProducer(process, dataFormat, task=None):
else:
raise Exception('InvalidVIDDataFormat', 'The requested data format is different from AOD or MiniAOD')
#
sys.stderr.write('Added \'egmPhotonIDs\' to process definition (%s format)!\n' % dataFormatString)
# sys.stderr.write('Added \'egmPhotonIDs\' to process definition (%s format)!\n' % dataFormatString)

def setupVIDPhotonSelection(process,cutflow,patProducer=None,addUserData=True,task=None):
if not hasattr(process,'egmPhotonIDs'):
Expand Down

0 comments on commit 99c4a15

Please sign in to comment.