Skip to content

Commit acd73f3

Browse files
authored
AssignBunchTimingMC tool + config file changes (#323)
* Update AssignBunchTimingMC.cpp new neutrino propagation time to the tank, from James' new tank samples with a narrowed flux window. Add this tool (and its config) to James' CC analysis toolchain and the MC BeamCluster toolchain. Add config variables that the tool asks for. Tank clustering, MRD clustering, and trigger clustering are all default 1 but best to add it in. Also added the AssignBunchTiming
1 parent f4a5486 commit acd73f3

File tree

8 files changed

+38
-7
lines changed

8 files changed

+38
-7
lines changed

UserTools/AssignBunchTimingMC/AssignBunchTimingMC.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ bool AssignBunchTimingMC::LoadStores()
175175

176176
void AssignBunchTimingMC::BNBtiming()
177177
{
178-
// Determined from GENIE samples (as of Oct 2024)
179-
const double tank_time = 67.0; // Tank neutrino arrival time: 67ns
180-
const double world_time = 33.0; // WORLD neutrino arrival time: 33ns
178+
// Determined from GENIE samples (as of Dec 2024)
179+
const double tank_time = 33.0; // Tank neutrino arrival time: 33ns
180+
const double world_time = 33.0; // WORLD neutrino arrival time: 33ns (As of Dec 2024, World samples have not yet been re-produced fully)
181181

182182
if (ftriggertime == 0) {
183183
new_nu_time = (fsample == 0) ? (TrueNuIntxVtx_T - tank_time) : (TrueNuIntxVtx_T - world_time);

UserTools/AssignBunchTimingMC/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ bunchinterval 18.936 # BNB bunch spacings [ns]
2121
bunchcount 81 # number of BNB bunches per spill
2222
2323
sampletype 0 # Tank (0) or World (1) genie samples you are running over
24-
prompttriggertime 0 # WCSim prompt trigger settings: (0 = default, t0 = 0 when a particle enters the volume)
24+
prompttriggertime 1 # WCSim prompt trigger settings: (0 = default, t0 = 0 when a particle enters the volume)
2525
# (1 = modified, t0 = 0 when the neutrino beam dump begins)
2626
```
2727

2828

2929
## Additional information
3030

31-
The "bunchTimes" have a spill structure that starts at ~0 ns and extends to M ns (depending on the bunch spacing and number of bunches). The tool is currently configured to the most recent Genie sample production (tank: 2023, world: early 2024) for both the WCSim tank and world events (both of which have different "beam dump" starting times and prompt trigger times).
31+
The "bunchTimes" have a spill structure that starts at ~0 ns and extends to M ns (depending on the bunch spacing and number of bunches). The tool is currently configured to the most recent Genie sample production (tank: Dec 2024, world: early 2024) for both the WCSim tank and world events (both of which have different "beam dump" starting times and prompt trigger times).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# AssignBunchTimingMC Config File
2+
3+
verbosity 0
4+
5+
# BNB properties taken from: MicroBooNE https://doi.org/10.1103/PhysRevD.108.052010
6+
bunchwidth 1.308 # BNB instrinic bunch spread [ns]
7+
bunchinterval 18.936 # BNB bunch spacings [ns]
8+
bunchcount 81 # number of BNB bunches per spill
9+
10+
sampletype 0 # Tank (0) or World (1) genie samples you are running over
11+
prompttriggertime 1 # WCSim prompt trigger settings: (0 = default, t0 = 0 when a particle enters the volume)
12+
# (1 = modified, t0 = 0 when the neutrino beam dump begins)

configfiles/BeamClusterAnalysisMC/PhaseIITreeMakerConfig

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
verbose 5
22

3-
OutputFile MCBeam_Gst_new_Run9000_NoSplitSubTriggers.ntuple.root
3+
OutputFile MCBeam.ntuple.root
44
TankClusterProcessing 1
55
MRDClusterProcessing 1
66
TriggerProcessing 1
@@ -17,4 +17,5 @@ SimpleReco_fill 0
1717
Reweight_fill 0
1818
muonTruthRecoDiff_fill 0
1919
IsData 0
20-
HasGenie 0
20+
HasGenie 1
21+
HasBNBtimingMC 1

configfiles/BeamClusterAnalysisMC/ToolsConfig

+1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ myFindMrdTracks FindMrdTracks configfiles/BeamClusterAnalysisMC/FindMrdTracksCon
99
myClusterFinder ClusterFinder ./configfiles/BeamClusterAnalysisMC/ClusterFinderConfig
1010
myClusterClassifiers ClusterClassifiers ./configfiles/BeamClusterAnalysisMC/ClusterClassifiersConfig
1111
myEventSelector EventSelector ./configfiles/BeamClusterAnalysisMC/EventSelectorConfig
12+
myAssignBunchTimingMC AssignBunchTimingMC ./configfiles/BeamClusterAnalysisMC/AssignBunchTimingMCConfig
1213
myPhaseIITreeMaker PhaseIITreeMaker ./configfiles/BeamClusterAnalysisMC/PhaseIITreeMakerConfig
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# AssignBunchTimingMC Config File
2+
3+
verbosity 0
4+
5+
# BNB properties taken from: MicroBooNE https://doi.org/10.1103/PhysRevD.108.052010
6+
bunchwidth 1.308 # BNB instrinic bunch spread [ns]
7+
bunchinterval 18.936 # BNB bunch spacings [ns]
8+
bunchcount 81 # number of BNB bunches per spill
9+
10+
sampletype 0 # Tank (0) or World (1) genie samples you are running over
11+
prompttriggertime 1 # WCSim prompt trigger settings: (0 = default, t0 = 0 when a particle enters the volume)
12+
# (1 = modified, t0 = 0 when the neutrino beam dump begins)

configfiles/CC_MC_RECO_ntuple/PhaseIITreeMakerConfig

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ SimpleReco_fill 1
1515
RingCounting_fill 1
1616
Reweight_fill 1
1717
MuonFitter_fill 1
18+
HasBNBtimingMC 1
19+
TankClusterProcessing 1
20+
MRDClusterProcessing 1
21+
TriggerProcessing 1
1822

1923
OutputFile PhaseIITree_0.0.0.root
2024
#NumEventsWritten 2000

configfiles/CC_MC_RECO_ntuple/ToolsConfig

+1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ myRingCounting PythonScript configfiles/CC_MC_RECO_ntuple/RingCountingConfig
1919
#myVtxExtendedVertexFinder VtxExtendedVertexFinder
2020
#mySimpleReconstruction SimpleReconstruction configfiles/CC_MC_RECO_ntuple/SimpleReconstructionConfig
2121
myMuonFitter MuonFitter configfiles/CC_MC_RECO_ntuple/MuonFitterConfig
22+
myAssignBunchTimingMC AssignBunchTimingMC ./configfiles/CC_MC_RECO_ntuple/AssignBunchTimingMCConfig
2223
myPhaseIITreeMaker PhaseIITreeMaker configfiles/CC_MC_RECO_ntuple/PhaseIITreeMakerConfig
2324

0 commit comments

Comments
 (0)