Skip to content

Commit 9a5c2ed

Browse files
committed
Make compatible with current develop
1 parent 380b27f commit 9a5c2ed

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

sbndcode/CRT/CRTEventDisplay/CRTChannelMappingEventDisplay_module.cc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,16 @@ class sbnd::crt::CRTChannelMappingEventDisplay : public art::EDAnalyzer {
5555

5656
private:
5757

58-
CRTEventDisplayAlg fCRTEventDisplayAlg;
59-
CRTGeoAlg fCRTGeoAlg;
60-
std::string fSaveDir;
61-
std::vector<int> fChosenTaggers;
58+
CRTEventDisplayAlg fCRTEventDisplayAlg;
59+
art::ServiceHandle<CRTGeoService> fCRTGeoService;
60+
std::string fSaveDir;
61+
std::vector<int> fChosenTaggers;
6262
};
6363

6464

6565
sbnd::crt::CRTChannelMappingEventDisplay::CRTChannelMappingEventDisplay(Parameters const& config)
6666
: EDAnalyzer{config}
6767
, fCRTEventDisplayAlg(config().EventDisplayConfig())
68-
, fCRTGeoAlg(config().EventDisplayConfig().GeoAlgConfig())
6968
, fSaveDir(config().SaveDir())
7069
, fChosenTaggers(config().EventDisplayConfig().ChosenTaggers())
7170
{
@@ -76,7 +75,7 @@ void sbnd::crt::CRTChannelMappingEventDisplay::analyze(art::Event const& e)
7675
{
7776
auto const clockData = art::ServiceHandle<detinfo::DetectorClocksService const>()->DataFor(e);
7877

79-
for(auto const& [ name, module ] : fCRTGeoAlg.GetModules())
78+
for(auto const& [ name, module ] : fCRTGeoService->GetModules())
8079
{
8180
if(std::find(fChosenTaggers.begin(), fChosenTaggers.end(), CRTCommonUtils::GetTaggerEnum(module.taggerName)) == fChosenTaggers.end())
8281
continue;

sbndcode/CRT/CRTEventDisplay/run_crteventdisplay_channel_mapping_all.fcl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
#include "services_sbnd.fcl"
22
#include "particleinventoryservice.fcl"
33
#include "crteventdisplay_sbnd.fcl"
4-
#include "crt_channel_map_service.fcl"
5-
#include "crt_calib_service.fcl"
4+
#include "crt_services_sbnd.fcl"
65

76
process_name: CRTEventDisplay
87

98
services:
109
{
1110
@table::sbnd_services
11+
@table::crt_services_sbnd
1212
ParticleInventoryService: @local::standard_particleinventoryservice
13-
CRTChannelMapService: @local::crt_channel_map_standard
14-
CRTCalibService: @local::crt_calib_service
13+
CRTChannelMapService: @local::crt_channel_map_no_inversion
1514
}
1615

1716
source:

0 commit comments

Comments
 (0)