From ba30feba5ec0934cf63a08fc39503cce8107b559 Mon Sep 17 00:00:00 2001 From: Fabrizio Date: Thu, 1 Dec 2022 17:35:34 +0100 Subject: [PATCH] Adapt macro for ITS3 (#12) --- Detectors/Upgrades/IT3/CMakeLists.txt | 1 + .../IT3/macros/test/CheckSquasherITS3.C | 23 ++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/Detectors/Upgrades/IT3/CMakeLists.txt b/Detectors/Upgrades/IT3/CMakeLists.txt index bfc8241c11b5f..0c91f53afb082 100644 --- a/Detectors/Upgrades/IT3/CMakeLists.txt +++ b/Detectors/Upgrades/IT3/CMakeLists.txt @@ -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) diff --git a/Detectors/Upgrades/IT3/macros/test/CheckSquasherITS3.C b/Detectors/Upgrades/IT3/macros/test/CheckSquasherITS3.C index b808c79018cfe..4867c8e906339 100644 --- a/Detectors/Upgrades/IT3/macros/test/CheckSquasherITS3.C +++ b/Detectors/Upgrades/IT3/macros/test/CheckSquasherITS3.C @@ -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];