Skip to content

Commit f7e4bbd

Browse files
Merge branch 'develop' into feature/readme
2 parents 2930653 + 9a63efd commit f7e4bbd

613 files changed

Lines changed: 195331 additions & 7959 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

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

1616
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
1717

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

2222
# for CI:
23-
# project(sbndcode VERSION 09.93.01.01)
23+
# project(sbndcode VERSION 10.05.00)
2424

2525
message(STATUS "\n")
2626
message(STATUS "================================= ${PROJECT_NAME} =================================")
@@ -80,6 +80,7 @@ find_package( larcore REQUIRED )
8080
find_package( larcorealg REQUIRED )
8181
find_package( larcoreobj REQUIRED )
8282
find_package( larreco REQUIRED )
83+
find_package( larrecodnn REQUIRED )
8384
find_package( larana REQUIRED )
8485
find_package( PostgreSQL REQUIRED )
8586
find_package( hep_concurrency REQUIRED )

sbndcode/AnalysisTree/AnalysisTree_module.cc

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3677,17 +3677,15 @@ bool sbnd::AnalysisTree::TrackIdToMCTruth( Int_t const trkID, art::Ptr<simb::MCT
36773677
double sbnd::AnalysisTree::bdist(const recob::Track::Point_t& pos)
36783678
{
36793679
// Get geometry.
3680-
art::ServiceHandle<geo::Geometry> geom;
3681-
3680+
geo::TPCGeo const& tpc = art::ServiceHandle<geo::Geometry>()->TPC({0, 0});
36823681
double d1 = pos.X(); // Distance to right side (wires).
3683-
double d2 = 2.*geom->DetHalfWidth() - pos.X(); // Distance to left side (cathode).
3684-
double d3 = pos.Y() + geom->DetHalfHeight(); // Distance to bottom.
3685-
double d4 = geom->DetHalfHeight() - pos.Y(); // Distance to top.
3682+
double d2 = 2.*tpc.HalfWidth() - pos.X(); // Distance to left side (cathode).
3683+
double d3 = pos.Y() + tpc.HalfHeight(); // Distance to bottom.
3684+
double d4 = tpc.HalfHeight() - pos.Y(); // Distance to top.
36863685
double d5 = pos.Z(); // Distance to front.
3687-
double d6 = geom->DetLength() - pos.Z(); // Distance to back.
3686+
double d6 = tpc.Length() - pos.Z(); // Distance to back.
36883687

3689-
double result = std::min(std::min(std::min(std::min(std::min(d1, d2), d3), d4), d5), d6);
3690-
return result;
3688+
return std::min({d1, d2, d3, d4, d5, d6});
36913689
}
36923690

36933691

@@ -3701,16 +3699,14 @@ double sbnd::AnalysisTree::length(const recob::Track& track)
37013699
// Length of MC particle, trajectory by trajectory.
37023700
double sbnd::AnalysisTree::length(const simb::MCParticle& part, TVector3& start, TVector3& end)
37033701
{
3704-
// Get geometry.
3705-
art::ServiceHandle<geo::Geometry> geom;
3706-
37073702
// Get active volume boundary.
3708-
double xmin = -2.0 * geom->DetHalfWidth() - 1e-8;
3709-
double xmax = 2.0 * geom->DetHalfWidth() + 1e-8;
3710-
double ymin = -geom->DetHalfHeight() -1e-8;
3711-
double ymax = geom->DetHalfHeight() + 1e-8;
3703+
geo::TPCGeo const& tpc = art::ServiceHandle<geo::Geometry>()->TPC({0, 0});
3704+
double xmin = -2.0 * tpc.HalfWidth() - 1e-8;
3705+
double xmax = 2.0 * tpc.HalfWidth() + 1e-8;
3706+
double ymin = -tpc.HalfHeight() -1e-8;
3707+
double ymax = tpc.HalfHeight() + 1e-8;
37123708
double zmin = 0. -1e-8;
3713-
double zmax = geom->DetLength() + 1e-8;
3709+
double zmax = tpc.Length() + 1e-8;
37143710

37153711
// Get number traj points
37163712
int n = part.NumberTrajectoryPoints();

sbndcode/AnalysisTree/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ set( MODULE_LIBRARIES larcorealg::Geometry
1313
lardata::RecoObjects
1414
larpandora::LArPandoraInterface
1515
sbndcode_CRTUtils
16-
sbndcode_CRT
1716
sbnobj::Common_CRT
1817
nusimdata::SimulationBase
1918
art::Framework_Core

sbndcode/CMakeLists.txt

Lines changed: 6 additions & 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
@@ -41,3 +42,8 @@ add_subdirectory(WireCell)
4142

4243
add_subdirectory(Decoders)
4344
add_subdirectory(ChannelMaps)
45+
46+
# for CVN
47+
add_subdirectory(SBNDCVN)
48+
49+
add_subdirectory(TPCPMTBarycenterMatching)

sbndcode/CRT/CMakeLists.txt

Lines changed: 35 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,52 +2,45 @@ add_subdirectory(CRTAna)
22
add_subdirectory(CRTBackTracker)
33
add_subdirectory(CRTEventDisplay)
44
add_subdirectory(CRTReco)
5+
add_subdirectory(CRTVeto)
56
add_subdirectory(CRTSimulation)
67
add_subdirectory(CRTTPCMatching)
78
add_subdirectory(CRTUtils)
89

9-
art_make(
10-
EXCLUDE
11-
CRTChannelMapAlg.cxx
12-
CRTGeometryHelper_service.cc
13-
LIBRARY_NAME
14-
sbndcode_CRTData
15-
LIB_LIBRARIES
16-
larcorealg::Geometry
17-
larcore::Geometry_Geometry_service
18-
lardataobj::RecoBase
19-
art::Framework_Core
20-
art::Framework_IO_Sources
21-
art::Framework_Principal
22-
canvas::canvas
23-
art::Framework_Services_Registry
24-
messagefacility::MF_MessageLogger
25-
26-
fhiclcpp::fhiclcpp
27-
ROOT::Core
28-
ROOT::Geom
29-
cetlib::cetlib
30-
)
31-
3210
art_make_library(
33-
SOURCE CRTChannelMapAlg.cxx
34-
LIBRARIES
35-
larcorealg::Geometry
36-
sbndcode_CRTData
37-
cetlib_except::cetlib_except
38-
messagefacility::MF_MessageLogger
39-
fhiclcpp::fhiclcpp
40-
ROOT::Core
41-
ROOT::Geom
42-
cetlib::cetlib
11+
SOURCE
12+
CRTGeoObjectSorter.cxx
13+
LIBRARY_NAME
14+
sbndcode_CRTData
15+
LIBRARIES
16+
larcorealg::Geometry
17+
larcore::Geometry_Geometry_service
18+
lardataobj::RecoBase
19+
art::Framework_Core
20+
art::Framework_IO_Sources
21+
art::Framework_Principal
22+
canvas::canvas
23+
art::Framework_Services_Registry
24+
messagefacility::MF_MessageLogger
25+
fhiclcpp::fhiclcpp
26+
ROOT::Core
27+
ROOT::Geom
28+
cetlib::cetlib
4329
)
44-
simple_plugin(
45-
CRTGeometryHelper service
46-
sbndcode_CRT
47-
art::Framework_Core
48-
art::Framework_IO_Sources
49-
art::Framework_Principal
50-
canvas::canvas
51-
art::Framework_Services_Registry
52-
messagefacility::MF_MessageLogger
30+
31+
cet_build_plugin( CRTAuxDetInitializerSBND art::tool
32+
SOURCE
33+
CRTAuxDetInitializerSBND_tool.cc
34+
CRTAuxDetInitializerSBND.cxx
35+
LIBRARIES REG
36+
larcorealg::Geometry
37+
sbndcode_CRTData
38+
cetlib_except::cetlib_except
39+
messagefacility::MF_MessageLogger
40+
fhiclcpp::fhiclcpp
41+
cetlib::cetlib
5342
)
43+
44+
install_headers()
45+
install_fhicl()
46+
install_source()

0 commit comments

Comments
 (0)