Skip to content

Commit 076fc35

Browse files
committed
Add rate for tracks of limited angle
1 parent 8efaff2 commit 076fc35

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sbndcode/CRT/CRTAna/ADRIFT_module.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class sbnd::crt::ADRIFT : public art::EDAnalyzer {
117117
uint64_t _unix_start, _unix_end;
118118
int _n_events, _channel, _gdml_id, _mac5, _raw_channel, _tagger, _channel_status;
119119
double _area, _y_average, _ped_calib, _gain_calib, _ped_fit, _ped_fit_std, _ped_fit_chi2, _ped_peak,
120-
_ped_reset_fit, _ped_reset_fit_std, _ped_reset_fit_chi2, _ped_reset_peak, _raw_max_chan_rate, _sh_rate, _sp_rate, _tr_rate,
120+
_ped_reset_fit, _ped_reset_fit_std, _ped_reset_fit_chi2, _ped_reset_peak, _raw_max_chan_rate, _sh_rate, _sp_rate, _tr_rate, _tr_lim_angle_rate,
121121
_sh_peak_fit, _sh_peak_fit_chi2, _sh_peak_peak, _sh_pe_peak_fit, _sh_pe_peak_fit_chi2, _sh_pe_peak_peak,
122122
_sh_sat_rate, _sh_sat_ratio_total, _sh_sat_ratio_peak, _sp_peak_fit, _sp_peak_fit_chi2, _sp_peak_peak,
123123
_sp_pe_peak_fit, _sp_pe_peak_fit_chi2, _sp_pe_peak_peak, _sp_sat_rate, _sp_sat_ratio_total, _sp_sat_ratio_peak,
@@ -270,6 +270,7 @@ sbnd::crt::ADRIFT::ADRIFT(fhicl::ParameterSet const& p)
270270
}
271271
if(fTrackLA)
272272
{
273+
fChannelTree->Branch("tr_lim_angle_rate", &_tr_lim_angle_rate);
273274
fChannelTree->Branch("tr_lim_angle_peak_fit", &_tr_lim_angle_peak_fit);
274275
fChannelTree->Branch("tr_lim_angle_peak_fit_chi2", &_tr_lim_angle_peak_fit_chi2);
275276
fChannelTree->Branch("tr_lim_angle_peak_fit_converged", &_tr_lim_angle_peak_fit_converged);
@@ -992,6 +993,8 @@ void sbnd::crt::ADRIFT::ProcessEntry(const int ch, const int window)
992993

993994
if(fTrackLA && _tagger != kBottomTagger)
994995
{
996+
Rate(hADCTrLA[window][ch], _tr_lim_angle_rate, window, fReconstructionWindow);
997+
995998
PeakPeak(hADCTrLA[window][ch], _ped_calib, _tr_lim_angle_peak_peak);
996999
PeakFit(hADCTrLA[window][ch], _tr_lim_angle_peak_peak, _ped_calib, _tr_lim_angle_peak_fit, _tr_lim_angle_peak_fit_chi2, _tr_lim_angle_peak_fit_converged, _channel_status, window);
9971000

@@ -1302,6 +1305,7 @@ void sbnd::crt::ADRIFT::ResetVars()
13021305
_tr_by_length_peak_fit = std::numeric_limits<double>::lowest();
13031306
_tr_by_length_peak_fit_chi2 = std::numeric_limits<double>::lowest();
13041307
_tr_by_length_peak_peak = std::numeric_limits<double>::lowest();
1308+
_tr_lim_angle_rate = std::numeric_limits<double>::lowest();
13051309
_tr_lim_angle_peak_fit = std::numeric_limits<double>::lowest();
13061310
_tr_lim_angle_peak_fit_chi2 = std::numeric_limits<double>::lowest();
13071311
_tr_lim_angle_peak_peak = std::numeric_limits<double>::lowest();

0 commit comments

Comments
 (0)