lightana::FlashT0SelectedChannels::FlashT0SelectedChannels |
( |
art::ToolConfigTable< Config > const & |
config | ) |
|
|
explicit |
double lightana::FlashT0SelectedChannels::GetFlashT0 |
( |
double |
flash_peaktime, |
|
|
LiteOpHitArray_t |
ophit_list |
|
) |
| |
|
overridevirtual |
Implements lightana::FlashT0Base.
Definition at line 77 of file FlashT0SelectedChannels_tool.cc.
79 std::vector< std::pair<double, double> > selected_hits;
83 for(
auto const&
hit : ophit_list) {
85 selected_hits.push_back( std::make_pair(
hit.pe,
hit.peak_time));
92 std::sort( selected_hits.begin(), selected_hits.end(), std::greater< std::pair<double, double> >() );
94 double flasht0_mean=0, pe_count=0;
98 for (
size_t ix=0; ix<selected_hits.size(); ix++) {
99 pe_count += selected_hits[ix].first;
100 flasht0_mean += selected_hits[ix].second;
105 return flasht0_mean/nophits;
double lightana::FlashT0SelectedChannels::fMinHitPE |
|
private |
double lightana::FlashT0SelectedChannels::fPDFraction |
|
private |
double lightana::FlashT0SelectedChannels::fPostWindow |
|
private |
double lightana::FlashT0SelectedChannels::fPreWindow |
|
private |
The documentation for this class was generated from the following file: