Skip to content

Commit c06fc26

Browse files
Merge branch 'develop' into feature/hlay_crt_ana
2 parents 5f8afc2 + a1cccf8 commit c06fc26

13 files changed

Lines changed: 636 additions & 494 deletions

File tree

sbndcode/CRT/CRTReco/CRTStripHitProducer_module.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class sbnd::crt::CRTStripHitProducer : public art::EDProducer {
6262

6363
std::string fFEBDataModuleLabel;
6464
uint16_t fADCThreshold;
65+
uint16_t fADCSaturation;
6566
std::vector<double> fErrorCoeff;
6667
bool fAllowFlag1;
6768
bool fApplyTs0Window;
@@ -88,6 +89,7 @@ sbnd::crt::CRTStripHitProducer::CRTStripHitProducer(fhicl::ParameterSet const& p
8889
: EDProducer{p}
8990
, fFEBDataModuleLabel(p.get<std::string>("FEBDataModuleLabel"))
9091
, fADCThreshold(p.get<uint16_t>("ADCThreshold"))
92+
, fADCSaturation(p.get<uint16_t>("ADCSaturation"))
9193
, fErrorCoeff(p.get<std::vector<double>>("ErrorCoeff"))
9294
, fAllowFlag1(p.get<bool>("AllowFlag1"))
9395
, fApplyTs0Window(p.get<bool>("ApplyTs0Window"))
@@ -273,6 +275,10 @@ std::vector<sbnd::crt::CRTStripHit> sbnd::crt::CRTStripHitProducer::CreateStripH
273275
const uint16_t adc1 = sipm1.pedestal < sipm_adcs[adc_i] ? sipm_adcs[adc_i] - sipm1.pedestal : 0;
274276
const uint16_t adc2 = sipm2.pedestal < sipm_adcs[adc_i+1] ? sipm_adcs[adc_i+1] - sipm2.pedestal : 0;
275277

278+
// Saturated?
279+
const bool sat1 = sipm_adcs[adc_i] >= fADCSaturation;
280+
const bool sat2 = sipm_adcs[adc_i+1] >= fADCSaturation;
281+
276282
// Keep hit if both SiPMs above threshold
277283
if(adc1 > fADCThreshold && adc2 > fADCThreshold)
278284
{
@@ -290,7 +296,7 @@ std::vector<sbnd::crt::CRTStripHit> sbnd::crt::CRTStripHitProducer::CreateStripH
290296
if(pos - err < 0)
291297
err = pos;
292298

293-
stripHits.emplace_back(offline_channel_id, t0, t1, ref_time_s, pos, err, adc1, adc2);
299+
stripHits.emplace_back(offline_channel_id, t0, t1, ref_time_s, pos, err, adc1, adc2, sat1, sat2);
294300
}
295301
}
296302

sbndcode/CRT/CRTReco/crtrecoproducers_sbnd.fcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ crtstriphitproducer_sbnd:
66
{
77
FEBDataModuleLabel: "crtsim"
88
ADCThreshold: 60
9+
ADCSaturation: @local::sbnd_crtsim.DetSimParams.AdcSaturation
910
ErrorCoeff: [ 0.26, -0.27, 0.025 ]
1011
AllowFlag1: false
1112
ApplyTs0Window: false

sbndcode/CRT/CRTSimulation/crtsimmodules_sbnd.fcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ standard_sbnd_crtsimparams: {
5858
# Minimum time between energy deposits that SiPMs can resolve [ns]
5959
SipmTimeResponse: 2.0
6060

61-
AdcSaturation: 4095
61+
AdcSaturation: 4089
6262

6363
DeadTime: 22000
6464

sbndcode/Decoders/XARAPUCA/SBNDXARAPUCADecoder_module.cc

Lines changed: 542 additions & 294 deletions
Large diffs are not rendered by default.

sbndcode/Decoders/XARAPUCA/xarapucadecoder.fcl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,18 @@ xarapucadecoder:
3333
waveforms_instance_name: "XARAPUCAChannels" # Name for the instance product containing the raw decoded waveforms.
3434
timing_ref_instance_name: "" # Name for the instance product containing the timing reference information.
3535
store_debug_waveforms: 0 # Number of waveforms to store (0: none, -1: all, n: first n waveforms).
36+
# Combination of extended fragments.
37+
combine_ext_frag: true # (De)activates the combination of extended fragments into a single raw::OpDetWaveform object.
38+
allowed_jittering: 64 # Allowed jittering (in ns) between fragments to be combined.
3639
# - Debug options.
3740
debug_tdc_handle: false # (De)activates SPEC-TDC art::Handle information printing.
3841
debug_ptb_handle: false # (De)activates PTB art::Handle information printing.
3942
debug_fragments_handle: false # (De)activates V1740B CAEN fragments art::Handle information printing.
4043
debug_timing: false # (De)activates timing data printing.
4144
debug_buffer: false # (De)activates buffer status printing.
4245
debug_waveforms: false # (De)activates waveforms decoding printing.
46+
debug_extended_fragments: false # (De)activates extended fragments information printing.
47+
debug_jittering: false # (De)activates trigger jittering information printing.
4348
# - Verbose option.
4449
verbose: false # (De)activates verbosity.
4550
}

sbndcode/JobConfigurations/standard/detsim/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ FILE(GLOB fcl_files *.fcl)
44
install_source(EXTRAS ${fcl_files} )
55

66
add_subdirectory(detector_variations)
7-
add_subdirectory(legacy)
7+
# LegacyLArG4 is not supported when using geant4 4.11
8+
##add_subdirectory(legacy)
89

sbndcode/JobConfigurations/standard/g4/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ add_subdirectory(recomb_variations)
77
add_subdirectory(crt_filter)
88
add_subdirectory(optical_sim)
99

10-
add_subdirectory(legacy)
10+
# LegacyLArG4 is not supported when using geant4 4.11
11+
##add_subdirectory(legacy)

sbndcode/LArG4/legacy_largeantmodules_sbnd.fcl

Lines changed: 0 additions & 8 deletions
This file was deleted.

sbndcode/LArG4/legacy_simulationservices_sbnd.fcl

Lines changed: 0 additions & 146 deletions
This file was deleted.

sbndcode/SBNDPandora/scripts/PandoraSettings_Neutrino_SBND.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,39 @@
447447
<DaughterListNames>TrackParticles3D ShowerParticles3D DaughterVertices3D ClustersU ClustersV ClustersW TrackClusters3D ShowerClusters3D</DaughterListNames>
448448
</algorithm>
449449

450+
<!-- Shower Merging -->
451+
<algorithm type = "LArShowerMergingPfoMopUp">
452+
<InputPfoListNames>TrackParticles3D ShowerParticles3D</InputPfoListNames>
453+
<DaughterListNames>TrackParticles3D ShowerParticles3D DaughterVertices3D ClustersU ClustersV ClustersW TrackClusters3D ShowerClusters3D</DaughterListNames>
454+
</algorithm>
455+
456+
<!-- Re-run the PFO Characterisation to recalculate the scores after primary electron merging -->
457+
<algorithm type = "LArBdtPfoCharacterisation">
458+
<TrackPfoListName>TrackParticles3D</TrackPfoListName>
459+
<ShowerPfoListName>ShowerParticles3D</ShowerPfoListName>
460+
<UseThreeDInformation>true</UseThreeDInformation>
461+
<MvaFileName>PandoraMVAs/PandoraBdt_SBND.xml</MvaFileName>
462+
<MvaName>PfoCharBDT2</MvaName>
463+
<MvaFileNameNoChargeInfo>PandoraMVAs/PandoraBdt_SBND.xml</MvaFileNameNoChargeInfo>
464+
<MvaNameNoChargeInfo>PfoCharBDTNoChargeInfo2</MvaNameNoChargeInfo>
465+
<MinProbabilityCut>0.51</MinProbabilityCut>
466+
<PersistFeatures>true</PersistFeatures>
467+
<FeatureTools>
468+
<tool type = "LArThreeDLinearFitFeatureTool"/>
469+
<tool type = "LArThreeDVertexDistanceFeatureTool"/>
470+
<tool type = "LArThreeDPCAFeatureTool"/>
471+
<tool type = "LArThreeDOpeningAngleFeatureTool"/>
472+
<tool type = "LArThreeDChargeFeatureTool"/>
473+
<tool type = "LArConeChargeFeatureTool"/>
474+
</FeatureTools>
475+
<FeatureToolsNoChargeInfo>
476+
<tool type = "LArThreeDLinearFitFeatureTool"/>
477+
<tool type = "LArThreeDVertexDistanceFeatureTool"/>
478+
<tool type = "LArThreeDPCAFeatureTool"/>
479+
<tool type = "LArThreeDOpeningAngleFeatureTool"/>
480+
</FeatureToolsNoChargeInfo>
481+
</algorithm>
482+
450483
<algorithm type = "LArNeutrinoProperties">
451484
<NeutrinoPfoListName>NeutrinoParticles3D</NeutrinoPfoListName>
452485
</algorithm>

0 commit comments

Comments
 (0)