diff --git a/Calorimeter/CaloMonitoring/python/LArCellMonAlg.py b/Calorimeter/CaloMonitoring/python/LArCellMonAlg.py index 7473ec77d583faca03ab1b67b3f867d4655bcfe3..ffc01d00ab4a45d2f2a4140383197e7c394a0612 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"]