@@ -115,6 +115,15 @@ void sbndDB::PMTCalibrationDatabaseProvider::ReadPMTCalibration(uint32_t run)
115115 << " ) while trying to access 'caen_digitizer_channel' on table " << dbname << " \n " ;
116116 fPMTCalibrationData [channel].caenDigitizerChannel = static_cast <int >(_caen_digitizer_channel);
117117
118+ // Read reconstruct channel
119+ bool _reconstruct_channel = false ;
120+ error = db.GetNamedChannelData (channel, " reconstruct_channel" , _reconstruct_channel);
121+ if (error)
122+ throw cet::exception (" PMTTimingCorrectionsProvider" )
123+ << " Encountered error (code " << error
124+ << " ) while trying to access 'reconstruct_channel' on table " << dbname << " \n " ;
125+ fPMTCalibrationData [channel].reconstructChannel = _reconstruct_channel;
126+
118127 // Read total transit time
119128 double _total_transit_time = 0 .;
120129 error = db.GetNamedChannelData (channel, " total_transit_time" , _total_transit_time);
@@ -124,6 +133,15 @@ void sbndDB::PMTCalibrationDatabaseProvider::ReadPMTCalibration(uint32_t run)
124133 << " ) while trying to access 'total_transit_time' on table " << dbname << " \n " ;
125134 fPMTCalibrationData [channel].totalTransitTime = _total_transit_time;
126135
136+ // Read cosmic timing correction
137+ double _cosmic_timing_correction = 0 .;
138+ error = db.GetNamedChannelData (channel, " cosmic_timing_correction" , _cosmic_timing_correction);
139+ if (error)
140+ throw cet::exception (" PMTTimingCorrectionsProvider" )
141+ << " Encountered error (code " << error
142+ << " ) while trying to access 'cosmic_timing_correction' on table " << dbname << " \n " ;
143+ fPMTCalibrationData [channel].cosmicTimeCorrection = _cosmic_timing_correction;
144+
127145 // Read spe amplitude
128146 double _spe_amplitude = 0 .;
129147 error = db.GetNamedChannelData (channel, " spe_amp" , _spe_amplitude);
@@ -133,6 +151,15 @@ void sbndDB::PMTCalibrationDatabaseProvider::ReadPMTCalibration(uint32_t run)
133151 << " ) while trying to access 'spe_amplitude' on table " << dbname << " \n " ;
134152 fPMTCalibrationData [channel].spe_amplitude = _spe_amplitude;
135153
154+ // Read spe amplitude std
155+ double _spe_amplitude_std = 0 .;
156+ error = db.GetNamedChannelData (channel, " spe_amp_std" , _spe_amplitude_std);
157+ if (error)
158+ throw cet::exception (" PMTTimingCorrectionsProvider" )
159+ << " Encountered error (code " << error
160+ << " ) while trying to access 'spe_amplitude_std' on table " << dbname << " \n " ;
161+ fPMTCalibrationData [channel].spe_amplitude_std = _spe_amplitude_std;
162+
136163 // Read gauss filter power
137164 double _gauss_w_wc_power = 0 ;
138165 error = db.GetNamedChannelData (channel, " gauss_w_wc_power" , _gauss_w_wc_power);
0 commit comments