Skip to content

Commit a38c953

Browse files
Merge branch 'develop' into feature/acastill_deconvolution_database
2 parents 067256f + 9a63efd commit a38c953

142 files changed

Lines changed: 92103 additions & 2634 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: 2 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 10.04.06.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 10.04.06.01)
23+
# project(sbndcode VERSION 10.05.00)
2424

2525
message(STATUS "\n")
2626
message(STATUS "================================= ${PROJECT_NAME} =================================")

sbndcode/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ add_subdirectory(ChannelMaps)
4545

4646
# for CVN
4747
add_subdirectory(SBNDCVN)
48+
49+
add_subdirectory(TPCPMTBarycenterMatching)

sbndcode/CRT/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ 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)
@@ -27,7 +28,10 @@ art_make_library(
2728
cetlib::cetlib
2829
)
2930

30-
cet_build_plugin( CRTAuxDetInitializer art::tool
31+
cet_build_plugin( CRTAuxDetInitializerSBND art::tool
32+
SOURCE
33+
CRTAuxDetInitializerSBND_tool.cc
34+
CRTAuxDetInitializerSBND.cxx
3135
LIBRARIES REG
3236
larcorealg::Geometry
3337
sbndcode_CRTData

sbndcode/CRT/CRTAna/CRTAnalysis_module.cc

Lines changed: 362 additions & 133 deletions
Large diffs are not rendered by default.

sbndcode/CRT/CRTAna/crtana_sbnd.fcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ crtana_sbnd:
1212
PropDelay: @local::sbnd_crtsim.DetSimParams.PropDelay
1313
TimeWalkNorm: @local::sbnd_crtsim.DetSimParams.TDelayNorm
1414
TimeWalkScale: @local::sbnd_crtsim.DetSimParams.TDelayScale
15+
TruthMatch: false
1516
module_type: "CRTAnalysis"
1617
}
1718

sbndcode/CRT/CRTAna/run_crtana.fcl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ services:
77
{
88
TFileService: { fileName: "crtana_sbnd.root" }
99
@table::sbnd_basic_services
10-
ParticleInventoryService: @local::sbnd_particleinventoryservice
11-
BackTrackerService: @local::sbnd_backtrackerservice
12-
DetectorClocksService: @local::sbnd_detectorclocks
10+
ParticleInventoryService: @local::sbnd_particleinventoryservice
11+
BackTrackerService: @local::sbnd_backtrackerservice
12+
DetectorClocksService: @local::sbnd_detectorclocks
13+
LArPropertiesService: @local::sbnd_properties
14+
DetectorPropertiesService: @local::sbnd_detproperties
1315
}
1416

1517
source:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include "run_crtana_data.fcl"
2+
3+
physics.analyzers.crtana.NoTPC: false
4+
physics.analyzers.crtana.TPCTrackModuleLabel: "pandoraTrack"
5+
physics.analyzers.crtana.CRTSpacePointMatchingModuleLabel: "crtspacepointmatching"
6+
physics.analyzers.crtana.CRTTrackMatchingModuleLabel: "crttrackmatching"
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#include "CRTAuxDetInitializerSBND.h"
2+
3+
namespace sbnd::crt {
4+
5+
CRTAuxDetInitializerSBND::CRTAuxDetInitializerSBND(fhicl::ParameterSet const&) {}
6+
7+
geo::AuxDetReadoutInitializers
8+
CRTAuxDetInitializerSBND::initialize(std::vector<geo::AuxDetGeo> const& adgeo) const {
9+
geo::AuxDetReadoutInitializers result;
10+
// Map the AuxDetGeo names to their position in the sorted vector
11+
//
12+
// Each tagger is composed of scintillator modules, composed of 16 strips.
13+
// In the geometry, CRTStripArrays are AuxDets and CRTStrips are the
14+
// AuxDetSensitives. Each strip has two SiPM channels, one per optical
15+
// fiber (not in the geometry).
16+
//
17+
18+
for (size_t a=0; a<adgeo.size(); a++){
19+
std::string volName(adgeo[a].TotalVolume()->GetName());
20+
21+
long unsigned int number_scintillating_strips = 0;
22+
23+
if (strncmp(((adgeo[a].TotalVolume())->GetShape())->GetName(), "CRTstripMINOSArray", 18) == 0) {
24+
number_scintillating_strips = 20; //To account for the MINOS modules.
25+
}
26+
else {number_scintillating_strips = 16;}
27+
28+
size_t nsv = adgeo[a].NSensitiveVolume();
29+
if (nsv != number_scintillating_strips) {
30+
throw cet::exception("CRTChannelMap")
31+
<< "Wrong number of sensitive volumes for CRT volume "
32+
<< volName << " (got " << nsv << ", expected 16)" << std::endl;
33+
}
34+
35+
result.ADGeoToName[a] = volName;
36+
result.NameToADGeo[volName] = a;
37+
38+
if (volName.find("CRTStripArray") != std::string::npos) {
39+
for (size_t svID=0; svID<number_scintillating_strips; svID++) {
40+
for (size_t ich=0; ich<2; ich++) {
41+
size_t chID = 2 * svID + ich;
42+
result.ADGeoToChannelAndSV[a].push_back(std::make_pair(chID, svID));
43+
}
44+
}
45+
}
46+
}
47+
return result;
48+
}
49+
50+
} // namespace sbnd::crt
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#ifndef SBND_CRT_CRTAUXDETINITIALIZERSBND_H
2+
#define SBND_CRT_CRTAUXDETINITIALIZERSBND_H
3+
4+
#include "larcorealg/Geometry/AuxDetGeo.h"
5+
#include "larcorealg/Geometry/AuxDetSensitiveGeo.h"
6+
#include "larcorealg/Geometry/AuxDetGeometryCore.h"
7+
8+
namespace sbnd::crt {
9+
10+
class CRTAuxDetInitializerSBND : public geo::AuxDetInitializer {
11+
public:
12+
explicit CRTAuxDetInitializerSBND(fhicl::ParameterSet const&);
13+
14+
private:
15+
geo::AuxDetReadoutInitializers
16+
initialize(std::vector<geo::AuxDetGeo> const& adgeo) const override;
17+
};
18+
19+
} // namespace sbnd::crt
20+
21+
#endif // SBND_CRT_CRTAUXDETINITIALIZERSBND_H
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#include "sbndcode/CRT/CRTAuxDetInitializerSBND.h"
2+
#include "art/Utilities/ToolMacros.h"
3+
4+
DEFINE_ART_CLASS_TOOL(sbnd::crt::CRTAuxDetInitializerSBND)

0 commit comments

Comments
 (0)