Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add braces to if statement
  • Loading branch information
shahor02 authored Mar 1, 2021
commit a6c2fa4711af319d818988f8e403ca9a7764e704
5 changes: 3 additions & 2 deletions Detectors/EMCAL/base/src/Mapper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ int MappingHandler::getFEEForChannelInDDL(int ddl, int channelFEC, int branch)
{
int ddlInSupermodule = ddl % 2;
int fecID = ddlInSupermodule ? 20 : 0;
if (branch)
if (branch) {
fecID += 10;
}
fecID += channelFEC;
return fecID;
}
Expand All @@ -133,4 +134,4 @@ std::ostream& o2::emcal::operator<<(std::ostream& stream, const Mapper::ChannelI
{
stream << "Row " << static_cast<int>(channel.mRow) << ", Column " << static_cast<int>(channel.mColumn) << ", type " << o2::emcal::channelTypeToString(channel.mChannelType);
return stream;
}
}