Skip to content

Commit 2d76cd9

Browse files
Merge branch 'develop' into lnguyen/frame_shift_pr_dev
2 parents 7161277 + eaeddea commit 2d76cd9

35 files changed

Lines changed: 2223 additions & 213 deletions

sbndcode/Decoders/XARAPUCA/SBNDXARAPUCADecoder_module.cc

Lines changed: 458 additions & 163 deletions
Large diffs are not rendered by default.

sbndcode/Decoders/XARAPUCA/run_xarapucadecoder.fcl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "xarapucadecoder.fcl"
22
#include "spectdc_decoder_sbnd.fcl"
3+
#include "SBNDPTBDecoderDefaults.fcl"
34

45
process_name: XARAPUCADecoder
56

@@ -9,20 +10,22 @@ services: {
910

1011
source: {
1112
module_type: RootInput
12-
maxEvents: -1
13+
maxEvents: -1 # Number of events to be processed, -1 = all events.
1314
}
1415

1516
outputs: {
1617
out1: {
1718
module_type: RootOutput
1819
fileName: "xarapucadecoder-art.root" # Output file containing the module products.
20+
dataTier: "decoded-raw"
1921
}
2022
}
2123

2224
physics: {
2325

2426
producers: {
2527
tdcdecoder: @local::spec_tdc_decoder_sbnd
28+
ptbdecoder: @local::SBNDPTBDecoderDefaults
2629
xarapucadecoder: @local::xarapucadecoder
2730
}
2831

@@ -31,7 +34,7 @@ physics: {
3134
analyzers:{}
3235

3336

34-
reco: [tdcdecoder, xarapucadecoder]
37+
reco: [tdcdecoder, ptbdecoder, xarapucadecoder]
3538

3639

3740
# Defines the output stream, there could be more than one if using filters.

sbndcode/Decoders/XARAPUCA/xarapucadecoder.fcl

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,30 @@ xarapucadecoder:
1414
fragment_id_offset: 41216 # Offset to be applied to the fragment IDs (0xA100).
1515
board_id_list: [7, 13, 16, 19] # Slots where the boards are installed.
1616
# - Timing configuration.
17-
timing_priority: 0 # 0 SPEC-TDC ETT, 1 CAEN-only.
17+
timing_priority: 0 # 0 SPEC-TDC ETRIG, 1 PTB HLT (1-5, 14,15), 2 CAEN-only.
1818
ns_per_sample: 16 # Nanoseconds per sample.
19+
# - RAW timestamp configuration:
20+
raw_event_header_product_name: "daq" # Label identifying the module that created the artdaq::detail::RawEventHeader data product.
21+
raw_trig_max_diff: 3000000 # Maximum difference (in ns) allowed between trigger timestamps and raw timestamp.
22+
raw_timestamp_correction: 367000 # Correction (in ns) to be applied to the raw timestamp.
1923
# - SPEC-TDC access configuration
20-
spectdc_product_name: "tdcdecoder" # Name for getting SPEC-TDC Decoder products.
24+
spectdc_product_name: "tdcdecoder" # Name for getting SPEC-TDC Decoder products (if any).
2125
spectdc_ftrig_ch: 3 # Channel assigned to flash triggers.
22-
spectdc_etrig_ch: 4 # Channel assigned to event triggers.
26+
spectdc_etrig_ch: 4 # Channel assigned to ETT (Event Trigger Timestamp) triggers.
27+
# - PTB access configuration
28+
ptb_product_name: "ptbdecoder" # Name for getting PTB Decoder products (if any).
29+
allowed_hl_triggers: [1, 2, 3, 4, 5, 14, 15] # List of allowed HLT trigger types (1-5, 14, 15).
2330

2431
# OUTPUT configuration:
2532
# - Output data product instance name.
2633
waveforms_instance_name: "XARAPUCAChannels" # Name for the instance product containing the raw decoded waveforms.
27-
timing_instance_name: "" # Name for the instance product containing the timing reference information.
34+
timing_ref_instance_name: "" # Name for the instance product containing the timing reference information.
2835
store_debug_waveforms: 0 # Number of waveforms to store (0: none, -1: all, n: first n waveforms).
2936
# - Debug options.
30-
debug_all: false # (De)activates all debug options.
3137
debug_tdc_handle: false # (De)activates SPEC-TDC art::Handle information printing.
38+
debug_ptb_handle: false # (De)activates PTB art::Handle information printing.
3239
debug_fragments_handle: false # (De)activates V1740B CAEN fragments art::Handle information printing.
33-
debug_timing: false # (De)activates timing data printing.
40+
debug_timing: false # (De)activates timing data printing.
3441
debug_buffer: false # (De)activates buffer status printing.
3542
debug_waveforms: false # (De)activates waveforms decoding printing.
3643
# - Verbose option.

sbndcode/Filters/SimEnergyDepFakeTriggerFilter_module.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class SimEnergyDepFakeTriggerFilter : public art::EDFilter {
1515
const double fBeamTimeMin; // Minimum time of beam window [us]
1616
const double fBeamTimeMax; // Maximum time of beam window [us]
1717
const double fEnergyDeposit; // Minimum energy deposit in TPC for trigger [MeV]
18+
const double fMaxEnergyDeposit; // Maximum energy deposit in TPC for trigger [MeV]
1819

1920
const std::string fSimEnergyDepModuleName;
2021
};
@@ -24,6 +25,7 @@ SimEnergyDepFakeTriggerFilter::SimEnergyDepFakeTriggerFilter(fhicl::ParameterSet
2425
, fBeamTimeMin(pset.get<double>("BeamTimeMin"))
2526
, fBeamTimeMax(pset.get<double>("BeamTimeMax"))
2627
, fEnergyDeposit(pset.get<double>("EnergyDeposit"))
28+
, fMaxEnergyDeposit(pset.get<double>("MaxEnergyDeposit", std::numeric_limits<double>::max()))
2729
, fSimEnergyDepModuleName(pset.get<std::string>("SimEnergyDepModuleName"))
2830
{
2931
}
@@ -46,7 +48,7 @@ bool SimEnergyDepFakeTriggerFilter::filter(art::Event& e)
4648
}
4749

4850
// If the energy deposit within the beam time is greater than some limit then trigger the event
49-
return energy > fEnergyDeposit;
51+
return (energy > fEnergyDeposit) & (energy < fMaxEnergyDeposit);
5052
}
5153

5254
DEFINE_ART_MODULE(SimEnergyDepFakeTriggerFilter)

sbndcode/Filters/fcls/simenergydepfaketriggerfilter.fcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sbnd_simenergydepfaketriggerfilter:
77
# Select the beam spill time to match that in sbnd_filtergenintime
88
BeamTimeMin: -0.2 # Minimum time of beam window [us]
99
BeamTimeMax: 1.9 # Maximum time of beam window [us]
10-
EnergyDeposit: 100 # Minimum energy deposit in TPC for trigger [MeV]
10+
EnergyDeposit: 1 # Minimum energy deposit in TPC for trigger [MeV]
1111

1212
# By default, take only the energy deposits within the TPC active volume
1313
SimEnergyDepModuleName: "largeant:LArG4DetectorServicevolTPCActive" # Name of SimEnergyDeposit producer module

sbndcode/JobConfigurations/standard/caf/cafmakerjob_sbnd.fcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ physics.producers.cafmaker.TPCPMTBarycenterMatchLabel: "tpcpmtbarycentermatching
157157

158158
# Overwrite weight_functions label:
159159
physics.producers.fluxweight.weight_functions: @local::physics.producers.fluxweight.weight_functions_flux
160+
physics.producers.geant4weight.weight_functions: @local::physics.producers.geant4weight.weight_functions_reint
160161

161162
# input art file.
162163
physics.producers.cafmaker.SystWeightLabels: []
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#include "cafmakerjob_sbnd_data_base.fcl"
22

3-
physics.producers.cafmaker.BNBPOTDataLabel: "sbndbnbinfo"
3+
physics.producers.cafmaker.BNBPOTDataLabel: "bnbinfo"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#include "cafmakerjob_sbnd_data_base.fcl"
22

3-
physics.producers.cafmaker.OffbeamBNBCountDataLabel: "sbndbnbextinfo"
3+
physics.producers.cafmaker.OffbeamBNBCountDataLabel: "bnbextinfo"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#include "cafmakerjob_sbnd_data_sce.fcl"
22

3-
physics.producers.cafmaker.BNBPOTDataLabel: "sbndbnbinfo"
3+
physics.producers.cafmaker.BNBPOTDataLabel: "bnbinfo"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#include "cafmakerjob_sbnd_data_sce.fcl"
22

3-
physics.producers.cafmaker.OffbeamBNBCountDataLabel: "sbndbnbextinfo"
3+
physics.producers.cafmaker.OffbeamBNBCountDataLabel: "bnbextinfo"

0 commit comments

Comments
 (0)