Skip to content
Snippets Groups Projects
Commit 04e05787 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

ZDC_SimuDigitization: fixed clang warnings

1. Braces for the initialization of multi-dimensional arrays
2. Unused local variable
parent 96ff000c
No related branches found
No related tags found
No related merge requests found
......@@ -266,8 +266,8 @@ void ZDC_PileUpTool::fillContainer(const ZDC_SimFiberHit_Collection* ZDC_SimFibe
}
void ZDC_PileUpTool::addEmptyWaveforms(xAOD::ZdcModuleContainer *zdcModuleContainer, CLHEP::HepRandomEngine* rndEngine){
bool zdcFound[2][4] = {false};
bool rpdFound[2][16] = {false};
bool zdcFound[2][4] = {{false}};
bool rpdFound[2][16] = {{false}};
for(auto module : *zdcModuleContainer){
int side = (module->zdcSide() == -1) ? 0 : 1;
int mod = module->zdcModule();
......@@ -298,12 +298,10 @@ void ZDC_PileUpTool::addEmptyWaveforms(xAOD::ZdcModuleContainer *zdcModuleContai
TimedHitCollection<ZDC_SimFiberHit> ZDC_PileUpTool::doZDClightGuideCuts(const ZDC_SimFiberHit_Collection* hitCollection){
ZDC_SimFiberHit* newHits[2][4] = {nullptr};
ZDC_SimFiberHit* newHits[2][4] = {{nullptr}};
ZDC_SimFiberHit_Collection* newCollection = new ZDC_SimFiberHit_Collection("ZDC_SimFiberHit_Collection_Temp");
int count =0;
for(ZDC_SimFiberHit hit : *hitCollection){
count++;
Identifier id = hit.getID();
//Translate side from -1,1 to 0,1 to index ZDC hits
int side = (m_ZdcID->side( id ) < 0 ) ? 0 : 1;
......
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