Skip to content

Commit 896bc55

Browse files
Merge branch 'develop' into feature/bearc_supera_data
2 parents 5aa0664 + 1b2bd01 commit 896bc55

35 files changed

Lines changed: 2081 additions & 100 deletions

sbndcode/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ add_subdirectory(OpT0Finder)
2121
add_subdirectory(ShowerAna)
2222
add_subdirectory(Commissioning)
2323
add_subdirectory(Trigger)
24+
add_subdirectory(Timing)
2425
add_subdirectory(PTBAna)
2526

2627
# subdirectory for gallery stuff

sbndcode/Decoders/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ add_subdirectory(PTB)
33
add_subdirectory(SPECTDC)
44
add_subdirectory(PMT)
55
add_subdirectory(CRT)
6-
install_fhicl()
6+
add_subdirectory(XARAPUCA)
7+
8+
install_fhicl()
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
art_make(
2-
MODULE_LIBRARIES
1+
cet_build_plugin( SBNDPMTDecoder art::module
2+
SOURCE SBNDPMTDecoder_module.cc
3+
LIBRARIES
34
sbndaq_artdaq_core::sbndaq-artdaq-core_Overlays_SBND
45
sbnobj::SBND_Timing
5-
6+
lardata::Utilities
7+
canvas::canvas
68
lardataobj::RecoBase
7-
9+
lardataobj::RawData
10+
lardataobj::headers
811
art_root_io::TFileService_service
912
art_root_io::tfile_support
1013
artdaq_core::artdaq-core_Data
11-
1214
ROOT::Core
1315
ROOT::Tree
14-
1516
)
1617

1718
install_fhicl()
19+
install_headers()
20+
install_source()

sbndcode/Decoders/PMT/SBNDPMTDecoder_module.cc

Lines changed: 324 additions & 68 deletions
Large diffs are not rendered by default.

sbndcode/Decoders/PMT/pmtdecoder.fcl

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,46 @@ pmtdecoder:
1313

1414
# configure CAEN inputs
1515
caen_fragment_name: [ "CAENV1730", "ContainerCAENV1730" ]
16-
ignore_fragid: [8] # boards to ignore for testing purposes, fragid==8 is the timing board, this is 0-indexed!
16+
ignore_fragid: [] # boards to ignore for testing purposes, fragid==8 is the timing board, this is 0-indexed!
1717
nominal_length: 5000 # expected waveform length
18+
raw_ts_correction: 367000 # ns, correction to the rawheader timestamp
1819

1920
# configure SPEC TDC inputs
2021
spectdc_product_name: "tdcdecoder" # used if the tdc decoder has been run
21-
spectdc_ftrig_ch: 3 # this should be the channel number of the spec tdc that stores the flash trigger
22-
spectdc_etrig_ch: 4 # this should be the channel number of the spec tdc that stores the event trigger
22+
spectdc_ftrig_ch: 3 # channel number of the spec tdc that stores the flash trigger
23+
spectdc_etrig_ch: 4 # channel number of the spec tdc that stores the event trigger
2324

24-
# configure PTB inputs
25+
# configure PTB inputs; the HLT with the smallest trigger word will be used (within some range to the rawheader timestamp)
2526
ptb_product_name: "ptbdecoder"
26-
ptb_etrig_trigword: 0x0000000000000000
27+
ptb_etrig_trigword_min: 1 # minimum trigger word (in decimal)
28+
ptb_etrig_trigword_max: 100000 # maximum trigger word (in decimal)
2729
ptb_etrig_wordtype: 2
30+
ptb_trig_raw_diff_max: 3000000 # the maximum allowed time difference in ns
2831

2932
# configure output options
33+
# use time difference between reference + CAEN used to determine rollover and/or weirdness
34+
allowed_time_diff: 3000 # us!! not nanoseconds
3035
# configure the output data product instance names
3136
pmtInstanceName: "PMTChannels"
3237
ftrigInstanceName: "FTrigChannels"
38+
timingInstanceName: "TimingChannels"
3339
output_ftrig_wvfm: true # whether or not to output the ftrig as an opdetwaveform (artroot data product)
40+
output_timing_wvfm: true # whether or not to output the timing caen wvfms as an opdetwaveform (artroot data product)
41+
ignore_timing_ch: [4,5,6,7,8,9,10,11,12,13,14] # only ch0=BES, ch1=RWM, ch2=ETRIG, ch3=MSUM, ch15=FTRIG
3442

3543
# more detailed configurables
3644
n_maxflashes: 30 # maximum number of flashes anticipated, this is used for memory allocation
37-
n_caenboards: 8 # number of caen boards; this is used for memory allocation
45+
n_caenboards: 9 # number of caen boards; this is used for memory allocation
46+
# 1-8 = PMT caens, 9th = timing caen
3847
threshold_ftrig: 16350 # the threshold for the flash trigger channel
3948

4049
fragid_offset: 40960 # the offset to subtract to get single digit fragids; if use_set_map is true, should set this to 0
4150
hist_evt: 1 # the # of the event used to generate the histograms, 1st event by default
4251

43-
# for when the fragIDs are mapped to the old configuration...
44-
set_fragid_map: [3,7,5,9,11,13,15,17,19] # digitizers 0-8 are mapped to these fragids
52+
# for when the fragIDs are mapped to the old configuration or you need to hardcode fragids...
53+
## to use this, must set `fragid_offset` to 0!!!
4554
use_set_map: false
55+
set_fragid_map: [3,7,5,9,11,13,15,17,19] # use if `use_set_map` is true: digitizers 0-8 are mapped to these fragids
4656

4757
# ordered in sets of 15 by increasing fragID
4858
# the PMT_to_Digitizers.txt file in the same directory is the reference for this
@@ -54,7 +64,8 @@ pmtdecoder:
5464
173,172,227,226,197,196,171,170,225,224,169,168,223,222,167, # digitizer 4
5565
195,194,221,220,165,164,219,218,193,192,163,162,217,216,166, # digitizer 5
5666
251,250,305,304,275,274,249,248,303,302,247,246,301,300,245, # digitizer 6
57-
273,272,299,298,243,242,297,296,271,270,241,240,295,294,244] # digitizer 7
67+
273,272,299,298,243,242,297,296,271,270,241,240,295,294,244, # digitizer 7
68+
900,901,902,903,904,905,906,907,908,909,910,911,912,913,914] # digitizer 8 (TIMING CAEN)
5869
}
5970

6071
END_PROLOG
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
art_make(
2+
MODULE_LIBRARIES
3+
sbndaq_artdaq_core::sbndaq-artdaq-core_Overlays_SBND
4+
sbnobj::SBND_Timing
5+
6+
lardataobj::RecoBase
7+
8+
art_root_io::TFileService_service
9+
art_root_io::tfile_support
10+
artdaq_core::artdaq-core_Data
11+
12+
ROOT::Core
13+
ROOT::Tree
14+
15+
)
16+
17+
install_fhicl()

0 commit comments

Comments
 (0)