Skip to content

Commit

Permalink
Merge pull request #338 from brownd1978/primary
Browse files Browse the repository at this point in the history
Fix some bugs
  • Loading branch information
kutschke authored Aug 7, 2024
2 parents 87e09bd + f30900a commit 4826708
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Scripts/gen_Primary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ usage() {
[ --run (opt) default 1202 ]
[ --cat(opt) default Cat ]
bash gen_Primary.sh --primary DIOtail --type MuMinus --campaign MDC2024 --scampaign MDC2020 -pver z_sm3 --sver p --njobs 100 --events 100 --start 75 --end 95
bash gen_Primary.sh --primary DIOtail --type Muminus --campaign MDC2024 --scampaign MDC2020 --pver z_sm3 --sver p --njobs 100 --events 100 --start 75 --end 95
" 1>&2
}

Expand Down Expand Up @@ -121,6 +121,7 @@ while getopts ":-:" options; do
exit_abnormal # Exit abnormally.
;;
*) # If unknown (any other) option:
echo "Error: -${OPTARG} unknown option."
exit_abnormal # Exit abnormally.
;;
esac
Expand Down Expand Up @@ -158,8 +159,9 @@ else
resampler=${TYPE}StopResampler
fi


samweb list-file-locations --schema=root --defname="$dataset" | cut -f1 > Stops.txt
rm -f Stops.txt
#samweb list-file-locations --schema=root --defname="$dataset" | cut -f1 > Stops.txt
samListLocations --defname $dataset > Stops.txt
# calucate the max skip from the dataset
nfiles=`samCountFiles.sh $dataset`
nevts=`samCountEvents.sh $dataset`
Expand All @@ -179,6 +181,7 @@ echo physics.filters.${resampler}.mu2e.MaxEventsToSkip: ${nskip} >> primary.fcl
echo "services.GeometryService.bFieldFile : \"${FIELD}\"" >> primary.fcl

if [[ "${TAG}" == "DIOtail" ]]; then
echo "DIOTail"
echo physics.producers.generate.decayProducts.spectrum.ehi: ${ENDMOM} >> primary.fcl
echo physics.producers.generate.decayProducts.spectrum.elow: ${STARTMOM} >> primary.fcl
echo outputs.PrimaryOutput.fileName: \"dts.owner.${PRIMARY}.version.sequencer.art\" >> primary.fcl
Expand Down

0 comments on commit 4826708

Please sign in to comment.