Skip to content
Snippets Groups Projects
Commit 0734d328 authored by Mark Jones's avatar Mark Jones Committed by Mark K Jones
Browse files

Fix bug in THcCherenkov::ReadDatabase

Moved filling of  fNRegions from parameter to before the fRegionValue array
is defined. The code had been using default fNRegions=4 regardless
of vaule  of  h_num_regions in parameter file.
parent 337c13b6
No related branches found
No related tags found
No related merge requests found
...@@ -170,6 +170,7 @@ Int_t THcCherenkov::ReadDatabase( const TDatime& date ) ...@@ -170,6 +170,7 @@ Int_t THcCherenkov::ReadDatabase( const TDatime& date )
DBRequest list_1[] = { DBRequest list_1[] = {
{"_tot_pmts", &fNelem, kInt}, {"_tot_pmts", &fNelem, kInt},
{"_num_regions", &fNRegions, kInt},
{0} {0}
}; };
...@@ -206,7 +207,6 @@ Int_t THcCherenkov::ReadDatabase( const TDatime& date ) ...@@ -206,7 +207,6 @@ Int_t THcCherenkov::ReadDatabase( const TDatime& date )
{"_adcTimeWindowMin", &fAdcTimeWindowMin, kDouble}, {"_adcTimeWindowMin", &fAdcTimeWindowMin, kDouble},
{"_adcTimeWindowMax", &fAdcTimeWindowMax, kDouble}, {"_adcTimeWindowMax", &fAdcTimeWindowMax, kDouble},
{"_adc_tdc_offset", &fAdcTdcOffset, kDouble, 0, 1}, {"_adc_tdc_offset", &fAdcTdcOffset, kDouble, 0, 1},
{"_num_regions", &fNRegions, kInt},
{"_region", &fRegionValue[0], kDouble, (UInt_t) fRegionsValueMax}, {"_region", &fRegionValue[0], kDouble, (UInt_t) fRegionsValueMax},
{0} {0}
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment