Skip to content

Commit c2df7b8

Browse files
committed
rework stage0 optical workflow for data, mc, overlay
1 parent 5ad6287 commit c2df7b8

10 files changed

Lines changed: 41 additions & 28 deletions

fcl/reco/Definitions/enable_overlay_sp.fcl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
# add timing corrections to optical path
2+
physics.producers.ophit: @local::icarus_ophit_timing_correction
3+
14
# Exclude crthit from path -- not needed since it's included at overlay stage
2-
physics.path: [ @sequence::icarus_stage0_mc_PMT,
5+
physics.path: [ @sequence::icarus_stage0_overlay_PMT,
36
MCDecodeTPCROI,
47
@sequence::icarus_stage0_2d_multiTPC,
58
@sequence::icarus_stage0_mc_crtreco
@@ -11,5 +14,6 @@ physics.producers.pmtbaselines.OpticalWaveforms: "overlayOpWaveforms"
1114
physics.producers.pmtfixedthr.OpticalWaveforms: "overlayOpWaveforms"
1215
physics.producers.opdetonbeam.OpticalWaveforms: "overlayOpWaveforms"
1316
physics.producers.ophituncorrected.InputModule: "overlayOpWaveforms"
17+
physics.producers.ophit.InputLabels: [ "ophituncorrected" ]
1418
physics.producers.crttrack.DataLabelHits: "overlayCRTHit"
1519
physics.producers.crtpmt.CrtHitModuleLabel: "overlayCRTHit"

fcl/reco/Definitions/stage0_icarus_mc_defs.fcl

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,40 +39,48 @@ icarus_stage0_mc_producers:
3939
pmtbaselines: @local::icarus_opreco_pedestal_fromchannel_MC # from icarus_ophitfinder.fcl
4040
opdetonbeam: @local::copyPMTonBeam # from decoderdefs_icarus.fcl
4141
ophituncorrected: @local::icarus_ophit_data
42-
ophit: @local::icarus_ophit_timing_correction
42+
ophit: @local::icarus_ophit_MC
4343
mcophit: @local::ICARUSMCOpHit
4444

4545
## crt producer
4646
crthit: @local::standard_crtsimhitproducer
4747
crttrack: @local::standard_crttrackproducer
48-
crtpmt: @local::standard_crtpmtmatchingproducer
48+
crtpmt: @local::standard_crtpmtmatchingproducer
4949
}
5050

5151
# make the following modifications to job flow for MC vs the data
5252
icarus_stage0_mc_trigger: [
53-
pmtfixedthr
54-
, @sequence::icarus_standard_triggersim.path # from trigger_emulation_icarus.fcl
53+
pmtfixedthr,
54+
@sequence::icarus_standard_triggersim.path # from trigger_emulation_icarus.fcl
5555
]
5656

5757
icarus_stage0_mc_PMT: [
5858
@sequence::icarus_stage0_mc_trigger,
5959
pmtbaselines,
60-
ophituncorrected,
61-
ophit,
60+
ophit, # @local::icarus_ophit_MC
6261
mcophit,
6362
opflashCryoE,
6463
opflashCryoW
6564
]
6665

66+
icarus_stage0_overlay_PMT: [
67+
@sequence::icarus_stage0_mc_trigger,
68+
pmtbaselines,
69+
ophituncorrected, # @local::icarus_ophit_data
70+
ophit, # ovveride to @local::icarus_ophit_timing_correction
71+
mcophit,
72+
opflashCryoE,
73+
opflashCryoW
74+
]
75+
6776
icarus_stage0_mc_crthit: [crthit]
6877
icarus_stage0_mc_crtreco: [crttrack, crtpmt]
6978

7079
# adapt input labels
7180
icarus_stage0_mc_producers.emuTrigger.BeamGates: shifted
7281
icarus_stage0_mc_producers.triggersimgates.module_type: DummyProducer # Don't rerun. We have already adjusted the BeamGate
7382
icarus_stage0_mc_producers.mcophit.SimPhotonsProducer: shifted
74-
icarus_stage0_mc_producers.ophituncorrected.InputModule: shifted
75-
icarus_stage0_mc_producers.ophit.InputLabels: ["ophituncorrected"]
83+
icarus_stage0_mc_producers.ophit.InputModule: shifted
7684
icarus_stage0_mc_producers.opdetonbeam.Waveforms: shifted
7785
icarus_stage0_mc_producers.opdetonbeam.WaveformBaselineAssns: pmtbaselines
7886
icarus_stage0_mc_producers.pmtbaselines.OpticalWaveforms: shifted

fcl/reco/Stage0/mc/stage0_run2_icarus_mc.fcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,7 @@ physics.producers.purityana1.RawModuleLabel: ["MCDecodeTPCROI:PHYSCRATEDATATPC
6464

6565
# restore legacy G4 labels
6666
physics.producers.mcophit.SimPhotonsProducer: "shifted"
67+
68+
# set RUN-2 tune for optical reconstruction
69+
physics.producers.ophit.SPEArea: @local::SPERun2.Area
70+
physics.producers.ophit.SPEShift: @local::SPERun2.Shift

fcl/reco/Stage0/mc/stage0_run2_icarus_mc_notriggersim.fcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
physics.producers.emuTrigger.BeamGates: "beamgate"
55
physics.producers.mcophit.SimPhotonsProducer: "pdfastsim"
66
physics.producers.opdetonbeam.Waveforms: "opdaq"
7+
physics.producers.ophit.InputModule: "opdaq"
78
physics.producers.pmtbaselines.OpticalWaveforms: "opdaq"
89
physics.producers.pmtfixedthr.OpticalWaveforms: "opdaq"

fcl/reco/Stage0/mc/stage0_run2_wc_icarus_mc.fcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,7 @@ physics.producers.purityana1.RawModuleLabel: ["MCDecodeTPCROI:PHYSCRATEDATATPC
5656

5757
# restore legacy G4 labels
5858
physics.producers.mcophit.SimPhotonsProducer: "shifted"
59+
60+
# set RUN-2 tune for optical reconstruction
61+
physics.producers.ophit.SPEArea: @local::SPERun2.Area
62+
physics.producers.ophit.SPEShift: @local::SPERun2.Shift

fcl/reco/Stage0/mc/stage0_run2_wc_icarus_mc_notriggersim.fcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ physics.producers.ophituncorrected.InputModule: "opdaq"
55
physics.producers.emuTrigger.BeamGates: "beamgate"
66
physics.producers.mcophit.SimPhotonsProducer: "pdfastsim"
77
physics.producers.opdetonbeam.Waveforms: "opdaq"
8+
physics.producers.ophit.InputModule: "opdaq"
89
physics.producers.pmtbaselines.OpticalWaveforms: "opdaq"
910
physics.producers.pmtfixedthr.OpticalWaveforms: "opdaq"

fcl/reco/Stage0/partial/stage0_run2_opdetonly_icarus_overlay_reprocessing.fcl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@ process_name: OpMCstage0
99
## - need to pick correct reconstruction tune for PMT flow
1010

1111
# execute PMT/CRT only path
12-
physics.path: [ @sequence::icarus_stage0_mc_PMT,
12+
physics.path: [ @sequence::icarus_stage0_overlay_PMT,
1313
@sequence::icarus_stage0_mc_crtreco # only reco, hits from overlay
1414
]
1515

16-
# update ophit procedurs to pick up Run-2 SPE tune
17-
physics.producers.ophituncorrected.SPEArea: @local::SPERun2.Area
18-
physics.producers.ophituncorrected.SPEShift: @local::SPERun2.Shift
19-
physics.producers.ophitfulluncorrected.SPEArea: @local::SPERun2.Area
20-
physics.producers.ophitfulluncorrected.SPEShift: @local::SPERun2.Shift
16+
# update mcophit producer to pick up Run-2 SPE tune
17+
# main ophit producer picks up from the SPEArea database
2118
physics.producers.mcophit.SPEArea: @local::SPERun2.Area
2219
physics.producers.mcophit.SPEAmplitude: @local::SPERun2.Amplitude
2320

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#include "stage0_run2_opdetonly_icarus_overlay_reprocessing.fcl"
22

3-
# update ophit procedurs to pick up Run-3 SPE tune
4-
physics.producers.ophituncorrected.SPEArea: @local::SPERun3.Area
5-
physics.producers.ophituncorrected.SPEShift: @local::SPERun3.Shift
6-
physics.producers.ophitfulluncorrected.SPEArea: @local::SPERun3.Area
7-
physics.producers.ophitfulluncorrected.SPEShift: @local::SPERun3.Shift
3+
# update mcophit producer to pick up Run-3 SPE tune
4+
# main ophit producer picks up from the SPEArea database
85
physics.producers.mcophit.SPEArea: @local::SPERun3.Area
96
physics.producers.mcophit.SPEAmplitude: @local::SPERun3.Amplitude
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#include "stage0_run2_opdetonly_icarus_overlay_reprocessing.fcl"
22

33
# update ophit procedurs to pick up Run-4 SPE tune
4-
physics.producers.ophituncorrected.SPEArea: @local::SPERun4.Area
5-
physics.producers.ophituncorrected.SPEShift: @local::SPERun4.Shift
6-
physics.producers.ophitfulluncorrected.SPEArea: @local::SPERun4.Area
7-
physics.producers.ophitfulluncorrected.SPEShift: @local::SPERun4.Shift
4+
# main ophit producer picks up from the SPEArea database
85
physics.producers.mcophit.SPEArea: @local::SPERun4.Area
96
physics.producers.mcophit.SPEAmplitude: @local::SPERun4.Amplitude

icaruscode/PMT/OpReco/fcl/icarus_ophitfinder.fcl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,11 @@ icarus_ophit: # some basic configuration
191191
InputModule: "opdaq"
192192
InputLabels: []
193193
ChannelMasks: []
194-
UseCalibrator: true
194+
UseCalibrator: true # use calibrator service (SPEArea database)
195+
# if true, overrides SPEArea / SPEShift below
195196
HitThreshold: 0.2 # PE
196197
AreaToPE: true # Use area to calculate number of PEs
197-
SPEArea: @local::SPE.Area # If AreaToPE is true, this number is
198+
SPEArea: @local::SPE.Area # If AreaToPE is true, this number is
198199
# used as single PE area (in ADC counts)
199200
SPEShift: @local::SPE.Shift # Used by PhotonCalibratorStandard to compute
200201
# PE = area / SPEArea + SPEShift
@@ -216,7 +217,7 @@ icarus_ophitdebugger.OutputFile: "ophit_debug.root"
216217
# this is the "standard" ICARUS configuration for MC optical hit reconstruction:
217218
icarus_ophit_MC: {
218219
@table::icarus_ophit
219-
PedAlgoPset: @local::icarus_opreco_pedestal_MC_DocDB24969
220+
UseCalibrator: false
220221
InputModule: "opdaq"
221222
}
222223

@@ -229,7 +230,6 @@ icarus_ophitdebugger_MC.OutputFile: "ophit_debug.root"
229230
icarus_ophit_data: {
230231
@table::icarus_ophit
231232
InputModule: "daqPMT"
232-
# PedAlgoPset: @local::icarus_opreco_pedestal_DocDB24969
233233
}
234234

235235
icarus_ophitdebugger_data: @local::icarus_ophit_data

0 commit comments

Comments
 (0)