21 delete data_grid_light_guide_efficiency;
34 std::cout <<
"No calibration for domain " << domain <<
" for timestamp " << rc->
get_uint64Flag(
"TIMESTAMP") << std::endl;
37 TFile *fin = TFile::Open(url.c_str());
40 std::cout <<
"could not open " << url << std::endl;
43 delete data_grid_light_guide_efficiency;
44 data_grid_light_guide_efficiency =
dynamic_cast<TH2 *
>(fin->Get(histogram_light_guide_model.c_str()));
45 assert(data_grid_light_guide_efficiency);
46 data_grid_light_guide_efficiency->SetDirectory(
nullptr);
59 TFile *fin = TFile::Open(input_file.c_str());
64 delete data_grid_light_guide_efficiency;
65 data_grid_light_guide_efficiency =
dynamic_cast<TH2 *
>(fin->Get(histogram_light_guide_model.c_str()));
66 assert(data_grid_light_guide_efficiency);
67 data_grid_light_guide_efficiency->SetDirectory(
nullptr);
79 assert(data_grid_light_guide_efficiency);
85 const double eff = data_grid_light_guide_efficiency->Interpolate(x_fraction,
91 "light collection efficiency as used in LightCollectionModel;x positio fraction;y position fraction",
92 100, 0., 1., 100, 0., 1.);
113 "SCSF-78 Fiber Transmission as used in LightCollectionModel;position in fiber (cm);Effective transmission",