Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion PWGJE/Core/emcalCrossTalkEmulation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ void EMCCrossTalk::addInducedEnergiesToNewCells()
}

// Avoid cells out of SM
if (ietai < 0 || ietai >= emcal::EMCAL_COLS || iphii < 0 || iphii >= emcal::EMCAL_ROWS) {
if (ietai < 0 || ietai >= NColumns[iSM] || iphii < 0 || iphii >= NRows[iSM]) {
continue;
}

Expand Down
3 changes: 3 additions & 0 deletions PWGJE/Core/emcalCrossTalkEmulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ static constexpr int FirstDCal23SM = 12; // index of the first 2/3 DCal SM
static constexpr int LastDCal23SM = 17; // index of the last 2/3 DCal SM
static constexpr float MinCellEnergy = 0.01f; // Minimum energy a new cell needs to be added

static constexpr int NColumns[NSM] = {48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 32, 32, 32, 32, 32, 32, 48, 48};
static constexpr int NRows[NSM] = {24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 8, 8, 24, 24, 24, 24, 24, 24, 8, 8};

// these labels are for later once labeledArrays work on hyperloop. Currently they sadly only allow fixed size not variable size.
// static const std::vector<std::string> labelsSM{"SM0/all", "SM1", "SM2", "SM3", "SM4", "SM5", "SM6", "SM7", "SM8", "SM9", "SM10", "SM11", "SM12", "SM13", "SM14", "SM15", "SM16", "SM17", "SM18", "SM19"};
// static const std::vector<std::string> labelsCells = {"Up&Down", "Up&Down x Left|Right", "Left|Right", "2Up&Down + 2Up&Down xLeft|Right"};
Expand Down
Loading