Skip to content
Snippets Groups Projects
Commit 83c22d39 authored by Peter Onyisi's avatar Peter Onyisi
Browse files

Fix to work in cosmics

parent 699b6c7c
No related branches found
No related tags found
No related merge requests found
......@@ -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"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment