Skip to content

Commit bfa1a1b

Browse files
Merge branch 'develop' into feature/munjung-ellips_recomb_var_fcls
2 parents eeb10fc + 88f214d commit bfa1a1b

30 files changed

Lines changed: 1752 additions & 17 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/Commissioning/fcls/hitdumpermodule.fcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ hitdumper:
2929
MCShowerModuleLabel: "mcreco"
3030

3131
KeepCRTStripHits: true
32-
KeepCRTSpacePoints: false
33-
KeepCRTTracks: false
32+
KeepCRTSpacePoints: true
33+
KeepCRTTracks: true
3434
readOpHits: true
3535
readpmtTrigger: true
3636
readpmtSoftTrigger: true

sbndcode/Decoders/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ add_subdirectory(SPECTDC)
44
add_subdirectory(PMT)
55
add_subdirectory(CRT)
66
install_fhicl()
7+
add_subdirectory(XARAPUCA)
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()

sbndcode/Decoders/XARAPUCA/SBNDXARAPUCADecoder_module.cc

Lines changed: 519 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#include "xarapucadecoder.fcl"
2+
3+
process_name: XARAPUCADecoder
4+
5+
services: {
6+
TFileService : {fileName: "decoder_hist.root"} # Output file containing the histograms with the extracted waveforms.
7+
}
8+
9+
source: {
10+
module_type: RootInput
11+
maxEvents: -1
12+
}
13+
14+
outputs: {
15+
out1: {
16+
module_type: RootOutput
17+
fileName: "xarapucadecoder-art.root" # Output file containing the module products.
18+
}
19+
}
20+
21+
physics: {
22+
23+
producers: {
24+
xarapucadecoder: @local::xarapucadecoder
25+
}
26+
27+
filters:{}
28+
29+
analyzers:{}
30+
31+
32+
reco: [xarapucadecoder]
33+
34+
35+
# Defines the output stream, there could be more than one if using filters.
36+
stream1: [out1]
37+
38+
# trigger_paths is a keyword and contains the paths that modify the art::Event.
39+
# ie filters and producer.
40+
trigger_paths: [reco]
41+
42+
# end_paths is a keyword and contains the paths that do not modify the art::Event,
43+
# ie analyzers and output streams. These all run simultaneously.
44+
end_paths: [stream1]
45+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
BEGIN_PROLOG
2+
3+
xarapucadecoder:
4+
{
5+
# Module name.
6+
module_type: "SBNDXARAPUCADecoder" # The name to be assigne to this art::EDProducer module.
7+
8+
# INPUT configuration:
9+
# - CAEN Fragments.
10+
caen_module_label: "daq" # Label identifying the CAEN fragments module.
11+
caen_fragment_names: [ "CAENV1740", "ContainerCAENV1740" ] # Valid CAEN fragments for this decoder.
12+
# - Boards configuration.
13+
num_caen_boards: 4 # Maximum number of boards to be considered.
14+
fragment_id_offset: 41216 # Offset to be applied to the fragment IDs (0xA100).
15+
board_id_list: [7, 13, 16, 19] # Slots where the boards are installed.
16+
# - Timing configuration.
17+
ns_per_sample: 16 # Nanoseconds per sample.
18+
19+
# OUTPUT configuration:
20+
# - Output data product instance name.
21+
product_instance_name: "XARAPUCAChannels" # Name for the instance product created.
22+
store_debug_waveforms: 0 # Number of waveforms to store (0: none, -1: all, n: first n waveforms).
23+
# - Debug options.
24+
debug_all: false # (De)activates all debug options.
25+
debug_handle: false # (De)activates art::Handle data printing.
26+
debug_timing: false # (De)activates timing data printing.
27+
debug_buffer: false # (De)activates buffer status printing.
28+
debug_waveforms: false # (De)activates waveforms decoding printing.
29+
# - Verbose option.
30+
verbose: false # (De)activates verbosity.
31+
}
32+
33+
END_PROLOG

sbndcode/Geometry/GeometryWrappers/CRTGeoAlg.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
// framework
1313
#include "art/Framework/Principal/Event.h"
1414
#include "art/Framework/Core/ModuleMacros.h"
15-
#include "fhiclcpp/ParameterSet.h"
15+
#include "fhiclcpp/ParameterSet.h"
1616
#include "fhiclcpp/types/Atom.h"
17-
#include "art/Framework/Principal/Handle.h"
18-
#include "canvas/Persistency/Common/Ptr.h"
19-
#include "canvas/Persistency/Common/PtrVector.h"
20-
#include "art/Framework/Services/Registry/ServiceHandle.h"
21-
#include "messagefacility/MessageLogger/MessageLogger.h"
17+
#include "art/Framework/Principal/Handle.h"
18+
#include "canvas/Persistency/Common/Ptr.h"
19+
#include "canvas/Persistency/Common/PtrVector.h"
20+
#include "art/Framework/Services/Registry/ServiceHandle.h"
21+
#include "messagefacility/MessageLogger/MessageLogger.h"
2222

2323
// LArSoft
2424
#include "larcore/Geometry/Geometry.h"
@@ -68,7 +68,7 @@ namespace sbnd::crt {
6868

6969
// CRT strip geometry struct contains dimensions and mother module
7070
struct CRTStripGeo{
71-
CRTStripGeo(const TGeoNode *stripNode, const geo::AuxDetSensitiveGeo &auxDetSensitive,
71+
CRTStripGeo(const TGeoNode *stripNode, const geo::AuxDetSensitiveGeo &auxDetSensitive,
7272
const uint16_t _adsID, const std::string &_moduleName,
7373
const uint16_t _channel0, const uint16_t _channel1)
7474
{
@@ -271,7 +271,7 @@ namespace sbnd::crt {
271271
fhicl::Name("MC")
272272
};
273273
};
274-
274+
275275
CRTGeoAlg(const Config& config, geo::GeometryCore const *geometry,
276276
geo::AuxDetGeometryCore const *auxdet_geometry);
277277

sbndcode/JobConfigurations/base/evd_sbnd_data.fcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ services: {
88
services.RawDrawingOptions.SeeBadChannels: true
99
services.RawDrawingOptions.MinimumSignal: 0
1010
services.RawDrawingOptions.PedestalOption: 1
11-
Services.RawDrawingOptions.TotalTicks: 3415
11+
services.RawDrawingOptions.TotalTicks: 3427
1212
services.ColorDrawingOptions.ColorOrGrayScale: 0

sbndcode/JobConfigurations/base/reco_drops.fcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ BEGIN_PROLOG
2020
reco_drops: [ @sequence::detsim_drops,
2121
"drop raw::RawDigits_*_*_*",
2222
"drop raw::OpDetWaveforms_*_*_*",
23-
"drop *_sedlite_*_*" #drop all mlreco output
24-
#"drop *_cluster3d_*_*", #drop cluster3d output
25-
#"drop *_simplemerge_*_*" #drop all mlreco output
23+
"drop *_sedlite_*_*", #drop all mlreco output
24+
"drop *_cluster3d_*_*", #drop cluster3d output
25+
"drop *_simplemerge_*_*" #drop all mlreco output
2626
]
2727

2828
END_PROLOG

0 commit comments

Comments
 (0)