Skip to content

Commit

Permalink
Adapt macro for ITS3 (AliceO2Group#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrosa committed Jan 20, 2023
1 parent bc495a2 commit ba30feb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions Detectors/Upgrades/IT3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# granted to it by virtue of its status as an Intergovernmental Organization
# or submit itself to any jurisdiction.

add_subdirectory(macros)
add_subdirectory(simulation)
add_subdirectory(base)
add_subdirectory(workflow)
Expand Down
23 changes: 22 additions & 1 deletion Detectors/Upgrades/IT3/macros/test/CheckSquasherITS3.C
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,28 @@ void CheckSquasherITS3(const uint chipId = 0, const uint startingROF = 0, const

for (unsigned int iR{0}; iR < nRofs; iR++) {
LOGP(info, "Processing rof {}", iR + startingROF);
hHitMapsVsFrame[iR] = new TH2D(Form("chip%i_rof%i", chipId, startingROF + iR), Form("chip %i rof %i; ; ; Counts", chipId, startingROF + iR), 1024, -0.5, 1023.5, 512, -0.5, 511.5);
switch(chipId/2) {
case 0:
{
hHitMapsVsFrame[iR] = new TH2D(Form("chip%i_rof%i", chipId, startingROF + iR), Form("chip %i rof %i; ; ; Counts", chipId, startingROF + iR), 13575, -0.5, 13574.5, 2828, -0.5, 2827.5);
break;
}
case 1:
{
hHitMapsVsFrame[iR] = new TH2D(Form("chip%i_rof%i", chipId, startingROF + iR), Form("chip %i rof %i; ; ; Counts", chipId, startingROF + iR), 13575, -0.5, 13574.5, 3770, -0.5, 3769.5);
break;
}
case 2:
{
hHitMapsVsFrame[iR] = new TH2D(Form("chip%i_rof%i", chipId, startingROF + iR), Form("chip %i rof %i; ; ; Counts", chipId, startingROF + iR), 13575, -0.5, 13574.5, 4713, -0.5, 4712.5);
break;
}
default:
{
hHitMapsVsFrame[iR] = new TH2D(Form("chip%i_rof%i", chipId, startingROF + iR), Form("chip %i rof %i; ; ; Counts", chipId, startingROF + iR), 1024, -0.5, 1023.5, 512, -0.5, 511.5);
break;
}
}

// work on data
const auto& rof = (*ITSrof)[startingROF + iR];
Expand Down

0 comments on commit ba30feb

Please sign in to comment.