From 0d3cbd3022ab0d92f31aff91a68b082dbb9a4b71 Mon Sep 17 00:00:00 2001 From: Yuri Oksuzian Date: Fri, 8 Mar 2024 16:03:36 -0600 Subject: [PATCH] Changes required for cosmic S2 simulations --- CampaignConfig/mdc2020_prolog.cfg | 3 +-- JobConfig/cosmic/S2ResamplerLow.fcl | 1 + JobConfig/cosmic/prolog.fcl | 3 ++- Scripts/gen_Cat.sh | 3 +++ 4 files changed, 7 insertions(+), 3 deletions(-) mode change 100644 => 100755 Scripts/gen_Cat.sh diff --git a/CampaignConfig/mdc2020_prolog.cfg b/CampaignConfig/mdc2020_prolog.cfg index 07f21dc8..7fb811c3 100644 --- a/CampaignConfig/mdc2020_prolog.cfg +++ b/CampaignConfig/mdc2020_prolog.cfg @@ -59,7 +59,7 @@ l = '+SingularityImage=\"/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn append_condor_requirements='(TARGET.HAS_SINGULARITY=?=true)' ; tar_file_name = dropbox:///mu2e/data/users/gianipez/museTarball/tmp.usHhKQEzdo/Code.tar.bz2 ; use-cvmfs-dropbox = True -f = dropbox:///mu2e/app/home/mu2epro/db_fcl_test/ucondb_auth.sh +f = dropbox:///exp/mu2e/app/home/mu2epro/db_fcl_test/ucondb_auth.sh [job_setup] debug = True @@ -74,7 +74,6 @@ setup_2 = -B mu2etools setup_3 = -B sam_web_client setup_4 = -B dhtools v1_24a - ifdh_art = True postscript = find *[0-9]* -maxdepth 1 -name "*.fcl" -exec sed -i "s/MU2EGRIDDSOWNER/%(submitter)s/g" {} + postscript_2 = find *[0-9]* -maxdepth 1 -name "*.fcl" -exec sed -i "s/MU2EGRIDDSCONF/%(desc)s/g" {} + diff --git a/JobConfig/cosmic/S2ResamplerLow.fcl b/JobConfig/cosmic/S2ResamplerLow.fcl index c68f75a2..5efb9aec 100644 --- a/JobConfig/cosmic/S2ResamplerLow.fcl +++ b/JobConfig/cosmic/S2ResamplerLow.fcl @@ -2,3 +2,4 @@ # epilog for resampling 'Low' S1 output # physics.filters.CosmicResampler.mu2e.products.cosmicLivetimeMixer.genCounterLabel: "genCounterLow::Primary" +physics.filters.PrimaryFilter.MaximumPartMom: 500 \ No newline at end of file diff --git a/JobConfig/cosmic/prolog.fcl b/JobConfig/cosmic/prolog.fcl index e0350ae6..29bb1611 100644 --- a/JobConfig/cosmic/prolog.fcl +++ b/JobConfig/cosmic/prolog.fcl @@ -223,7 +223,8 @@ Cosmic: { S2KeptProducts : [ "keep mu2e::CosmicLivetime_*_mixed_*", - "keep mu2e::StepPointMCs_CosmicResampler_crvStage1_*" + "keep mu2e::StepPointMCs_CosmicResampler_crvStage1_*", + "keep mu2e::StepPointMCs_CosmicResampler_CRV_*" ] S1KeptProducts : [ diff --git a/Scripts/gen_Cat.sh b/Scripts/gen_Cat.sh old mode 100644 new mode 100755 index 25bbf507..de902095 --- a/Scripts/gen_Cat.sh +++ b/Scripts/gen_Cat.sh @@ -71,6 +71,9 @@ done CONF=${CAMP}${VERSION} OUTFILENAME="${FILETYPE}.DSOWNER.${NAME}Cat.DSCONF.SEQ.art" +[ -f "inputs.txt" ] && rm -f "inputs.txt" +[ -f "template.fcl" ] && rm -f "template.fcl" + samweb list-file-locations ${SAMOPT} --defname=${FILETYPE}.${OWNER}.${NAME}.${CONF}.art | cut -f1 > inputs.txt echo '#include "Production/JobConfig/common/artcat.fcl"' >> template.fcl echo 'outputs.out.fileName: "'${OUTFILENAME}'"' >> template.fcl