From 0b7874a19b8a38a8ecde927f2e71bdc82782ebe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20S=C3=A1nchez=20Castillo?= Date: Tue, 25 Nov 2025 03:15:44 -0600 Subject: [PATCH 1/8] Fix drift estimator file for realistic MC --- .../OpDetReco/OpDeconvolution/job/sbnd_flashfinder_deco.fcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbndcode/OpDetReco/OpDeconvolution/job/sbnd_flashfinder_deco.fcl b/sbndcode/OpDetReco/OpDeconvolution/job/sbnd_flashfinder_deco.fcl index 41d453e49..610e9c818 100644 --- a/sbndcode/OpDetReco/OpDeconvolution/job/sbnd_flashfinder_deco.fcl +++ b/sbndcode/OpDetReco/OpDeconvolution/job/sbnd_flashfinder_deco.fcl @@ -62,6 +62,7 @@ SBNDDecoSimpleFlashTPC0_realisticMC.OpHitInputTime: "RiseTime" SBNDDecoSimpleFlashTPC0_realisticMC.UseT0Tool: true SBNDDecoSimpleFlashTPC0_realisticMC.ReadoutDelay: 0 //cable time delay in us SBNDDecoSimpleFlashTPC0_realisticMC.CorrectLightPropagation: true +SBNDDecoSimpleFlashTPC0_realisticMC.DriftEstimatorConfig.CalibrationFile: "OpDetReco/PMTRatioCalibration_MC2.root" #TPC1 SBNDDecoSimpleFlashTPC1_realisticMC: @local::SBNDSimpleFlashTPC1 @@ -73,7 +74,7 @@ SBNDDecoSimpleFlashTPC1_realisticMC.OpHitInputTime: "RiseTime" SBNDDecoSimpleFlashTPC1_realisticMC.UseT0Tool: true SBNDDecoSimpleFlashTPC1_realisticMC.ReadoutDelay: 0 //cable time delay in us SBNDDecoSimpleFlashTPC1_realisticMC.CorrectLightPropagation: true -SBNDDecoSimpleFlashTPC1_realisticMC.DriftEstimatorConfig.CalibrationFile: "OpDetReco/PMTRatioCalibration_data_v2.root" +SBNDDecoSimpleFlashTPC1_realisticMC.DriftEstimatorConfig.CalibrationFile: "OpDetReco/PMTRatioCalibration_MC2.root" ###### XA IDEAL MC ###### From 9c5726ee90f66f5f91114f793cd0e89601474a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20S=C3=A1nchez=20Castillo?= Date: Tue, 25 Nov 2025 03:16:03 -0600 Subject: [PATCH 2/8] Use realistic MC for MC --- .../OpDetReco/OpDeconvolution/job/run_decohitfinder.fcl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbndcode/OpDetReco/OpDeconvolution/job/run_decohitfinder.fcl b/sbndcode/OpDetReco/OpDeconvolution/job/run_decohitfinder.fcl index eafb84707..620494d98 100644 --- a/sbndcode/OpDetReco/OpDeconvolution/job/run_decohitfinder.fcl +++ b/sbndcode/OpDetReco/OpDeconvolution/job/run_decohitfinder.fcl @@ -41,10 +41,10 @@ physics: { producers: { - opdecopmt: @local::SBNDOpDeconvolutionPMT - ophitpmt: @local::SBNDDecoOpHitFinderPMT - opflashtpc0: @local::SBNDDecoSimpleFlashTPC0 - opflashtpc1: @local::SBNDDecoSimpleFlashTPC1 + opdecopmt: @local::SBNDOpDeconvolutionPMT_realisticMC + ophitpmt: @local::SBNDDecoOpHitFinderPMT_realisticMC + opflashtpc0: @local::SBNDDecoSimpleFlashTPC0_realisticMC + opflashtpc1: @local::SBNDDecoSimpleFlashTPC1_realisticMC opdecoxarapuca: @local::SBNDOpDeconvolutionXARAPUCA ophitxarapuca: @local::SBNDDecoOpHitFinderXArapuca From c5f52b455b51539f26c2e919346283ae610410b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20S=C3=A1nchez=20Castillo?= Date: Tue, 25 Nov 2025 04:11:19 -0600 Subject: [PATCH 3/8] Remove XA reco for light-only reco fcl --- .../OpDeconvolution/job/run_decohitfinder.fcl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sbndcode/OpDetReco/OpDeconvolution/job/run_decohitfinder.fcl b/sbndcode/OpDetReco/OpDeconvolution/job/run_decohitfinder.fcl index 620494d98..979cfd596 100644 --- a/sbndcode/OpDetReco/OpDeconvolution/job/run_decohitfinder.fcl +++ b/sbndcode/OpDetReco/OpDeconvolution/job/run_decohitfinder.fcl @@ -50,19 +50,18 @@ physics: ophitxarapuca: @local::SBNDDecoOpHitFinderXArapuca opflashdecotpc0arapuca: @local::SBNDDecoSimpleFlashTPC0Arapuca opflashdecotpc1arapuca: @local::SBNDDecoSimpleFlashTPC1Arapuca - } reco: [ opdecopmt, ophitpmt, opflashtpc0, - opflashtpc1, + opflashtpc1 - opdecoxarapuca, - ophitxarapuca, - opflashdecotpc0arapuca, - opflashdecotpc1arapuca + #opdecoxarapuca, + #ophitxarapuca, + #opflashdecotpc0arapuca, + #opflashdecotpc1arapuca ] From 83c2e89717699a54a8fd32d2dbfa130667f7e38e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20S=C3=A1nchez=20Castillo?= Date: Tue, 25 Nov 2025 04:11:38 -0600 Subject: [PATCH 4/8] Feed correct label into ophit reconstruction --- .../OpDetReco/OpDeconvolution/job/sbnd_ophitfinder_deco.fcl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sbndcode/OpDetReco/OpDeconvolution/job/sbnd_ophitfinder_deco.fcl b/sbndcode/OpDetReco/OpDeconvolution/job/sbnd_ophitfinder_deco.fcl index 989fe0193..455d2b5ff 100644 --- a/sbndcode/OpDetReco/OpDeconvolution/job/sbnd_ophitfinder_deco.fcl +++ b/sbndcode/OpDetReco/OpDeconvolution/job/sbnd_ophitfinder_deco.fcl @@ -103,7 +103,5 @@ SBNDDecoOpHitFinderPMT_data.PedAlgoPset.Method:2 #####OpHit finder for PMT deconvolved waveforms##### SBNDDecoOpHitFinderPMT_realisticMC: @local::SBNDDecoOpHitFinderPMT_data -####SPE area must be 1./DecoWaveformPrecision -SBNDDecoOpHitFinderPMT_realisticMC.InputModule: "pmtpulseoscillation" -END_PROLOG +END_PROLOG \ No newline at end of file From 76f1927269dac6d3a5eff9fc0e9b921e1d35d927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20S=C3=A1nchez=20Castillo?= Date: Tue, 25 Nov 2025 10:03:05 -0600 Subject: [PATCH 5/8] Update PMT baseline --- sbndcode/OpDetSim/digi_pmt_sbnd.fcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbndcode/OpDetSim/digi_pmt_sbnd.fcl b/sbndcode/OpDetSim/digi_pmt_sbnd.fcl index 801220e7a..02d8f736b 100644 --- a/sbndcode/OpDetSim/digi_pmt_sbnd.fcl +++ b/sbndcode/OpDetSim/digi_pmt_sbnd.fcl @@ -23,8 +23,8 @@ sbnd_digipmt_alg: CableTime: 135 #time delay of the 30 m long readout cable in ns # Digitizer simulation - PMTADCDynamicRange: 14745 #in ADC values - PMTBaseline: 14745 #in ADC + PMTADCDynamicRange: 14250 #in ADC values + PMTBaseline: 14250 #in ADC PMTBaselineRMS: 2.6 #in ADC #Sample noise from data From 2a9ecbcb0af5d694a07901d53436e9cf2dd1a24d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20S=C3=A1nchez=20Castillo?= Date: Tue, 25 Nov 2025 10:15:04 -0600 Subject: [PATCH 6/8] Update PMT detection efficiencies --- sbndcode/OpDetSim/digi_pmt_sbnd.fcl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sbndcode/OpDetSim/digi_pmt_sbnd.fcl b/sbndcode/OpDetSim/digi_pmt_sbnd.fcl index 02d8f736b..0f93a4ed3 100644 --- a/sbndcode/OpDetSim/digi_pmt_sbnd.fcl +++ b/sbndcode/OpDetSim/digi_pmt_sbnd.fcl @@ -35,12 +35,12 @@ sbnd_digipmt_alg: PMTDarkNoiseRate: 1000.0 #in Hz # Detection efficiencies - PMTCoatedVUVEff_tpc0: 0.0315 #PMT coated detection efficiency for direct (VUV) light - PMTCoatedVISEff_tpc0: 0.03493 #PMT coated detection efficiency for reflected (VIS) light - PMTUncoatedEff_tpc0: 0.03382 #PMT uncoated detection efficiency + PMTCoatedVUVEff_tpc0: 0.0385 #PMT coated detection efficiency for direct (VUV) light + PMTCoatedVISEff_tpc0: 0.026 #PMT coated detection efficiency for reflected (VIS) light + PMTUncoatedEff_tpc0: 0.0357 #PMT uncoated detection efficiency - PMTCoatedVUVEff_tpc1: 0.027 #PMT coated detection efficiency for direct (VUV) light - PMTCoatedVISEff_tpc1: 0.03493 #PMT coated detection efficiency for reflected (VIS) light + PMTCoatedVUVEff_tpc1: 0.0392 #PMT coated detection efficiency for direct (VUV) light + PMTCoatedVISEff_tpc1: 0.026 #PMT coated detection efficiency for reflected (VIS) light PMTUncoatedEff_tpc1: 0.03382 #PMT uncoated detection efficiency # Simulate gain fluctuations From 69de5930bfdd8fbeb1e1fbe23fa36b9d2ce7adc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20S=C3=A1nchez=20Castillo?= Date: Tue, 25 Nov 2025 11:22:37 -0600 Subject: [PATCH 7/8] Update PMT Eff for better data/MC agreement --- sbndcode/OpDetSim/digi_pmt_sbnd.fcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbndcode/OpDetSim/digi_pmt_sbnd.fcl b/sbndcode/OpDetSim/digi_pmt_sbnd.fcl index 0f93a4ed3..2455568af 100644 --- a/sbndcode/OpDetSim/digi_pmt_sbnd.fcl +++ b/sbndcode/OpDetSim/digi_pmt_sbnd.fcl @@ -35,7 +35,7 @@ sbnd_digipmt_alg: PMTDarkNoiseRate: 1000.0 #in Hz # Detection efficiencies - PMTCoatedVUVEff_tpc0: 0.0385 #PMT coated detection efficiency for direct (VUV) light + PMTCoatedVUVEff_tpc0: 0.0392 #PMT coated detection efficiency for direct (VUV) light PMTCoatedVISEff_tpc0: 0.026 #PMT coated detection efficiency for reflected (VIS) light PMTUncoatedEff_tpc0: 0.0357 #PMT uncoated detection efficiency From 7724abcc0bccbf95849c4342d4b9dda21822e589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20S=C3=A1nchez=20Castillo?= Date: Tue, 25 Nov 2025 11:23:07 -0600 Subject: [PATCH 8/8] Update PMT Eff for better data/MC agreement --- sbndcode/OpDetSim/digi_pmt_sbnd.fcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbndcode/OpDetSim/digi_pmt_sbnd.fcl b/sbndcode/OpDetSim/digi_pmt_sbnd.fcl index 2455568af..ebba48454 100644 --- a/sbndcode/OpDetSim/digi_pmt_sbnd.fcl +++ b/sbndcode/OpDetSim/digi_pmt_sbnd.fcl @@ -41,7 +41,7 @@ sbnd_digipmt_alg: PMTCoatedVUVEff_tpc1: 0.0392 #PMT coated detection efficiency for direct (VUV) light PMTCoatedVISEff_tpc1: 0.026 #PMT coated detection efficiency for reflected (VIS) light - PMTUncoatedEff_tpc1: 0.03382 #PMT uncoated detection efficiency + PMTUncoatedEff_tpc1: 0.0357 #PMT uncoated detection efficiency # Simulate gain fluctuations # (comment-out to skip gain fluctuations simulation)