Skip to content

Commit 449c8ff

Browse files
author
Shweta Yadav
committed
path update for yz map
1 parent 6b6d5cf commit 449c8ff

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

sbndcode/Calibration/TPCCalorimetry/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ set(TOOL_LIBRARIES
99
art::Framework_Services_Registry
1010
art::Utilities
1111
fhiclcpp::fhiclcpp
12+
cetlib::cetlib
1213
cetlib_except::cetlib_except
1314
ROOT::Core
1415
ROOT::Hist

sbndcode/Calibration/TPCCalorimetry/NormalizeYZ_tool.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,12 @@ namespace sbnd {
6464
void NormalizeYZ::reconfigure(const fhicl::ParameterSet& pset){
6565
fFileName = pset.get<std::string>("FileName");
6666
fVerbose = pset.get<bool>("Verbose", false);
67-
68-
TFile* f = TFile::Open(fFileName.c_str(), "READ");
67+
68+
std::string fname;
69+
cet::search_path sp("FW_SEARCH_PATH");
70+
sp.find_file(fFileName, fname);
71+
72+
TFile* f = TFile::Open(fname.c_str(), "READ");
6973
if (!f || f->IsZombie()) {
7074
throw cet::exception("NormalizeYZ") << "Failed to open correction map file: " << fFileName;
7175
}

sbndcode/Calibration/TPCCalorimetry/normtools_sbnd.fcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ BEGIN_PROLOG
22

33
yznorm_hist_data: {
44
tool_type: NormalizeYZ
5-
FileName: "root://fndcadoor.fnal.gov:1094/pnfs/fnal.gov/usr/sbnd/persistent/stash/users/yadav/yz_correction_map_data1e20.root"
5+
FileName: "YZmaps/yz_correction_map_data1e20.root"
66
Verbose: false
77
}
88

99
yznorm_hist_mc: {
1010
tool_type: NormalizeYZ
11-
FileName: "root://fndcadoor.fnal.gov:1094/pnfs/fnal.gov/usr/sbnd/persistent/stash/users/yadav/yz_correction_map_mcp2025b5e18.root"
11+
FileName: "YZmaps/yz_correction_map_mcp2025b5e18.root"
1212
Verbose: false
1313
}
1414

15-
# list of normalization tools - by far only YZ
15+
# list of normalization tools - by far only YZ correction is implemented
1616
sbnd_calonormtoolsdata: [@local::yznorm_hist_data]
1717
sbnd_calonormtoolsmc: [@local::yznorm_hist_mc]
1818

0 commit comments

Comments
 (0)