Skip to content

Commit 1f043ab

Browse files
Merge branch 'develop' into feature/acastill_lightprop_bugfix
2 parents b51abc9 + ccadeb6 commit 1f043ab

11 files changed

Lines changed: 67 additions & 13 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
1717

18-
set(${PROJECT_NAME}_CMAKE_PROJECT_VERSION_STRING 10.14.02)
18+
set(${PROJECT_NAME}_CMAKE_PROJECT_VERSION_STRING 10.14.02.01)
1919
find_package(cetmodules REQUIRED)
2020
project(sbndcode LANGUAGES CXX)
2121

@@ -88,11 +88,8 @@ find_package( Eigen3 REQUIRED )
8888
find_package( Geant4 REQUIRED )
8989
find_package( Boost COMPONENTS system REQUIRED )
9090
find_package( ROOT REQUIRED )
91-
92-
if(DEFINED ENV{HEP_HPC_DIR} )
93-
find_ups_product( hdf5 )
94-
find_ups_product( hep_hpc )
95-
endif()
91+
find_package( hdf5 REQUIRED )
92+
find_package( hep_hpc REQUIRED )
9693

9794
# macros for dictionary and simple_plugin
9895
include(ArtDictionary)

sbndcode/Calibration/TPCCalorimetry/NormalizeYZ_tool.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Author : Shweta Yadav (sxy1439@mavs.uta.edu)
2+
// University of Texas at Arlington
13

24
// Framework Includes
35
#include "art/Framework/Core/EDProducer.h"

