Skip to content

Commit e20d622

Browse files
committed
Make consistent between fcl and bash script
1 parent cc83f73 commit e20d622

2 files changed

Lines changed: 16 additions & 19 deletions

File tree

sbndcode/CRT/CRTEventDisplay/build_tex.sh

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@ version=$1
22
gdml=$2
33
author=$3
44
email=$4
5-
edition=$5
6-
basedir=$6
5+
basedir=$5
76

87
echo $version
98
echo $gdml
109
echo $author
1110
echo $email
12-
echo $edition
1311
echo $basedir
1412

15-
mkdir ${basedir}/${edition}/tex_work
13+
mkdir ${basedir}/tex_work
1614

1715
echo "\documentclass{article}
1816
\usepackage[a4paper, margin=3cm]{geometry}
@@ -28,7 +26,7 @@ wallnames=(Bottom South North West East "Top Low" "Top High")
2826

2927
for wall in "${walls[@]}"
3028
do
31-
list=$(ls ${basedir}/${edition}/${wall}_wall/*_front.pdf)
29+
list=$(ls ${basedir}/${wall}_wall/*_front.pdf)
3230
echo -n "\newcommand*{\\"$wall"ids}{" >> crt_channel_mapping_evds.tex
3331

3432
for item in ${list}
@@ -71,15 +69,15 @@ do
7169
\newpage
7270
\subsection{volCRTModule\x\_\x}
7371
\begin{center}
74-
\includegraphics[width=.85\textwidth]{${basedir}/${edition}/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\
75-
\includegraphics[width=.85\textwidth]{${basedir}/${edition}/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\
76-
\includegraphics[width=.85\textwidth]{${basedir}/${edition}/${walls[i]}_wall/volCRTModule\x_\x_side.pdf}
72+
\includegraphics[width=.85\textwidth]{${basedir}/${walls[i]}_wall/volCRTModule\x_\x_front.pdf}\\\\
73+
\includegraphics[width=.85\textwidth]{${basedir}/${walls[i]}_wall/volCRTModule\x_\x_top.pdf}\\\\
74+
\includegraphics[width=.85\textwidth]{${basedir}/${walls[i]}_wall/volCRTModule\x_\x_side.pdf}
7775
\end{center}
7876
}
7977
\endgroup" >> crt_channel_mapping_evds.tex
8078
done
8179

8280
echo "\end{document}" >> crt_channel_mapping_evds.tex
8381

84-
pdflatex --shell-escape -output-directory ${basedir}/${edition}/tex_work crt_channel_mapping_evds.tex
85-
pdflatex --shell-escape -output-directory ${basedir}/${edition}/tex_work crt_channel_mapping_evds.tex
82+
pdflatex --shell-escape -output-directory ${basedir}/tex_work crt_channel_mapping_evds.tex
83+
pdflatex --shell-escape -output-directory ${basedir}/tex_work crt_channel_mapping_evds.tex

sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ services:
1616
source:
1717
{
1818
module_type: RootInput
19-
maxEvents: -1
20-
19+
maxEvents: -1
2120
}
2221

2322
physics:
@@ -38,17 +37,17 @@ physics:
3837
end_paths: [ ana ]
3938
}
4039

41-
physics.analyzers.crtevdbot.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/bottom_wall"
40+
physics.analyzers.crtevdbot.SaveDir: "/YOUR/DIRECTORY/NAME/bottom_wall"
4241
physics.analyzers.crtevdbot.EventDisplayConfig.ChosenTaggers: [ 0 ]
43-
physics.analyzers.crtevdsou.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/south_wall"
42+
physics.analyzers.crtevdsou.SaveDir: "/YOUR/DIRECTORY/NAME/south_wall"
4443
physics.analyzers.crtevdsou.EventDisplayConfig.ChosenTaggers: [ 1 ]
45-
physics.analyzers.crtevdnor.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/north_wall"
44+
physics.analyzers.crtevdnor.SaveDir: "/YOUR/DIRECTORY/NAME/north_wall"
4645
physics.analyzers.crtevdnor.EventDisplayConfig.ChosenTaggers: [ 2 ]
47-
physics.analyzers.crtevdwes.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/west_wall"
46+
physics.analyzers.crtevdwes.SaveDir: "/YOUR/DIRECTORY/NAME/west_wall"
4847
physics.analyzers.crtevdwes.EventDisplayConfig.ChosenTaggers: [ 3 ]
49-
physics.analyzers.crtevdeas.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/east_wall"
48+
physics.analyzers.crtevdeas.SaveDir: "/YOUR/DIRECTORY/NAME/east_wall"
5049
physics.analyzers.crtevdeas.EventDisplayConfig.ChosenTaggers: [ 4 ]
51-
physics.analyzers.crtevdtpl.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/toplow_wall"
50+
physics.analyzers.crtevdtpl.SaveDir: "/YOUR/DIRECTORY/NAME/toplow_wall"
5251
physics.analyzers.crtevdtpl.EventDisplayConfig.ChosenTaggers: [ 5 ]
53-
physics.analyzers.crtevdtph.SaveDir: "/exp/sbnd/data/users/hlay/crt_channel_mapping/mar2025/tophigh_wall"
52+
physics.analyzers.crtevdtph.SaveDir: "/YOUR/DIRECTORY/NAME/tophigh_wall"
5453
physics.analyzers.crtevdtph.EventDisplayConfig.ChosenTaggers: [ 6 ]

0 commit comments

Comments
 (0)