From 6419fbf46a77d4a1e735336b2f0912cb2e86a8ae Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Tue, 6 Feb 2024 08:42:41 -0600 Subject: [PATCH 01/17] Add channel mapping version of module and relevant config --- sbndcode/CRT/CRTEventDisplay/CMakeLists.txt | 5 ++ .../CRTChannelMappingEventDisplay_module.cc | 90 +++++++++++++++++++ .../CRTEventDisplay/crteventdisplay_sbnd.fcl | 14 ++- .../crteventdisplayalg_sbnd.fcl | 24 +++++ .../run_crteventdisplay_channel_mapping.fcl | 29 ++++++ 5 files changed, 158 insertions(+), 4 deletions(-) create mode 100644 sbndcode/CRT/CRTEventDisplay/CRTChannelMappingEventDisplay_module.cc create mode 100644 sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping.fcl diff --git a/sbndcode/CRT/CRTEventDisplay/CMakeLists.txt b/sbndcode/CRT/CRTEventDisplay/CMakeLists.txt index 0a8aa82af..c245b2729 100644 --- a/sbndcode/CRT/CRTEventDisplay/CMakeLists.txt +++ b/sbndcode/CRT/CRTEventDisplay/CMakeLists.txt @@ -13,4 +13,9 @@ simple_plugin( sbndcode_CRT_CRTEventDisplay ) +simple_plugin( + CRTChannelMappingEventDisplay module + sbndcode_CRT_CRTEventDisplay +) + install_fhicl() diff --git a/sbndcode/CRT/CRTEventDisplay/CRTChannelMappingEventDisplay_module.cc b/sbndcode/CRT/CRTEventDisplay/CRTChannelMappingEventDisplay_module.cc new file mode 100644 index 000000000..99c4c1f6d --- /dev/null +++ b/sbndcode/CRT/CRTEventDisplay/CRTChannelMappingEventDisplay_module.cc @@ -0,0 +1,90 @@ +//////////////////////////////////////////////////////////////////////// +// Class: CRTChannelMappingEventDisplay +// Plugin Type: analyzer (Unknown Unknown) +// File: CRTChannelMappingEventDisplay_module.cc +// +// Generated at Thu Oct 6 09:32:09 2022 by Henry Lay using cetskelgen +// from version . +//////////////////////////////////////////////////////////////////////// + +#include "art/Framework/Core/EDAnalyzer.h" +#include "art/Framework/Core/ModuleMacros.h" +#include "art/Framework/Principal/Event.h" +#include "art/Framework/Principal/Handle.h" +#include "art/Framework/Principal/Run.h" +#include "art/Framework/Principal/SubRun.h" +#include "canvas/Utilities/InputTag.h" +#include "fhiclcpp/ParameterSet.h" +#include "messagefacility/MessageLogger/MessageLogger.h" + +#include "lardata/DetectorInfoServices/DetectorClocksService.h" +#include "sbndcode/CRT/CRTEventDisplay/CRTEventDisplayAlg.h" + +#include "TSystem.h" + +namespace sbnd::crt { + class CRTChannelMappingEventDisplay; +} + +class sbnd::crt::CRTChannelMappingEventDisplay : public art::EDAnalyzer { +public: + + struct Config { + using Name = fhicl::Name; + using Comment = fhicl::Comment; + + fhicl::Table EventDisplayConfig { + Name("EventDisplayConfig"), + }; + + fhicl::Atom SaveDir { + Name("SaveDir"), + }; + }; + + using Parameters = art::EDAnalyzer::Table; + + explicit CRTChannelMappingEventDisplay(Parameters const &config); + + CRTChannelMappingEventDisplay(CRTChannelMappingEventDisplay const&) = delete; + CRTChannelMappingEventDisplay(CRTChannelMappingEventDisplay&&) = delete; + CRTChannelMappingEventDisplay& operator=(CRTChannelMappingEventDisplay const&) = delete; + CRTChannelMappingEventDisplay& operator=(CRTChannelMappingEventDisplay&&) = delete; + + void analyze(art::Event const& e) override; + +private: + + CRTEventDisplayAlg fCRTEventDisplayAlg; + CRTGeoAlg fCRTGeoAlg; + std::string fSaveDir; + std::vector fChosenTaggers; +}; + + +sbnd::crt::CRTChannelMappingEventDisplay::CRTChannelMappingEventDisplay(Parameters const& config) + : EDAnalyzer{config} + , fCRTEventDisplayAlg(config().EventDisplayConfig()) + , fCRTGeoAlg(config().EventDisplayConfig().GeoAlgConfig()) + , fSaveDir(config().SaveDir()) + , fChosenTaggers(config().EventDisplayConfig().ChosenTaggers()) + { + gSystem->Exec(Form("mkdir -p %s", fSaveDir.c_str())); + } + +void sbnd::crt::CRTChannelMappingEventDisplay::analyze(art::Event const& e) +{ + auto const clockData = art::ServiceHandle()->DataFor(e); + + for(auto const& [ name, module ] : fCRTGeoAlg.GetModules()) + { + if(std::find(fChosenTaggers.begin(), fChosenTaggers.end(), CRTCommonUtils::GetTaggerEnum(module.taggerName)) == fChosenTaggers.end()) + continue; + + fCRTEventDisplayAlg.SetHighlightedModules({module.adID}); + + fCRTEventDisplayAlg.Draw(clockData, e, Form("%s/%s", fSaveDir.c_str(), name.c_str())); + } +} + +DEFINE_ART_MODULE(sbnd::crt::CRTChannelMappingEventDisplay) diff --git a/sbndcode/CRT/CRTEventDisplay/crteventdisplay_sbnd.fcl b/sbndcode/CRT/CRTEventDisplay/crteventdisplay_sbnd.fcl index 03f656d3b..a64ede384 100644 --- a/sbndcode/CRT/CRTEventDisplay/crteventdisplay_sbnd.fcl +++ b/sbndcode/CRT/CRTEventDisplay/crteventdisplay_sbnd.fcl @@ -4,14 +4,20 @@ BEGIN_PROLOG crteventdisplay_sbnd: { - EventDisplayConfig: @local::crteventdisplayalg_sbnd - module_type: "CRTEventDisplay" + EventDisplayConfig: @local::crteventdisplayalg_sbnd + module_type: "CRTEventDisplay" } crteventdisplay_sbnd_data: { - EventDisplayConfig: @local::crteventdisplayalg_sbnd_data - module_type: "CRTEventDisplay" + EventDisplayConfig: @local::crteventdisplayalg_sbnd_data + module_type: "CRTEventDisplay" +} + +crteventdisplay_sbnd_channel_mapping: +{ + EventDisplayConfig: @local::crteventdisplayalg_sbnd_channel_mapping + module_type: "CRTChannelMappingEventDisplay" } END_PROLOG diff --git a/sbndcode/CRT/CRTEventDisplay/crteventdisplayalg_sbnd.fcl b/sbndcode/CRT/CRTEventDisplay/crteventdisplayalg_sbnd.fcl index a2bc90e24..1a5f77633 100644 --- a/sbndcode/CRT/CRTEventDisplay/crteventdisplayalg_sbnd.fcl +++ b/sbndcode/CRT/CRTEventDisplay/crteventdisplayalg_sbnd.fcl @@ -97,4 +97,28 @@ crteventdisplayalg_sbnd_data.UseTs0: true crteventdisplayalg_sbnd_data.MinTime: -1.5e6 crteventdisplayalg_sbnd_data.MaxTime: 1.5e6 +crteventdisplayalg_sbnd_channel_mapping: @local::crteventdisplayalg_sbnd + +crteventdisplayalg_sbnd_channel_mapping.DataMode: true +crteventdisplayalg_sbnd_channel_mapping.SaveRoot: false +crteventdisplayalg_sbnd_channel_mapping.SaveViews: true + +crteventdisplayalg_sbnd_channel_mapping.ChoseTaggers: true +crteventdisplayalg_sbnd_channel_mapping.HighlightModules: true + +crteventdisplayalg_sbnd_channel_mapping.DrawTaggers: true +crteventdisplayalg_sbnd_channel_mapping.DrawModules: true +crteventdisplayalg_sbnd_channel_mapping.DrawFEBs: true +crteventdisplayalg_sbnd_channel_mapping.DrawFEBEnds: true +crteventdisplayalg_sbnd_channel_mapping.DrawStrips: false +crteventdisplayalg_sbnd_channel_mapping.DrawTPC: true +crteventdisplayalg_sbnd_channel_mapping.DrawTrueTracks: false +crteventdisplayalg_sbnd_channel_mapping.DrawSimDeposits: false +crteventdisplayalg_sbnd_channel_mapping.DrawStripHits: false +crteventdisplayalg_sbnd_channel_mapping.DrawClusters: false +crteventdisplayalg_sbnd_channel_mapping.DrawSpacePoints: false +crteventdisplayalg_sbnd_channel_mapping.DrawTracks: false + +crteventdisplayalg_sbnd_channel_mapping.Print: false + END_PROLOG diff --git a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping.fcl b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping.fcl new file mode 100644 index 000000000..03ab48cad --- /dev/null +++ b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping.fcl @@ -0,0 +1,29 @@ +#include "services_sbnd.fcl" +#include "crt_services_sbnd.fcl" +#include "crteventdisplay_sbnd.fcl" + +process_name: CRTEventDisplay + +services: +{ + @table::sbnd_services + @table::crt_services_data_sbnd +} + +source: +{ + module_type: RootInput + maxEvents: -1 +} + +physics: +{ + analyzers: + { + crtevd: @local::crteventdisplay_sbnd_channel_mapping + } + + ana: [ crtevd ] + + end_paths: [ ana ] +} From bb8dc73da55bcc57d140f208fa4a3d7eb906fd31 Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Tue, 6 Feb 2024 08:45:26 -0600 Subject: [PATCH 02/17] Add bash script for making pdf --- sbndcode/CRT/CRTEventDisplay/build_tex.sh | 70 +++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 sbndcode/CRT/CRTEventDisplay/build_tex.sh diff --git a/sbndcode/CRT/CRTEventDisplay/build_tex.sh b/sbndcode/CRT/CRTEventDisplay/build_tex.sh new file mode 100644 index 000000000..77ff9a4e9 --- /dev/null +++ b/sbndcode/CRT/CRTEventDisplay/build_tex.sh @@ -0,0 +1,70 @@ +echo "\documentclass{article} +\usepackage[a4paper, margin=3cm]{geometry} +\usepackage{graphicx} +\usepackage{pgffor} +\usepackage[hidelinks]{hyperref} + +\title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode v09\_82\_02\_01} \textit{\&} \texttt{sbnd\_v02\_00.gdml}} +\author{Henry Lay \\\\ \small h.lay@lancaster.ac.uk}" > crt_channel_mapping_evds.tex + +walls=(bottom south north west east toplow tophigh) +wallnames=(Bottom South North West East "Top Low" "Top High") + +for wall in "${walls[@]}" +do + list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/${wall}_wall/*_front.pdf) + echo -n "\newcommand*{\\"$wall"ids}{" >> crt_channel_mapping_evds.tex + + for item in ${list} + do + name=$(echo $item | cut -d '/' -f 9) + number=$(echo $name | cut -d '_' -f 2) + echo -n $number, >> crt_channel_mapping_evds.tex + done + + sed -i '$ s/.$//' crt_channel_mapping_evds.tex + echo "}" >> crt_channel_mapping_evds.tex +done + +echo "\begin{document} + +\maketitle + +\centering +\vspace{2em} + +\includegraphics[width=.6\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/luphysics_logo.png} + +\vspace{2em} + +\includegraphics[width=.5\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/sbnd_pride_transparent.png} +\flushleft +\newpage +\tableofcontents +\newpage +\section{Explanation} +This document contains a series of illustrations created using the \texttt{CRTEventDisplay} tool originally written by Tom Brooks \& heavily developed by myself. It shows the position of the various CRT modules according to the gdml file used in SBND simulation and reconstruction. The document is split into sections for the different tagger walls. For each module three illustrations are provided: front, top and side views. The axes show detector coordinates (X, Y and Z) and \`\`building coordinates\" (South, West and Up). The relevant module is shown in green. The TPCs are shown in grey in the centre for reference. The black outer is the full tagger wall. The thin grey are other modules in the wall. The red is the FEB position and the blue corresponds to the end of the FEB with channel 0 (the ethernet ports). +" >> crt_channel_mapping_evds.tex + +for i in "${!walls[@]}" +do + echo "\newpage +\section{${wallnames[i]} Wall} +\begingroup +\foreach \x in \\${walls[i]}ids +{ + \newpage + \subsection{volCRTModule\x\_\x} + \begin{center} + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} + \end{center} +} +\endgroup" >> crt_channel_mapping_evds.tex +done + +echo "\end{document}" >> crt_channel_mapping_evds.tex + +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/tex_work crt_channel_mapping_evds.tex From 50586c9641a0faface2968055adfca6bc4485702 Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Tue, 6 Feb 2024 08:53:12 -0600 Subject: [PATCH 03/17] Z points North not South, duh --- sbndcode/CRT/CRTEventDisplay/build_tex.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbndcode/CRT/CRTEventDisplay/build_tex.sh b/sbndcode/CRT/CRTEventDisplay/build_tex.sh index 77ff9a4e9..a82faa13f 100644 --- a/sbndcode/CRT/CRTEventDisplay/build_tex.sh +++ b/sbndcode/CRT/CRTEventDisplay/build_tex.sh @@ -43,7 +43,7 @@ echo "\begin{document} \tableofcontents \newpage \section{Explanation} -This document contains a series of illustrations created using the \texttt{CRTEventDisplay} tool originally written by Tom Brooks \& heavily developed by myself. It shows the position of the various CRT modules according to the gdml file used in SBND simulation and reconstruction. The document is split into sections for the different tagger walls. For each module three illustrations are provided: front, top and side views. The axes show detector coordinates (X, Y and Z) and \`\`building coordinates\" (South, West and Up). The relevant module is shown in green. The TPCs are shown in grey in the centre for reference. The black outer is the full tagger wall. The thin grey are other modules in the wall. The red is the FEB position and the blue corresponds to the end of the FEB with channel 0 (the ethernet ports). +This document contains a series of illustrations created using the \texttt{CRTEventDisplay} tool originally written by Tom Brooks \& heavily developed by myself. It shows the position of the various CRT modules according to the gdml file used in SBND simulation and reconstruction. The document is split into sections for the different tagger walls. For each module three illustrations are provided: front, top and side views. The axes show detector coordinates (X, Y and Z) and \`\`building coordinates\" (North, West and Up). The relevant module is shown in green. The TPCs are shown in grey in the centre for reference. The black outer is the full tagger wall. The thin grey are other modules in the wall. The red is the FEB position and the blue corresponds to the end of the FEB with channel 0 (the ethernet ports). " >> crt_channel_mapping_evds.tex for i in "${!walls[@]}" From 184da01079e3bc8542a4a029f8654667d740e5a4 Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Mon, 24 Jun 2024 11:09:03 -0500 Subject: [PATCH 04/17] Update channel map evds to test David's updates --- sbndcode/CRT/CRTEventDisplay/build_tex.sh | 24 ++++----- ...un_crteventdisplay_channel_mapping_all.fcl | 53 +++++++++++++++++++ 2 files changed, 65 insertions(+), 12 deletions(-) create mode 100644 sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl diff --git a/sbndcode/CRT/CRTEventDisplay/build_tex.sh b/sbndcode/CRT/CRTEventDisplay/build_tex.sh index a82faa13f..1c3f2db41 100644 --- a/sbndcode/CRT/CRTEventDisplay/build_tex.sh +++ b/sbndcode/CRT/CRTEventDisplay/build_tex.sh @@ -4,7 +4,7 @@ echo "\documentclass{article} \usepackage{pgffor} \usepackage[hidelinks]{hyperref} -\title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode v09\_82\_02\_01} \textit{\&} \texttt{sbnd\_v02\_00.gdml}} +\title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode v09\_90\_00} \textit{\&} \texttt{sbnd\_v02\_01.gdml}} \author{Henry Lay \\\\ \small h.lay@lancaster.ac.uk}" > crt_channel_mapping_evds.tex walls=(bottom south north west east toplow tophigh) @@ -12,14 +12,14 @@ wallnames=(Bottom South North West East "Top Low" "Top High") for wall in "${walls[@]}" do - list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/${wall}_wall/*_front.pdf) + list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/${wall}_wall/*_front.pdf) echo -n "\newcommand*{\\"$wall"ids}{" >> crt_channel_mapping_evds.tex for item in ${list} do - name=$(echo $item | cut -d '/' -f 9) - number=$(echo $name | cut -d '_' -f 2) - echo -n $number, >> crt_channel_mapping_evds.tex + name=$(echo $item | cut -d '/' -f 10) + number=$(echo $name | cut -d '_' -f 2) + echo -n $number, >> crt_channel_mapping_evds.tex done sed -i '$ s/.$//' crt_channel_mapping_evds.tex @@ -33,11 +33,11 @@ echo "\begin{document} \centering \vspace{2em} -\includegraphics[width=.6\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/luphysics_logo.png} +\includegraphics[width=.6\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/luphysics_logo.png} \vspace{2em} -\includegraphics[width=.5\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/sbnd_pride_transparent.png} +\includegraphics[width=.5\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/sbnd_pride_transparent.png} \flushleft \newpage \tableofcontents @@ -56,9 +56,9 @@ do \newpage \subsection{volCRTModule\x\_\x} \begin{center} - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} \end{center} } \endgroup" >> crt_channel_mapping_evds.tex @@ -66,5 +66,5 @@ done echo "\end{document}" >> crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/tex_work crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/tex_work crt_channel_mapping_evds.tex diff --git a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl new file mode 100644 index 000000000..ec5d3b264 --- /dev/null +++ b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl @@ -0,0 +1,53 @@ +#include "crt_channel_map_service.fcl" +#include "crt_calib_service.fcl" +#include "run_crteventdisplay_channel_mapping.fcl" + +process_name: CRTEventDisplay + +services: +{ + @table::sbnd_services + ParticleInventoryService: @local::standard_particleinventoryservice + CRTChannelMapService: @local::crt_channel_map_standard + CRTCalibService: @local::crt_calib_service +} + +source: +{ + module_type: RootInput + maxEvents: -1 + +} + +physics: +{ + analyzers: + { + crtevdbot: @local::crteventdisplay_sbnd_channel_mapping + crtevdsou: @local::crteventdisplay_sbnd_channel_mapping + crtevdnor: @local::crteventdisplay_sbnd_channel_mapping + crtevdwes: @local::crteventdisplay_sbnd_channel_mapping + crtevdeas: @local::crteventdisplay_sbnd_channel_mapping + crtevdtpl: @local::crteventdisplay_sbnd_channel_mapping + crtevdtph: @local::crteventdisplay_sbnd_channel_mapping + } + + ana: [ crtevdbot, crtevdsou, crtevdnor, crtevdwes, crtevdeas, crtevdtpl, crtevdtph ] + + end_paths: [ ana ] +} + +physics.analyzers.crtevdbot.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/bottom_wall" +physics.analyzers.crtevdbot.EventDisplayConfig.ChosenTaggers: [ 0 ] +physics.analyzers.crtevdsou.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/south_wall" +physics.analyzers.crtevdsou.EventDisplayConfig.ChosenTaggers: [ 1 ] +physics.analyzers.crtevdnor.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/north_wall" +physics.analyzers.crtevdnor.EventDisplayConfig.ChosenTaggers: [ 2 ] +physics.analyzers.crtevdwes.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/west_wall" +physics.analyzers.crtevdwes.EventDisplayConfig.ChosenTaggers: [ 3 ] +physics.analyzers.crtevdeas.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/east_wall" +physics.analyzers.crtevdeas.EventDisplayConfig.ChosenTaggers: [ 4 ] +physics.analyzers.crtevdtpl.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/toplow_wall" +physics.analyzers.crtevdtpl.EventDisplayConfig.ChosenTaggers: [ 5 ] +physics.analyzers.crtevdtph.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/tophigh_wall" +physics.analyzers.crtevdtph.EventDisplayConfig.ChosenTaggers: [ 6 ] From f97696f3f24dfcdf50c2598aee82d0daf330f46e Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Sun, 25 Aug 2024 18:03:40 -0500 Subject: [PATCH 05/17] New CRT gdml channel mapping evds --- sbndcode/CRT/CRTEventDisplay/build_tex.sh | 18 +++++++++--------- ...run_crteventdisplay_channel_mapping_all.fcl | 14 +++++++------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/sbndcode/CRT/CRTEventDisplay/build_tex.sh b/sbndcode/CRT/CRTEventDisplay/build_tex.sh index 1c3f2db41..fdaef5ded 100644 --- a/sbndcode/CRT/CRTEventDisplay/build_tex.sh +++ b/sbndcode/CRT/CRTEventDisplay/build_tex.sh @@ -4,7 +4,7 @@ echo "\documentclass{article} \usepackage{pgffor} \usepackage[hidelinks]{hyperref} -\title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode v09\_90\_00} \textit{\&} \texttt{sbnd\_v02\_01.gdml}} +\title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode v09\_90\_00} \textit{\&} \texttt{sbnd\_v02\_02.gdml}} \author{Henry Lay \\\\ \small h.lay@lancaster.ac.uk}" > crt_channel_mapping_evds.tex walls=(bottom south north west east toplow tophigh) @@ -12,7 +12,7 @@ wallnames=(Bottom South North West East "Top Low" "Top High") for wall in "${walls[@]}" do - list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/${wall}_wall/*_front.pdf) + list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/${wall}_wall/*_front.pdf) echo -n "\newcommand*{\\"$wall"ids}{" >> crt_channel_mapping_evds.tex for item in ${list} @@ -33,11 +33,11 @@ echo "\begin{document} \centering \vspace{2em} -\includegraphics[width=.6\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/luphysics_logo.png} +\includegraphics[width=.6\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/luphysics_logo.png} \vspace{2em} -\includegraphics[width=.5\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/sbnd_pride_transparent.png} +\includegraphics[width=.5\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/sbnd_pride_transparent.png} \flushleft \newpage \tableofcontents @@ -56,9 +56,9 @@ do \newpage \subsection{volCRTModule\x\_\x} \begin{center} - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} \end{center} } \endgroup" >> crt_channel_mapping_evds.tex @@ -66,5 +66,5 @@ done echo "\end{document}" >> crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/tex_work crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/tex_work crt_channel_mapping_evds.tex diff --git a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl index ec5d3b264..719321a2b 100644 --- a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl +++ b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl @@ -37,17 +37,17 @@ physics: end_paths: [ ana ] } -physics.analyzers.crtevdbot.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/bottom_wall" +physics.analyzers.crtevdbot.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/bottom_wall" physics.analyzers.crtevdbot.EventDisplayConfig.ChosenTaggers: [ 0 ] -physics.analyzers.crtevdsou.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/south_wall" +physics.analyzers.crtevdsou.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/south_wall" physics.analyzers.crtevdsou.EventDisplayConfig.ChosenTaggers: [ 1 ] -physics.analyzers.crtevdnor.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/north_wall" +physics.analyzers.crtevdnor.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/north_wall" physics.analyzers.crtevdnor.EventDisplayConfig.ChosenTaggers: [ 2 ] -physics.analyzers.crtevdwes.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/west_wall" +physics.analyzers.crtevdwes.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/west_wall" physics.analyzers.crtevdwes.EventDisplayConfig.ChosenTaggers: [ 3 ] -physics.analyzers.crtevdeas.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/east_wall" +physics.analyzers.crtevdeas.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/east_wall" physics.analyzers.crtevdeas.EventDisplayConfig.ChosenTaggers: [ 4 ] -physics.analyzers.crtevdtpl.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/toplow_wall" +physics.analyzers.crtevdtpl.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/toplow_wall" physics.analyzers.crtevdtpl.EventDisplayConfig.ChosenTaggers: [ 5 ] -physics.analyzers.crtevdtph.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/june2024/tophigh_wall" +physics.analyzers.crtevdtph.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/tophigh_wall" physics.analyzers.crtevdtph.EventDisplayConfig.ChosenTaggers: [ 6 ] From 27d0e16b801331255df5cdb70543cdc7021897cd Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Sat, 28 Sep 2024 06:36:48 -0500 Subject: [PATCH 06/17] Changes to channel map evd producer --- sbndcode/CRT/CRTEventDisplay/build_tex.sh | 21 +++++++++---------- ...un_crteventdisplay_channel_mapping_all.fcl | 18 +++++++++------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/sbndcode/CRT/CRTEventDisplay/build_tex.sh b/sbndcode/CRT/CRTEventDisplay/build_tex.sh index fdaef5ded..ff75ab234 100644 --- a/sbndcode/CRT/CRTEventDisplay/build_tex.sh +++ b/sbndcode/CRT/CRTEventDisplay/build_tex.sh @@ -4,15 +4,15 @@ echo "\documentclass{article} \usepackage{pgffor} \usepackage[hidelinks]{hyperref} -\title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode v09\_90\_00} \textit{\&} \texttt{sbnd\_v02\_02.gdml}} -\author{Henry Lay \\\\ \small h.lay@lancaster.ac.uk}" > crt_channel_mapping_evds.tex +\title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode v09\_91\_02\_02} \textit{\&} \texttt{sbnd\_v02\_03.gdml}} +\author{Henry Lay \\\\ \small h.lay@sheffield.ac.uk}" > crt_channel_mapping_evds.tex walls=(bottom south north west east toplow tophigh) wallnames=(Bottom South North West East "Top Low" "Top High") for wall in "${walls[@]}" do - list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/${wall}_wall/*_front.pdf) + list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/${wall}_wall/*_front.pdf) echo -n "\newcommand*{\\"$wall"ids}{" >> crt_channel_mapping_evds.tex for item in ${list} @@ -33,11 +33,10 @@ echo "\begin{document} \centering \vspace{2em} -\includegraphics[width=.6\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/luphysics_logo.png} - +\includegraphics[width=.6\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/UOSLogo_Primary_Violet_RGB.png} \vspace{2em} -\includegraphics[width=.5\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/sbnd_pride_transparent.png} +\includegraphics[width=.5\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/sbnd_pride_transparent.png} \flushleft \newpage \tableofcontents @@ -56,9 +55,9 @@ do \newpage \subsection{volCRTModule\x\_\x} \begin{center} - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} \end{center} } \endgroup" >> crt_channel_mapping_evds.tex @@ -66,5 +65,5 @@ done echo "\end{document}" >> crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/tex_work crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/tex_work crt_channel_mapping_evds.tex diff --git a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl index 719321a2b..2e8f01d5e 100644 --- a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl +++ b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl @@ -1,6 +1,8 @@ +#include "services_sbnd.fcl" +#include "particleinventoryservice.fcl" +#include "crteventdisplay_sbnd.fcl" #include "crt_channel_map_service.fcl" #include "crt_calib_service.fcl" -#include "run_crteventdisplay_channel_mapping.fcl" process_name: CRTEventDisplay @@ -37,17 +39,17 @@ physics: end_paths: [ ana ] } -physics.analyzers.crtevdbot.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/bottom_wall" +physics.analyzers.crtevdbot.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/bottom_wall" physics.analyzers.crtevdbot.EventDisplayConfig.ChosenTaggers: [ 0 ] -physics.analyzers.crtevdsou.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/south_wall" +physics.analyzers.crtevdsou.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/south_wall" physics.analyzers.crtevdsou.EventDisplayConfig.ChosenTaggers: [ 1 ] -physics.analyzers.crtevdnor.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/north_wall" +physics.analyzers.crtevdnor.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/north_wall" physics.analyzers.crtevdnor.EventDisplayConfig.ChosenTaggers: [ 2 ] -physics.analyzers.crtevdwes.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/west_wall" +physics.analyzers.crtevdwes.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/west_wall" physics.analyzers.crtevdwes.EventDisplayConfig.ChosenTaggers: [ 3 ] -physics.analyzers.crtevdeas.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/east_wall" +physics.analyzers.crtevdeas.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/east_wall" physics.analyzers.crtevdeas.EventDisplayConfig.ChosenTaggers: [ 4 ] -physics.analyzers.crtevdtpl.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/toplow_wall" +physics.analyzers.crtevdtpl.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/toplow_wall" physics.analyzers.crtevdtpl.EventDisplayConfig.ChosenTaggers: [ 5 ] -physics.analyzers.crtevdtph.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/august2024/tophigh_wall" +physics.analyzers.crtevdtph.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/tophigh_wall" physics.analyzers.crtevdtph.EventDisplayConfig.ChosenTaggers: [ 6 ] From 25bc90306d11828419ae82d37c90a654e2bda540 Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Mon, 27 Jan 2025 05:46:58 -0600 Subject: [PATCH 07/17] New round of channel map evds --- sbndcode/CRT/CRTEventDisplay/build_tex.sh | 18 +++++++++--------- ...run_crteventdisplay_channel_mapping_all.fcl | 14 +++++++------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/sbndcode/CRT/CRTEventDisplay/build_tex.sh b/sbndcode/CRT/CRTEventDisplay/build_tex.sh index ff75ab234..727298f54 100644 --- a/sbndcode/CRT/CRTEventDisplay/build_tex.sh +++ b/sbndcode/CRT/CRTEventDisplay/build_tex.sh @@ -4,7 +4,7 @@ echo "\documentclass{article} \usepackage{pgffor} \usepackage[hidelinks]{hyperref} -\title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode v09\_91\_02\_02} \textit{\&} \texttt{sbnd\_v02\_03.gdml}} +\title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode v09\_93\_01\_02} \textit{\&} \texttt{sbnd\_v02\_03.gdml}} \author{Henry Lay \\\\ \small h.lay@sheffield.ac.uk}" > crt_channel_mapping_evds.tex walls=(bottom south north west east toplow tophigh) @@ -12,7 +12,7 @@ wallnames=(Bottom South North West East "Top Low" "Top High") for wall in "${walls[@]}" do - list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/${wall}_wall/*_front.pdf) + list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/${wall}_wall/*_front.pdf) echo -n "\newcommand*{\\"$wall"ids}{" >> crt_channel_mapping_evds.tex for item in ${list} @@ -33,10 +33,10 @@ echo "\begin{document} \centering \vspace{2em} -\includegraphics[width=.6\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/UOSLogo_Primary_Violet_RGB.png} +\includegraphics[width=.6\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/UOSLogo_Primary_Violet_RGB.png} \vspace{2em} -\includegraphics[width=.5\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/sbnd_pride_transparent.png} +\includegraphics[width=.5\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/sbnd_pride_transparent.png} \flushleft \newpage \tableofcontents @@ -55,9 +55,9 @@ do \newpage \subsection{volCRTModule\x\_\x} \begin{center} - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} \end{center} } \endgroup" >> crt_channel_mapping_evds.tex @@ -65,5 +65,5 @@ done echo "\end{document}" >> crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/tex_work crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/tex_work crt_channel_mapping_evds.tex diff --git a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl index 2e8f01d5e..674c5ee6b 100644 --- a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl +++ b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl @@ -39,17 +39,17 @@ physics: end_paths: [ ana ] } -physics.analyzers.crtevdbot.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/bottom_wall" +physics.analyzers.crtevdbot.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/bottom_wall" physics.analyzers.crtevdbot.EventDisplayConfig.ChosenTaggers: [ 0 ] -physics.analyzers.crtevdsou.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/south_wall" +physics.analyzers.crtevdsou.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/south_wall" physics.analyzers.crtevdsou.EventDisplayConfig.ChosenTaggers: [ 1 ] -physics.analyzers.crtevdnor.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/north_wall" +physics.analyzers.crtevdnor.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/north_wall" physics.analyzers.crtevdnor.EventDisplayConfig.ChosenTaggers: [ 2 ] -physics.analyzers.crtevdwes.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/west_wall" +physics.analyzers.crtevdwes.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/west_wall" physics.analyzers.crtevdwes.EventDisplayConfig.ChosenTaggers: [ 3 ] -physics.analyzers.crtevdeas.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/east_wall" +physics.analyzers.crtevdeas.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/east_wall" physics.analyzers.crtevdeas.EventDisplayConfig.ChosenTaggers: [ 4 ] -physics.analyzers.crtevdtpl.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/toplow_wall" +physics.analyzers.crtevdtpl.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/toplow_wall" physics.analyzers.crtevdtpl.EventDisplayConfig.ChosenTaggers: [ 5 ] -physics.analyzers.crtevdtph.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/oct2024/tophigh_wall" +physics.analyzers.crtevdtph.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/tophigh_wall" physics.analyzers.crtevdtph.EventDisplayConfig.ChosenTaggers: [ 6 ] From a30a782c052e408da79119d4ff73133c9c1ffc02 Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Thu, 15 May 2025 10:24:42 -0500 Subject: [PATCH 08/17] Updated CRT channel mapping display --- sbndcode/CRT/CRTEventDisplay/build_tex.sh | 18 +++++++++--------- ...run_crteventdisplay_channel_mapping_all.fcl | 14 +++++++------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/sbndcode/CRT/CRTEventDisplay/build_tex.sh b/sbndcode/CRT/CRTEventDisplay/build_tex.sh index 727298f54..2f4053d7f 100644 --- a/sbndcode/CRT/CRTEventDisplay/build_tex.sh +++ b/sbndcode/CRT/CRTEventDisplay/build_tex.sh @@ -4,7 +4,7 @@ echo "\documentclass{article} \usepackage{pgffor} \usepackage[hidelinks]{hyperref} -\title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode v09\_93\_01\_02} \textit{\&} \texttt{sbnd\_v02\_03.gdml}} +\title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode v10\_04\_01} \textit{\&} \texttt{sbnd\_v02\_05.gdml}} \author{Henry Lay \\\\ \small h.lay@sheffield.ac.uk}" > crt_channel_mapping_evds.tex walls=(bottom south north west east toplow tophigh) @@ -12,7 +12,7 @@ wallnames=(Bottom South North West East "Top Low" "Top High") for wall in "${walls[@]}" do - list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/${wall}_wall/*_front.pdf) + list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/${wall}_wall/*_front.pdf) echo -n "\newcommand*{\\"$wall"ids}{" >> crt_channel_mapping_evds.tex for item in ${list} @@ -33,10 +33,10 @@ echo "\begin{document} \centering \vspace{2em} -\includegraphics[width=.6\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/UOSLogo_Primary_Violet_RGB.png} +\includegraphics[width=.6\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/UOSLogo_Primary_Violet_RGB.png} \vspace{2em} -\includegraphics[width=.5\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/sbnd_pride_transparent.png} +\includegraphics[width=.5\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/sbnd_pride_transparent.png} \flushleft \newpage \tableofcontents @@ -55,9 +55,9 @@ do \newpage \subsection{volCRTModule\x\_\x} \begin{center} - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} \end{center} } \endgroup" >> crt_channel_mapping_evds.tex @@ -65,5 +65,5 @@ done echo "\end{document}" >> crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/tex_work crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/tex_work crt_channel_mapping_evds.tex diff --git a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl index 674c5ee6b..9b8275177 100644 --- a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl +++ b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl @@ -39,17 +39,17 @@ physics: end_paths: [ ana ] } -physics.analyzers.crtevdbot.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/bottom_wall" +physics.analyzers.crtevdbot.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/bottom_wall" physics.analyzers.crtevdbot.EventDisplayConfig.ChosenTaggers: [ 0 ] -physics.analyzers.crtevdsou.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/south_wall" +physics.analyzers.crtevdsou.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/south_wall" physics.analyzers.crtevdsou.EventDisplayConfig.ChosenTaggers: [ 1 ] -physics.analyzers.crtevdnor.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/north_wall" +physics.analyzers.crtevdnor.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/north_wall" physics.analyzers.crtevdnor.EventDisplayConfig.ChosenTaggers: [ 2 ] -physics.analyzers.crtevdwes.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/west_wall" +physics.analyzers.crtevdwes.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/west_wall" physics.analyzers.crtevdwes.EventDisplayConfig.ChosenTaggers: [ 3 ] -physics.analyzers.crtevdeas.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/east_wall" +physics.analyzers.crtevdeas.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/east_wall" physics.analyzers.crtevdeas.EventDisplayConfig.ChosenTaggers: [ 4 ] -physics.analyzers.crtevdtpl.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/toplow_wall" +physics.analyzers.crtevdtpl.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/toplow_wall" physics.analyzers.crtevdtpl.EventDisplayConfig.ChosenTaggers: [ 5 ] -physics.analyzers.crtevdtph.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/jan2025/tophigh_wall" +physics.analyzers.crtevdtph.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/tophigh_wall" physics.analyzers.crtevdtph.EventDisplayConfig.ChosenTaggers: [ 6 ] From 380b27fcfb124f16d2d01df7dec8bb1c7fdf0778 Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Fri, 20 Feb 2026 10:41:52 -0600 Subject: [PATCH 09/17] Make tex script more configurable --- sbndcode/CRT/CRTEventDisplay/build_tex.sh | 28 +++++++++++++++-------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/sbndcode/CRT/CRTEventDisplay/build_tex.sh b/sbndcode/CRT/CRTEventDisplay/build_tex.sh index 2f4053d7f..decfbc43e 100644 --- a/sbndcode/CRT/CRTEventDisplay/build_tex.sh +++ b/sbndcode/CRT/CRTEventDisplay/build_tex.sh @@ -1,18 +1,26 @@ +version=$1 +gdml=$2 +author=$3 +email=$4 +edition=$5 + +mkdir /exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/tex_work + echo "\documentclass{article} \usepackage[a4paper, margin=3cm]{geometry} \usepackage{graphicx} \usepackage{pgffor} \usepackage[hidelinks]{hyperref} -\title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode v10\_04\_01} \textit{\&} \texttt{sbnd\_v02\_05.gdml}} -\author{Henry Lay \\\\ \small h.lay@sheffield.ac.uk}" > crt_channel_mapping_evds.tex +\title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode ${version}} \textit{\&} \texttt{${gdml}}} +\author{${author} \\\\ \small ${email}}" > crt_channel_mapping_evds.tex walls=(bottom south north west east toplow tophigh) wallnames=(Bottom South North West East "Top Low" "Top High") for wall in "${walls[@]}" do - list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/${wall}_wall/*_front.pdf) + list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/${wall}_wall/*_front.pdf) echo -n "\newcommand*{\\"$wall"ids}{" >> crt_channel_mapping_evds.tex for item in ${list} @@ -33,10 +41,10 @@ echo "\begin{document} \centering \vspace{2em} -\includegraphics[width=.6\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/UOSLogo_Primary_Violet_RGB.png} +\includegraphics[width=.6\textwidth]{/nashome/h/hlay/UOSLogo_Primary_Violet_RGB.png} \vspace{2em} -\includegraphics[width=.5\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/sbnd_pride_transparent.png} +\includegraphics[width=.5\textwidth]{/nashome/h/hlay/sbnd_pride_transparent.png} \flushleft \newpage \tableofcontents @@ -55,9 +63,9 @@ do \newpage \subsection{volCRTModule\x\_\x} \begin{center} - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ + \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} \end{center} } \endgroup" >> crt_channel_mapping_evds.tex @@ -65,5 +73,5 @@ done echo "\end{document}" >> crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/tex_work crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/tex_work crt_channel_mapping_evds.tex From 9a5c2ed58b9b87dcbd9b9e42baa20afcee0de149 Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Fri, 20 Feb 2026 10:47:13 -0600 Subject: [PATCH 10/17] Make compatible with current develop --- .../CRTChannelMappingEventDisplay_module.cc | 11 +++++------ .../run_crteventdisplay_channel_mapping_all.fcl | 7 +++---- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/sbndcode/CRT/CRTEventDisplay/CRTChannelMappingEventDisplay_module.cc b/sbndcode/CRT/CRTEventDisplay/CRTChannelMappingEventDisplay_module.cc index 99c4c1f6d..cfa00cd45 100644 --- a/sbndcode/CRT/CRTEventDisplay/CRTChannelMappingEventDisplay_module.cc +++ b/sbndcode/CRT/CRTEventDisplay/CRTChannelMappingEventDisplay_module.cc @@ -55,17 +55,16 @@ class sbnd::crt::CRTChannelMappingEventDisplay : public art::EDAnalyzer { private: - CRTEventDisplayAlg fCRTEventDisplayAlg; - CRTGeoAlg fCRTGeoAlg; - std::string fSaveDir; - std::vector fChosenTaggers; + CRTEventDisplayAlg fCRTEventDisplayAlg; + art::ServiceHandle fCRTGeoService; + std::string fSaveDir; + std::vector fChosenTaggers; }; sbnd::crt::CRTChannelMappingEventDisplay::CRTChannelMappingEventDisplay(Parameters const& config) : EDAnalyzer{config} , fCRTEventDisplayAlg(config().EventDisplayConfig()) - , fCRTGeoAlg(config().EventDisplayConfig().GeoAlgConfig()) , fSaveDir(config().SaveDir()) , fChosenTaggers(config().EventDisplayConfig().ChosenTaggers()) { @@ -76,7 +75,7 @@ void sbnd::crt::CRTChannelMappingEventDisplay::analyze(art::Event const& e) { auto const clockData = art::ServiceHandle()->DataFor(e); - for(auto const& [ name, module ] : fCRTGeoAlg.GetModules()) + for(auto const& [ name, module ] : fCRTGeoService->GetModules()) { if(std::find(fChosenTaggers.begin(), fChosenTaggers.end(), CRTCommonUtils::GetTaggerEnum(module.taggerName)) == fChosenTaggers.end()) continue; diff --git a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl index 9b8275177..435e34615 100644 --- a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl +++ b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl @@ -1,17 +1,16 @@ #include "services_sbnd.fcl" #include "particleinventoryservice.fcl" #include "crteventdisplay_sbnd.fcl" -#include "crt_channel_map_service.fcl" -#include "crt_calib_service.fcl" +#include "crt_services_sbnd.fcl" process_name: CRTEventDisplay services: { @table::sbnd_services + @table::crt_services_sbnd ParticleInventoryService: @local::standard_particleinventoryservice - CRTChannelMapService: @local::crt_channel_map_standard - CRTCalibService: @local::crt_calib_service + CRTChannelMapService: @local::crt_channel_map_no_inversion } source: From a196d7cb330d8b767e5ba68d32bf1ddfe4e1e5b1 Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Fri, 20 Feb 2026 11:23:09 -0600 Subject: [PATCH 11/17] Remove unnecessary fcl --- .../run_crteventdisplay_channel_mapping.fcl | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping.fcl diff --git a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping.fcl b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping.fcl deleted file mode 100644 index 03ab48cad..000000000 --- a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping.fcl +++ /dev/null @@ -1,29 +0,0 @@ -#include "services_sbnd.fcl" -#include "crt_services_sbnd.fcl" -#include "crteventdisplay_sbnd.fcl" - -process_name: CRTEventDisplay - -services: -{ - @table::sbnd_services - @table::crt_services_data_sbnd -} - -source: -{ - module_type: RootInput - maxEvents: -1 -} - -physics: -{ - analyzers: - { - crtevd: @local::crteventdisplay_sbnd_channel_mapping - } - - ana: [ crtevd ] - - end_paths: [ ana ] -} From b36419cd57b17ef350b19cd16132d56f7d1afc70 Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Tue, 9 Jul 2024 06:46:07 -0500 Subject: [PATCH 12/17] Add functionality for turning off inversion - useful for the channel mapping event displays --- .../CRT/SBNDCRTChannelMap_v5_no_inversion.txt | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 sbndcode/ChannelMaps/CRT/SBNDCRTChannelMap_v5_no_inversion.txt diff --git a/sbndcode/ChannelMaps/CRT/SBNDCRTChannelMap_v5_no_inversion.txt b/sbndcode/ChannelMaps/CRT/SBNDCRTChannelMap_v5_no_inversion.txt new file mode 100644 index 000000000..7e0478c14 --- /dev/null +++ b/sbndcode/ChannelMaps/CRT/SBNDCRTChannelMap_v5_no_inversion.txt @@ -0,0 +1,87 @@ +40 173 0 +41 172 0 +42 168 0 +43 170 0 +44 176 0 +45 59 0 +46 171 0 +47 61 0 +48 166 0 +49 169 0 +50 56 0 +51 60 0 +52 34 0 +53 33 0 +54 57 0 +55 24 0 +56 159 0 +57 153 0 +58 156 0 +59 152 0 +60 182 0 +61 158 0 +62 157 0 +63 136 0 +64 150 0 +65 151 0 +66 134 0 +67 135 0 +68 149 0 +69 58 0 +70 238 0 +71 155 0 +72 222 0 +73 220 0 +74 81 0 +75 85 0 +76 79 0 +77 206 0 +78 204 0 +79 200 0 +80 18 0 +81 132 0 +82 133 0 +83 162 0 +84 143 0 +85 131 0 +86 146 0 +87 147 0 +88 44 0 +89 160 0 +90 19 0 +91 202 0 +92 199 0 +93 197 0 +94 207 0 +95 203 0 +96 45 0 +97 198 0 +98 174 0 +99 148 0 +100 163 0 +101 164 0 +102 165 0 +103 80 0 +104 193 0 +105 42 0 +106 138 0 +107 130 0 +108 77 0 +109 78 0 +110 98 0 +111 97 0 +112 87 0 +113 95 0 +114 94 0 +115 93 0 +116 86 0 +117 83 0 +118 84 0 +119 104 0 +120 103 0 +121 102 0 +122 101 0 +123 100 0 +124 99 0 +125 90 0 +126 91 0 From 2134fb766fe611a3e9a1373c8dcd78abd06f7ce6 Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Mon, 23 Feb 2026 03:45:21 -0600 Subject: [PATCH 13/17] More configurable --- sbndcode/CRT/CRTEventDisplay/build_tex.sh | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/sbndcode/CRT/CRTEventDisplay/build_tex.sh b/sbndcode/CRT/CRTEventDisplay/build_tex.sh index decfbc43e..ae6473d55 100644 --- a/sbndcode/CRT/CRTEventDisplay/build_tex.sh +++ b/sbndcode/CRT/CRTEventDisplay/build_tex.sh @@ -3,8 +3,16 @@ gdml=$2 author=$3 email=$4 edition=$5 +basedir=$6 -mkdir /exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/tex_work +echo $version +echo $gdml +echo $author +echo $email +echo $edition +echo $basedir + +mkdir ${basedir}/${edition}/tex_work echo "\documentclass{article} \usepackage[a4paper, margin=3cm]{geometry} @@ -20,7 +28,7 @@ wallnames=(Bottom South North West East "Top Low" "Top High") for wall in "${walls[@]}" do - list=$(ls /exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/${wall}_wall/*_front.pdf) + list=$(ls ${basedir}/${edition}/${wall}_wall/*_front.pdf) echo -n "\newcommand*{\\"$wall"ids}{" >> crt_channel_mapping_evds.tex for item in ${list} @@ -63,9 +71,9 @@ do \newpage \subsection{volCRTModule\x\_\x} \begin{center} - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ - \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} + \includegraphics[width=.85\textwidth]{${basedir}/${edition}/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ + \includegraphics[width=.85\textwidth]{${basedir}/${edition}/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ + \includegraphics[width=.85\textwidth]{${basedir}/${edition}/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} \end{center} } \endgroup" >> crt_channel_mapping_evds.tex @@ -73,5 +81,5 @@ done echo "\end{document}" >> crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/tex_work crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping/${edition}/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory ${basedir}/${edition}/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory ${basedir}/${edition}/tex_work crt_channel_mapping_evds.tex From cc83f737e108ed8172fdc1eac2aa6843a470b823 Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Mon, 23 Feb 2026 03:45:48 -0600 Subject: [PATCH 14/17] Correctly name parameter --- sbndcode/CRT/CRTEventDisplay/crteventdisplayalg_sbnd.fcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbndcode/CRT/CRTEventDisplay/crteventdisplayalg_sbnd.fcl b/sbndcode/CRT/CRTEventDisplay/crteventdisplayalg_sbnd.fcl index 1a5f77633..0f7a523c8 100644 --- a/sbndcode/CRT/CRTEventDisplay/crteventdisplayalg_sbnd.fcl +++ b/sbndcode/CRT/CRTEventDisplay/crteventdisplayalg_sbnd.fcl @@ -99,7 +99,7 @@ crteventdisplayalg_sbnd_data.MaxTime: 1.5e6 crteventdisplayalg_sbnd_channel_mapping: @local::crteventdisplayalg_sbnd -crteventdisplayalg_sbnd_channel_mapping.DataMode: true +crteventdisplayalg_sbnd_channel_mapping.MC: false crteventdisplayalg_sbnd_channel_mapping.SaveRoot: false crteventdisplayalg_sbnd_channel_mapping.SaveViews: true From e20d6225d0c530c1e3550a15a1e747518bc9274e Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Mon, 23 Feb 2026 03:51:01 -0600 Subject: [PATCH 15/17] Make consistent between fcl and bash script --- sbndcode/CRT/CRTEventDisplay/build_tex.sh | 18 ++++++++---------- ...run_crteventdisplay_channel_mapping_all.fcl | 17 ++++++++--------- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/sbndcode/CRT/CRTEventDisplay/build_tex.sh b/sbndcode/CRT/CRTEventDisplay/build_tex.sh index ae6473d55..507aefd80 100644 --- a/sbndcode/CRT/CRTEventDisplay/build_tex.sh +++ b/sbndcode/CRT/CRTEventDisplay/build_tex.sh @@ -2,17 +2,15 @@ version=$1 gdml=$2 author=$3 email=$4 -edition=$5 -basedir=$6 +basedir=$5 echo $version echo $gdml echo $author echo $email -echo $edition echo $basedir -mkdir ${basedir}/${edition}/tex_work +mkdir ${basedir}/tex_work echo "\documentclass{article} \usepackage[a4paper, margin=3cm]{geometry} @@ -28,7 +26,7 @@ wallnames=(Bottom South North West East "Top Low" "Top High") for wall in "${walls[@]}" do - list=$(ls ${basedir}/${edition}/${wall}_wall/*_front.pdf) + list=$(ls ${basedir}/${wall}_wall/*_front.pdf) echo -n "\newcommand*{\\"$wall"ids}{" >> crt_channel_mapping_evds.tex for item in ${list} @@ -71,9 +69,9 @@ do \newpage \subsection{volCRTModule\x\_\x} \begin{center} - \includegraphics[width=.85\textwidth]{${basedir}/${edition}/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ - \includegraphics[width=.85\textwidth]{${basedir}/${edition}/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ - \includegraphics[width=.85\textwidth]{${basedir}/${edition}/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} + \includegraphics[width=.85\textwidth]{${basedir}/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\ + \includegraphics[width=.85\textwidth]{${basedir}/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\ + \includegraphics[width=.85\textwidth]{${basedir}/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} \end{center} } \endgroup" >> crt_channel_mapping_evds.tex @@ -81,5 +79,5 @@ done echo "\end{document}" >> crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory ${basedir}/${edition}/tex_work crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory ${basedir}/${edition}/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory ${basedir}/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory ${basedir}/tex_work crt_channel_mapping_evds.tex diff --git a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl index 435e34615..6da8eadc1 100644 --- a/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl +++ b/sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl @@ -16,8 +16,7 @@ services: source: { module_type: RootInput - maxEvents: -1 - + maxEvents: -1 } physics: @@ -38,17 +37,17 @@ physics: end_paths: [ ana ] } -physics.analyzers.crtevdbot.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/bottom_wall" +physics.analyzers.crtevdbot.SaveDir: "/YOUR/DIRECTORY/NAME/bottom_wall" physics.analyzers.crtevdbot.EventDisplayConfig.ChosenTaggers: [ 0 ] -physics.analyzers.crtevdsou.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/south_wall" +physics.analyzers.crtevdsou.SaveDir: "/YOUR/DIRECTORY/NAME/south_wall" physics.analyzers.crtevdsou.EventDisplayConfig.ChosenTaggers: [ 1 ] -physics.analyzers.crtevdnor.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/north_wall" +physics.analyzers.crtevdnor.SaveDir: "/YOUR/DIRECTORY/NAME/north_wall" physics.analyzers.crtevdnor.EventDisplayConfig.ChosenTaggers: [ 2 ] -physics.analyzers.crtevdwes.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/west_wall" +physics.analyzers.crtevdwes.SaveDir: "/YOUR/DIRECTORY/NAME/west_wall" physics.analyzers.crtevdwes.EventDisplayConfig.ChosenTaggers: [ 3 ] -physics.analyzers.crtevdeas.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/east_wall" +physics.analyzers.crtevdeas.SaveDir: "/YOUR/DIRECTORY/NAME/east_wall" physics.analyzers.crtevdeas.EventDisplayConfig.ChosenTaggers: [ 4 ] -physics.analyzers.crtevdtpl.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/toplow_wall" +physics.analyzers.crtevdtpl.SaveDir: "/YOUR/DIRECTORY/NAME/toplow_wall" physics.analyzers.crtevdtpl.EventDisplayConfig.ChosenTaggers: [ 5 ] -physics.analyzers.crtevdtph.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/tophigh_wall" +physics.analyzers.crtevdtph.SaveDir: "/YOUR/DIRECTORY/NAME/tophigh_wall" physics.analyzers.crtevdtph.EventDisplayConfig.ChosenTaggers: [ 6 ] From df8562a173b85d7630d5b065c50c92eecceba216 Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Mon, 23 Feb 2026 03:51:55 -0600 Subject: [PATCH 16/17] Include table for no inversion channel map --- sbndcode/ChannelMaps/CRT/crt_channel_map_service_sbnd.fcl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sbndcode/ChannelMaps/CRT/crt_channel_map_service_sbnd.fcl b/sbndcode/ChannelMaps/CRT/crt_channel_map_service_sbnd.fcl index a34f136cd..16e96b3bc 100644 --- a/sbndcode/ChannelMaps/CRT/crt_channel_map_service_sbnd.fcl +++ b/sbndcode/ChannelMaps/CRT/crt_channel_map_service_sbnd.fcl @@ -5,4 +5,9 @@ crt_channel_map_sbnd: FileName: "SBNDCRTChannelMap_Commissioning_v5.txt" } +crt_channel_map_no_inversion: +{ + FileName: "SBNDCRTChannelMap_v5_no_inversion.txt" +} + END_PROLOG From 02dc0456bf359ccfac0548d149be8314a305a540 Mon Sep 17 00:00:00 2001 From: Henry Lay Date: Mon, 23 Feb 2026 05:37:13 -0600 Subject: [PATCH 17/17] Ensure tex file is saved in correct area --- sbndcode/CRT/CRTEventDisplay/build_tex.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sbndcode/CRT/CRTEventDisplay/build_tex.sh b/sbndcode/CRT/CRTEventDisplay/build_tex.sh index 507aefd80..235039478 100644 --- a/sbndcode/CRT/CRTEventDisplay/build_tex.sh +++ b/sbndcode/CRT/CRTEventDisplay/build_tex.sh @@ -19,7 +19,7 @@ echo "\documentclass{article} \usepackage[hidelinks]{hyperref} \title{SBND CRT Channel Mapping Displays \\\\ \vspace{1em} \small \textit{Produced using} \texttt{sbndcode ${version}} \textit{\&} \texttt{${gdml}}} -\author{${author} \\\\ \small ${email}}" > crt_channel_mapping_evds.tex +\author{${author} \\\\ \small ${email}}" > ${basedir}/tex_work/crt_channel_mapping_evds.tex walls=(bottom south north west east toplow tophigh) wallnames=(Bottom South North West East "Top Low" "Top High") @@ -27,17 +27,17 @@ wallnames=(Bottom South North West East "Top Low" "Top High") for wall in "${walls[@]}" do list=$(ls ${basedir}/${wall}_wall/*_front.pdf) - echo -n "\newcommand*{\\"$wall"ids}{" >> crt_channel_mapping_evds.tex + echo -n "\newcommand*{\\"$wall"ids}{" >> ${basedir}/tex_work/crt_channel_mapping_evds.tex for item in ${list} do name=$(echo $item | cut -d '/' -f 10) number=$(echo $name | cut -d '_' -f 2) - echo -n $number, >> crt_channel_mapping_evds.tex + echo -n $number, >> ${basedir}/tex_work/crt_channel_mapping_evds.tex done - sed -i '$ s/.$//' crt_channel_mapping_evds.tex - echo "}" >> crt_channel_mapping_evds.tex + sed -i '$ s/.$//' ${basedir}/tex_work/crt_channel_mapping_evds.tex + echo "}" >> ${basedir}/tex_work/crt_channel_mapping_evds.tex done echo "\begin{document} @@ -57,7 +57,7 @@ echo "\begin{document} \newpage \section{Explanation} This document contains a series of illustrations created using the \texttt{CRTEventDisplay} tool originally written by Tom Brooks \& heavily developed by myself. It shows the position of the various CRT modules according to the gdml file used in SBND simulation and reconstruction. The document is split into sections for the different tagger walls. For each module three illustrations are provided: front, top and side views. The axes show detector coordinates (X, Y and Z) and \`\`building coordinates\" (North, West and Up). The relevant module is shown in green. The TPCs are shown in grey in the centre for reference. The black outer is the full tagger wall. The thin grey are other modules in the wall. The red is the FEB position and the blue corresponds to the end of the FEB with channel 0 (the ethernet ports). -" >> crt_channel_mapping_evds.tex +" >> ${basedir}/tex_work/crt_channel_mapping_evds.tex for i in "${!walls[@]}" do @@ -74,10 +74,10 @@ do \includegraphics[width=.85\textwidth]{${basedir}/${walls[i]}_wall/volCRTModule\x_\x_side.pdf} \end{center} } -\endgroup" >> crt_channel_mapping_evds.tex +\endgroup" >> ${basedir}/tex_work/crt_channel_mapping_evds.tex done -echo "\end{document}" >> crt_channel_mapping_evds.tex +echo "\end{document}" >> ${basedir}/tex_work/crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory ${basedir}/tex_work crt_channel_mapping_evds.tex -pdflatex --shell-escape -output-directory ${basedir}/tex_work crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory ${basedir}/tex_work ${basedir}/tex_work/crt_channel_mapping_evds.tex +pdflatex --shell-escape -output-directory ${basedir}/tex_work ${basedir}/tex_work/crt_channel_mapping_evds.tex