sbndcode/Calibration/TPCCalorimetry/normtools_sbnd.fcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ driftnorm_sql: {
1111

1212
yznorm_hist_data: {
1313
tool_type: NormalizeYZ
14-
FileName: "YZmaps/yz_correction_map_data1e20.root"
14+
FileName: "YZmaps/yz_data2025_v10_14_02.root"
1515
Verbose: false
1616
}
1717

1818
yznorm_hist_mc: {
1919
tool_type: NormalizeYZ
20-
FileName: "YZmaps/yz_correction_map_mcp2025b5e18.root"
20+
FileName: "YZmaps/yz_mc2025_v10_14_02.root"
2121
Verbose: false
2222
}
2323

sbndcode/Calibration/configurations/calibration_database_GlobalTags_sbnd.fcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
BEGIN_PROLOG
55

66
SBND_Calibration_GlobalTags: {
7-
@table::TPC_CalibrationTags_Nov2025
7+
@table::TPC_CalibrationTags_Jan2026
88
@table::PDS_CalibrationTags_Nov2025
99
}
1010

sbndcode/Calibration/configurations/calibration_database_TPC_TagSets_sbnd.fcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ BEGIN_PROLOG
77
## r1: SBND Full Run 1 with light trigger, run number 18250-18618
88

99
## First one for 2025 Fall, only with etau tag
10+
TPC_CalibrationTags_Jan2026: {
11+
12+
tpc_elifetime_data: "v4r1"
13+
14+
}
15+
1016
TPC_CalibrationTags_Nov2025: {
1117

1218
tpc_elifetime_data: "v2r1"

sbndcode/Commissioning/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ cet_build_plugin(HitDumper art::module SOURCE HitDumper_module.cc LIBRARIES ${MO
5050
cet_build_plugin(MuonTrackFilter art::module SOURCE MuonTrackFilter_module.cc LIBRARIES ${MODULE_LIBRARIES})
5151
cet_build_plugin(MuonTrackProducer art::module SOURCE MuonTrackProducer_module.cc LIBRARIES ${MODULE_LIBRARIES})
5252
cet_build_plugin(OnlineEvd art::module SOURCE OnlineEvd_module.cc LIBRARIES ${MODULE_LIBRARIES})
53+
target_include_directories(sbndcode_Commissioning_OnlineEvd_module PRIVATE $ENV{HEP_HPC_INC})
5354

5455
install_source()
5556

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#include "cafmakerjob_sbnd_sce.fcl"
2+
3+
physics.runprod: [rns, fluxweight, geant4weight, @sequence::physics.runprod]
4+
physics.producers.cafmaker.SystWeightLabels: [ "fluxweight", "geant4weight" ]

sbndcode/JobConfigurations/standard/reco/config/drops_reco1.fcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ sbnd_reco1_drops: [
1616
, "drop *_fasthit_*_*"
1717
, "drop recob::Wires_*_wiener_*" #drop wiener wires
1818
, "drop recob::Wires_*_gauss_*"
19+
, "drop *ints_opdaq_MonPulseSizes_DetSim*"
20+
, "drop *ints_opdaq_MonPulses_DetSim*"
1921
, @sequence::sbnd_reco1_ml_drops
2022
]
2123

sbndcode/SBNDPandora/scripts/PandoraSettings_Neutrino_SBND.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,39 @@
457457
<VertexListName>DaughterVertices3D</VertexListName>
458458
</algorithm>
459459

460+
<!-- Shower Merging -->
461+
<algorithm type = "LArShowerMergingPfoMopUp">
462+
<InputPfoListNames>TrackParticles3D ShowerParticles3D</InputPfoListNames>
463+
<DaughterListNames>TrackParticles3D ShowerParticles3D DaughterVertices3D ClustersU ClustersV ClustersW TrackClusters3D ShowerClusters3D</DaughterListNames>
464+
</algorithm>
465+
466+
<!-- Re-run the PFO Characterisation to recalculate the scores after primary electron merging -->
467+
<algorithm type = "LArBdtPfoCharacterisation">
468+
<TrackPfoListName>TrackParticles3D</TrackPfoListName>
469+
<ShowerPfoListName>ShowerParticles3D</ShowerPfoListName>
470+
<UseThreeDInformation>true</UseThreeDInformation>
471+
<MvaFileName>PandoraMVAs/PandoraBdt_SBND.xml</MvaFileName>
472+
<MvaName>PfoCharBDT2</MvaName>
473+
<MvaFileNameNoChargeInfo>PandoraMVAs/PandoraBdt_SBND.xml</MvaFileNameNoChargeInfo>
474+
<MvaNameNoChargeInfo>PfoCharBDTNoChargeInfo2</MvaNameNoChargeInfo>
475+
<MinProbabilityCut>0.51</MinProbabilityCut>
476+
<PersistFeatures>true</PersistFeatures>
477+
<FeatureTools>
478+
<tool type = "LArThreeDLinearFitFeatureTool"/>
479+
<tool type = "LArThreeDVertexDistanceFeatureTool"/>
480+
<tool type = "LArThreeDPCAFeatureTool"/>
481+
<tool type = "LArThreeDOpeningAngleFeatureTool"/>
482+
<tool type = "LArThreeDChargeFeatureTool"/>
483+
<tool type = "LArConeChargeFeatureTool"/>
484+
</FeatureTools>
485+
<FeatureToolsNoChargeInfo>
486+
<tool type = "LArThreeDLinearFitFeatureTool"/>
487+
<tool type = "LArThreeDVertexDistanceFeatureTool"/>
488+
<tool type = "LArThreeDPCAFeatureTool"/>
489+
<tool type = "LArThreeDOpeningAngleFeatureTool"/>
490+
</FeatureToolsNoChargeInfo>
491+
</algorithm>
492+
460493
<!-- Output list management -->
461494
<algorithm type = "LArPostProcessing">
462495
<PfoListNames>NeutrinoParticles3D TrackParticles3D ShowerParticles3D</PfoListNames>

sbndcode/TPCPMTBarycenterMatching/TPCPMTBarycenterMatching_module.cc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
#include "lardataobj/RecoBase/PFParticleMetadata.h"
6060
#include "sbnobj/Common/Reco/TPCPMTBarycenterMatch.h"
6161

62+
// Calibration database includes
63+
#include "sbndcode/Calibration/PDSDatabaseInterface/PMTCalibrationDatabase.h"
64+
#include "sbndcode/Calibration/PDSDatabaseInterface/IPMTCalibrationDatabaseService.h"
65+
6266
//ROOT includes
6367
#include <Eigen/Dense>
6468
#include <vector>
@@ -231,7 +235,6 @@ class TPCPMTBarycenterMatchProducer : public art::EDProducer {
231235
bool fCollectionOnly; ///< Only use TPC spacepoints from the collection plane
232236
double fDistanceCandidateFlashes; ///< Maximum distance between candidate flashes to be considered for matching (cm)
233237
std::vector<double> fCalAreaConst; /// Calibration area constants for wire plane
234-
std::vector<int> fSkipChannelList;
235238
double fOpDetCoVUVEff; // Efficiencies for PMT detection (Coated PMT VUV)
236239
double fOpDetCoVISEff; // Efficiencies for PMT detection (Coated PMT VIS)
237240
double fOpDetUncoVISEff; // Efficiencies for PMT detection (Uncoated PMT VIS)
@@ -294,6 +297,9 @@ class TPCPMTBarycenterMatchProducer : public art::EDProducer {
294297
fhicl::ParameterSet _vis_params;
295298
std::shared_ptr<phot::OpticalPath> _optical_path_tool;
296299

300+
sbndDB::PMTCalibrationDatabase const* fPMTCalibrationDatabaseService;
301+
302+
297303
};
298304

299305

@@ -391,6 +397,9 @@ TPCPMTBarycenterMatchProducer::TPCPMTBarycenterMatchProducer(fhicl::ParameterSet
391397
_vis_params = p.get<fhicl::ParameterSet>("VIVHits");
392398
_optical_path_tool = std::shared_ptr<phot::OpticalPath>(art::make_tool<phot::OpticalPath>(p.get<fhicl::ParameterSet>("OpticalPathTool")));
393399
_semi_model = std::make_unique<phot::SemiAnalyticalModel>(_vuv_params, _vis_params, _optical_path_tool, true, false);
400+
401+
//Load PMT Calibration Database
402+
fPMTCalibrationDatabaseService = lar::providerFrom<sbndDB::IPMTCalibrationDatabaseService const>();
394403
}
395404

396405
void TPCPMTBarycenterMatchProducer::produce(art::Event& e)
@@ -892,7 +901,7 @@ double TPCPMTBarycenterMatchProducer::GetFlashLight(double flash_pe, std::vector
892901
double tot_visibility=0;
893902

894903
for(size_t ch=0; ch<dir_visibility.size(); ch++){
895-
if (std::find(fSkipChannelList.begin(), fSkipChannelList.end(), ch) != fSkipChannelList.end()) continue;
904+
if(!fPMTCalibrationDatabaseService->getReconstructChannel(ch)) continue; // Skip channels not reconstructed
896905
if(fOpDetType[ch]==0) tot_visibility += fOpDetCoVUVEff*dir_visibility[ch] + fOpDetCoVISEff*ref_visibility[ch];
897906
else if(fOpDetType[ch]==1) tot_visibility += fOpDetUncoVISEff*ref_visibility[ch];
898907
else continue; // skip other types

0 commit comments

Comments
 (0)