Fixing dead code and adjusting if statements according to value of pixBrlEc for barrel and endcap
pixBrlEc