353 while (scanner.hasNext()){
355 T slice = *(scanner.next()) ;
357 double time_since_run_start = (slice.getFrameIndex() - frame_index_range.
first) *
getFrameTime() * 1.0e-9 ;
365 for(
auto & s_frame : slice){
369 double rate = s_frame.numberOfHits / (1.0e-9 *
getFrameTime()) ;
375 DOM_rate_quantiles[string][floor].put(rate) ;
377 detector_rate_quantile.
put (rate) ;
383 active_DOM_quantile.
put ( 1 ) ;
385 active_DOM_DU_quantiles [string].put(1) ;
401 hit_time_buffers[hit->getPMT()].push_back (hit->getT()) ;
403 tot_quantiles[hit->getPMT()].put (hit->getToT()) ;
405 pmt_rate_quantiles[hit->getPMT()].put (1) ;
407 if (hit->getToT() == 255) {
429 if (pmt->second.getCount() > 0){
437 for (
int i=1 ; i < (int)hit_time_buffers[pmt->first].size() ; i++){
vector< JManager< string, TH2D > * > m_ToT_255
JRA_Histograms histograms
vector< JManager< string, TH2D > * > m_pmt_tot_distributions
Data structure for a composite optical module.
vector< TH2D * > h_dom_mean_rates
vector< TH2D * > h_ToT_255_Floor_vs_time_2
#define MAKE_STRING(A)
Make string.
int getFloor() const
Get floor number.
int getString() const
Get string number.
TimesliceHistograms h_timeslice
JModuleRouter * module_router
vector< JManager< string, TProfile2D > * > m_pmt_rates_vs_time
vector< TProfile2D * > h_du_active_modules
double getFrameTime()
Get frame time duration.
vector< JManager< string, TProfile2D > * > m_pmt_tot_vs_time
vector< TH2D * > h_ToT_255_Floor_vs_time
vector< TProfile * > h_active_modules
std::string to_string(const T &value)
Convert value to string.
vector< JManager< string, TH2D > * > m_pmt_rate_distributions
vector< JManager< string, TH2D > * > m_pmt_dt_consecutive_hits
vector< TH1D * > h_slice_start_time
vector< JManager< string, TProfile > * > m_module_rates_vs_time
Indexing of data type in type list.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
vector< TH1D * > h_ToT_255_vs_time
int getNumberOfModules(const JDetector &detector)
Get number of modules.
vector< TProfile * > h_rate
const JModule & getModule(const JDetector &detector, const JModuleLocation &location)
find module with a given string and floor number