33# Note: requires relevant filelists in a directory above this one
44#
55if [ $# -ne 1 ]; then
6- echo " Usage: . ./validation/test_fcls.sh MDC202X "
6+ echo " Usage: . ./validation/test_fcls.sh [MDC2020 / MDC2025 / Run1B] "
77 return
88fi
99vMDC=$1
@@ -16,7 +16,7 @@ primary_dataset=""
1616mixed_dataset=" "
1717extracted_dataset=" "
1818digi_dataset=" "
19- crv_vst_dataset=" "
19+ crv_vst_dataset=" temp_crv_kpp "
2020
2121if [[ " $vMDC " == " MDC2020" ]]; then
2222 echo " Testing MDC2020 datasets"
@@ -25,16 +25,26 @@ if [[ "$vMDC" == "MDC2020" ]]; then
2525 mixed_dataset=" mcs.mu2e.CeEndpointMix1BBTriggered.MDC2020aw_best_v1_3.art"
2626 extracted_dataset=" mcs.mu2e.CosmicCRYExtractedTriggered.MDC2020aw.art"
2727 digi_dataset=" dig.mu2e.DIOtail95OnSpillTriggered.MDC2020au_perfect_v1_3.art"
28- crv_vst_dataset=" rec.mu2e.CRV_wideband_cosmics.CRVWBA-000-000-000.art"
2928elif [[ " $vMDC " == " MDC2025" ]]; then
3029 echo " Testing MDC2025 datasets"
3130 mock_dataset=" mcs.mu2e.ensembleMDS3aOnSpillTriggered.MDC2025af_best_v1_3.art"
3231 primary_dataset=" mcs.mu2e.CeEndpointOnSpillTriggered.MDC2025ae_best_v1_3.art"
33- mixed_dataset=" " # mcs.mu2e.CeEndpointMix1BBTriggered.MDC2020aw_best_v1_3.art"
34- echo " No MDC2025 mixed datasets exist. Some tests will fail..."
32+ mixed_dataset=" mcs.mu2e.CeMLeadingLogMix1BBTriggered.MDC2025af_best_v1_1.art"
3533 extracted_dataset=" mcs.mu2e.CosmicCRYExtractedTriggered.MDC2025ae_best_v1_3.art"
3634 digi_dataset=" dig.mu2e.FlatGammaMix1BBTriggered.MDC2025af_best_v1_1.art"
37- crv_vst_dataset=" rec.mu2e.CRV_wideband_cosmics.CRVWBA-000-000-000.art"
35+ elif [[ " $vMDC " == " Run1B" ]]; then
36+ echo " Testing Run1B datasets"
37+ echo " No mock datasets for Run1B - some tests will fail..."
38+ mock_dataset=" " # "mcs.mu2e.ensembleMDS3aOnSpillTriggered.MDC2025af_best_v1_3.art"
39+ primary_dataset=" mcs.mu2e.CeEndpointOnSpillTriggerable-KL.Run1Baf_best_v1_4-000.art"
40+ mixed_dataset=" mcs.mu2e.CeEndpointMix1BB-KL.Run1Bah_best_v1_4-001.art"
41+ echo " No extracted datasets for Run1B - some tests will fail..."
42+ extracted_dataset=" " # "mcs.mu2e.CosmicCRYExtractedTriggered.MDC2025ae_best_v1_3.art"
43+ echo " No reco+ntuple fcl for Run1B - some tests will fail..."
44+ digi_dataset=" " # "dig.mu2e.FlatGammaMix1BBTriggered.MDC2025af_best_v1_1.art"
45+ else
46+ echo " Unsupported option $vMDC "
47+ return
3848fi
3949
4050all_datasets=( $mock_dataset $primary_dataset $mixed_dataset $extracted_dataset $digi_dataset $crv_vst_dataset )
@@ -58,45 +68,45 @@ echo -n "from_mcs-mockdata.fcl... "
5868echo " mu2e -c fcl/from_mcs-mockdata.fcl -S ../filelists/$mock_dataset .list --TFileName nts.ntuple.mock.root -n 100" > ${log_file} 2>&1
5969mu2e -c fcl/from_mcs-mockdata.fcl -S ../filelists/$mock_dataset .list --TFileName nts.ntuple.mock.root -n 100 >> ${log_file} 2>&1
6070if [ $? == 0 ]; then
61- echo " OK"
71+ echo " OK" | tee -a ${log_file}
6272else
63- echo " FAIL"
73+ echo " FAIL" | tee -a ${log_file}
6474fi
6575
6676echo -n " from_mcs-mockdata_noMC.fcl... "
6777echo " mu2e -c fcl/from_mcs-mockdata_noMC.fcl -S ../filelists/$mock_dataset .list --TFileName nts.ntuple.mockNoMC.root -n 100" >> ${log_file} 2>&1
6878mu2e -c fcl/from_mcs-mockdata_noMC.fcl -S ../filelists/$mock_dataset .list --TFileName nts.ntuple.mockNoMC.root -n 100 >> ${log_file} 2>&1
6979if [ $? == 0 ]; then
70- echo " OK"
80+ echo " OK" | tee -a ${log_file}
7181else
72- echo " FAIL"
82+ echo " FAIL" | tee -a ${log_file}
7383fi
7484
7585echo -n " from_mcs-primary.fcl... "
7686echo " mu2e -c fcl/from_mcs-primary.fcl -S ../filelists/$primary_dataset .list --TFileName nts.ntuple.primary.root -n 100" >> ${log_file} 2>&1
7787mu2e -c fcl/from_mcs-primary.fcl -S ../filelists/$primary_dataset .list --TFileName nts.ntuple.primary.root -n 100 >> ${log_file} 2>&1
7888if [ $? == 0 ]; then
79- echo " OK"
89+ echo " OK" | tee -a ${log_file}
8090else
81- echo " FAIL"
91+ echo " FAIL" | tee -a ${log_file}
8292fi
8393
8494echo -n " from_mcs-mixed.fcl... "
8595echo " mu2e -c fcl/from_mcs-mixed.fcl -S ../filelists/$mixed_dataset .list --TFileName nts.ntuple.mixed.root -n 100" >> ${log_file} 2>&1
8696mu2e -c fcl/from_mcs-mixed.fcl -S ../filelists/$mixed_dataset .list --TFileName nts.ntuple.mixed.root -n 100 >> ${log_file} 2>&1
8797if [ $? == 0 ]; then
88- echo " OK"
98+ echo " OK" | tee -a ${log_file}
8999else
90- echo " FAIL"
100+ echo " FAIL" | tee -a ${log_file}
91101fi
92102
93103echo -n " from_mcs-extracted.fcl... "
94104echo " mu2e -c fcl/from_mcs-extracted.fcl -S ../filelists/$extracted_dataset .list --TFileName nts.ntuple.extracted.root -n 100" >> ${log_file} 2>&1
95105mu2e -c fcl/from_mcs-extracted.fcl -S ../filelists/$extracted_dataset .list --TFileName nts.ntuple.extracted.root -n 100 >> ${log_file} 2>&1
96106if [ $? == 0 ]; then
97- echo " OK"
107+ echo " OK" | tee -a ${log_file}
98108else
99- echo " FAIL"
109+ echo " FAIL" | tee -a ${log_file}
100110fi
101111
102112echo -n " from_mcs-ceSimReco.fcl... "
@@ -105,9 +115,9 @@ mu2e -c Production/Validation/ceSimReco.fcl -n 10 >> ${log_file} 2>&1
105115echo " mu2e -c fcl/from_mcs-ceSimReco.fcl -s mcs.owner.val-ceSimReco.dsconf.seq.art --TFileName nts.ntuple.ceSimReco.root" >> ${log_file} 2>&1
106116mu2e -c fcl/from_mcs-ceSimReco.fcl -s mcs.owner.val-ceSimReco.dsconf.seq.art --TFileName nts.ntuple.ceSimReco.root >> ${log_file} 2>&1
107117if [ $? == 0 ]; then
108- echo " OK"
118+ echo " OK" | tee -a ${log_file}
109119else
110- echo " FAIL"
120+ echo " FAIL" | tee -a ${log_file}
111121fi
112122
113123echo -n " from_mcs-ceSimRecoVal.fcl... "
@@ -118,80 +128,80 @@ mu2e -c validation/ceTrig.fcl -s mcs.owner.val-ceSimRecoVal.dsconf.seq.art --TFi
118128echo " mu2e -c fcl/from_mcs-ceSimRecoVal.fcl -s mcs.owner.val-ceTrig.dsconf.seq.art --TFileName nts.ntuple.ceSimRecoVal.root" >> ${log_file} 2>&1
119129mu2e -c fcl/from_mcs-ceSimRecoVal.fcl -s mcs.owner.val-ceTrig.dsconf.seq.art --TFileName nts.ntuple.ceTrig.root >> ${log_file} 2>&1
120130if [ $? == 0 ]; then
121- echo " OK"
131+ echo " OK" | tee -a ${log_file}
122132else
123- echo " FAIL"
133+ echo " FAIL" | tee -a ${log_file}
124134fi
125135
126136echo -n " from_mcs-mockdata_separateTrkBranches.fcl... "
127137echo " mu2e -c fcl/from_mcs-mockdata_separateTrkBranches.fcl -S ../filelists/${mock_dataset} .list --TFileName nts.ntuple.mockSepTrkBranches.root -n 100" >> ${log_file} 2>&1
128138mu2e -c fcl/from_mcs-mockdata_separateTrkBranches.fcl -S ../filelists/${mock_dataset} .list --TFileName nts.ntuple.mockSepTrkBranches.root -n 100 >> ${log_file} 2>&1
129139if [ $? == 0 ]; then
130- echo " OK"
140+ echo " OK" | tee -a ${log_file}
131141else
132- echo " FAIL"
142+ echo " FAIL" | tee -a ${log_file}
133143fi
134144
135145echo -n " from_mcs-mockdata_selectorExample.fcl... "
136146echo" mu2e -c fcl/from_mcs-mockdata_selectorExample.fcl -S ../filelists/${mock_dataset} .list --TFileName nts.ntuple.mockSelector.root -n 100" >> ${log_file} 2>&1
137147mu2e -c fcl/from_mcs-mockdata_selectorExample.fcl -S ../filelists/${mock_dataset} .list --TFileName nts.ntuple.mockSelector.root -n 100 >> ${log_file} 2>&1
138148if [ $? == 0 ]; then
139- echo " OK"
149+ echo " OK" | tee -a ${log_file}
140150else
141- echo " FAIL"
151+ echo " FAIL" | tee -a ${log_file}
142152fi
143153
144154echo -n " from_mcs-primary_addVDSteps.fcl... "
145155echo " mu2e -c fcl/from_mcs-primary_addVDSteps.fcl -S ../filelists/$primary_dataset .list --TFileName nts.ntuple.primaryVDSteps.root -n 100" >> ${log_file} 2>&1
146156mu2e -c fcl/from_mcs-primary_addVDSteps.fcl -S ../filelists/$primary_dataset .list --TFileName nts.ntuple.primaryVDSteps.root -n 100 >> ${log_file} 2>&1
147157if [ $? == 0 ]; then
148- echo " OK"
158+ echo " OK" | tee -a ${log_file}
149159else
150- echo " FAIL"
160+ echo " FAIL" | tee -a ${log_file}
151161fi
152162
153163
154164echo -n " from_dig-mockdata.fcl... "
155165echo " mu2e -c fcl/from_dig-mockdata.fcl -S ../filelists/${digi_dataset} .list --TFileName nts.ntuple.dig.root -n 100" >> ${log_file} 2>&1
156166mu2e -c fcl/from_dig-mockdata.fcl -S ../filelists/${digi_dataset} .list --TFileName nts.ntuple.dig.root -n 100 >> ${log_file} 2>&1
157167if [ $? == 0 ]; then
158- echo " OK"
168+ echo " OK" | tee -a ${log_file}
159169else
160- echo " FAIL"
170+ echo " FAIL" | tee -a ${log_file}
161171fi
162172
163173echo -n " creating file for validation script... "
164174echo " mu2e -c fcl/from_mcs-mockdata.fcl -S ../filelists/${mock_dataset} .list --TFileName nts.ntuple.after.root -n 100" >> ${log_file} 2>&1
165175mu2e -c fcl/from_mcs-mockdata.fcl -S ../filelists/${mock_dataset} .list --TFileName nts.ntuple.after.root -n 100 >> ${log_file} 2>&1
166176if [ $? == 0 ]; then
167- echo " OK"
177+ echo " OK" | tee -a ${log_file}
168178else
169- echo " FAIL"
179+ echo " FAIL" | tee -a ${log_file}
170180fi
171181
172182echo -n " creating validation file... "
173183echo " root -l -b -q validation/create_val_file_rooutil.C\(\" nts.ntuple.after.root\" ,\" val.ntuple.after.root\" \)" >> ${log_file} 2>&1
174184root -l -b -q validation/create_val_file_rooutil.C\(\" nts.ntuple.after.root\" ,\" val.ntuple.after.root\"\) >> ${log_file} 2>&1
175185if [ $? == 0 ]; then
176- echo " OK"
186+ echo " OK" | tee -a ${log_file}
177187else
178- echo " FAIL"
188+ echo " FAIL" | tee -a ${log_file}
179189fi
180190
181191echo -n " from_rec-crv-vst.fcl... "
182192echo " mu2e -c fcl/from_rec-crv-vst.fcl -S ../filelists/${crv_vst_dataset} .list --TFileName nts.ntuple.crv-vst.root -n 100" >> ${log_file} 2>&1
183193mu2e -c fcl/from_rec-crv-vst.fcl -S ../filelists/${crv_vst_dataset} .list --TFileName nts.ntuple.crv-vst.root -n 100 >> ${log_file} 2>&1
184194if [ $? == 0 ]; then
185- echo " OK"
195+ echo " OK" | tee -a ${log_file}
186196else
187- echo " FAIL"
197+ echo " FAIL" | tee -a ${log_file}
188198fi
189199
190200echo -n " from_mcs-DeCalib.fcl... "
191201echo " mu2e -c fcl/from_mcs-DeCalib.fcl -S ../filelists/${mixed_dataset} .list --TFileName nts.ntuple.deCalib.root -n 100" >> ${log_file} 2>&1
192202mu2e -c fcl/from_mcs-DeCalib.fcl -S ../filelists/${mixed_dataset} .list --TFileName nts.ntuple.deCalib.root -n 100 >> ${log_file} 2>&1
193203if [ $? == 0 ]; then
194- echo " OK"
204+ echo " OK" | tee -a ${log_file}
195205else
196- echo " FAIL"
206+ echo " FAIL" | tee -a ${log_file}
197207fi
0 commit comments