Skip to content

Commit

Permalink
A duneproc key dpseq and drop dptools. #2
Browse files Browse the repository at this point in the history
  • Loading branch information
GCO_admin committed Jun 9, 2022
1 parent 5b0a3d8 commit 255bc2b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Fcl/run_dataprep.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
#include "dataprep_dune.fcl"
#include "RawDecoder.fcl"

# This must come after all prologs.
# These must come after all prologs.
#include "protodune_tools_dune.fcl"
#include "pdsp_dataprep_sequences.fcl"

services:
{
Expand Down
18 changes: 13 additions & 5 deletions Script/duneproc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# David Adams
# June 2018
Expand Down Expand Up @@ -79,7 +79,7 @@ if [ "$1" = "-H" ]; then
echo " usctdecTTTT - Set USC TDecayConst to 0.TTTT"
echo " uscfsubFFFF - Set USC FSubConst to 0.FFFF"
echo " exptdecTTTT - Set ExpTailRemover decay tiome to TTTT ticks"
echo " dptools_SSS - Set dataprep tool sequence to @local::data._dataprep_tools.SSS."
echo " dpseq_DDD_SSS - Use dataprep sequence SSS for protptype DET, i.e use data.DDD_dataprep_tools.SSS."
echo "Some of the primary fcl files provided here:"
echo " run_dataprep - Run dataprep with no tools or list provided later."
echo " dqm - Make standard dqm plots."
Expand Down Expand Up @@ -113,6 +113,10 @@ makeFcl() {
local FCLNAME=$1
local FCLFILE=$FCLNAME.fcl
local DBG=0
local REM=
local DET=
local POS=
local SEQ=
if test $DBG -gt 0; then echo makeFcl: FCL file is $FCLFILE; fi
if [ -r $FCLFILE ]; then
echo makeFcl: File already exists: $FCLFILE
Expand Down Expand Up @@ -392,9 +396,13 @@ makeFcl() {
VAL=${FCLNAME:7}
echo "tools.adcTailRemovalAdc.DecayTime: $VAL" >$FCLFILE
echo "tools.adcTailRemovalKe.DecayTime: $VAL" >>$FCLFILE
elif [ ${FCLNAME:0:8} = "dptools_" ]; then
VAL=${FCLNAME:8}
echo "services.RawDigitPrepService.ToolNames: @local::data.dataprep_seqs.$VAL" >$FCLFILE
elif [ ${FCLNAME:0:6} = "dpseq_" ]; then
REM=${FCLNAME:6}
DET=${REM%%_*}
POS=${#DET}
SEQ=${REM:$POS}
SEQ=${SEQ:1}
echo "services.RawDigitPrepService.ToolNames: @local::data.${DET}_dataprep_seqs.$SEQ" >$FCLFILE
fi
if [ ! -r $FCLFILE ]; then
echo makeFcl: Unable to create $FCLFILE
Expand Down

0 comments on commit 255bc2b

Please sign in to comment.