File tree Expand file tree Collapse file tree
sbndcode/Calibration/TPCCalorimetry Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ BEGIN_PROLOG
22
33yznorm_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
99yznorm_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
1616sbnd_calonormtoolsdata: [@local::yznorm_hist_data]
1717sbnd_calonormtoolsmc: [@local::yznorm_hist_mc]
1818
You can’t perform that action at this time.
0 commit comments