From 83c22d3927ba5712d8791050006f9dd27f5473ce Mon Sep 17 00:00:00 2001 From: Peter Onyisi <ponyisi@utexas.edu> Date: Tue, 21 Jul 2020 21:04:21 +0200 Subject: [PATCH] Fix to work in cosmics --- Calorimeter/CaloMonitoring/python/LArCellMonAlg.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Calorimeter/CaloMonitoring/python/LArCellMonAlg.py b/Calorimeter/CaloMonitoring/python/LArCellMonAlg.py index 7473ec77d58..ffc01d00ab4 100644 --- a/Calorimeter/CaloMonitoring/python/LArCellMonAlg.py +++ b/Calorimeter/CaloMonitoring/python/LArCellMonAlg.py @@ -69,7 +69,7 @@ def LArCellMonConfig(inputFlags): algname=algname+'Cosmics' isCosmics = ( inputFlags.Beam.Type == 'cosmics' ) - LArCellMonConfigCore(helper, lArCellMonAlg,inputFlags, isCosmics, inputFlags.Input.isMC) + LArCellMonConfigCore(helper, lArCellMonAlg,inputFlags, isCosmics, inputFlags.Input.isMC, algname) acc=helper.result() @@ -85,10 +85,10 @@ def LArCellMonConfig(inputFlags): return cfg -def LArCellMonConfigCore(helper, alginstance, inputFlags, isCosmics=False, isMC=False): +def LArCellMonConfigCore(helper, algclass, inputFlags, isCosmics=False, isMC=False, algname='LArCellMonAlg'): - LArCellMonAlg = helper.addAlgorithm(alginstance, 'LArCellMonAlg') + LArCellMonAlg = helper.addAlgorithm(algclass, algname) if isCosmics: badChanMaskProblems=["deadReadout","deadPhys","short","sporadicBurstNoise","highNoiseHG","highNoiseMG","highNoiseLG"] -- GitLab