Jpp
Public Member Functions | Public Attributes | List of all members
SummaryHistograms Struct Reference

#include <JRunHistograms.hh>

Public Member Functions

 SummaryHistograms ()
 
void initialize (std::set< int > &du_ids, int modules_per_string, JFrameIndexRange &frame_index_range)
 
void init_h_frame_index_check (int n_frames)
 
void init_h_fifo (int n_frames, int first_frame, int last_frame)
 
void init_h_daq_status (int n_frames, int first_frame, int last_frame)
 
void init_h_hrv (int n_frames, int first_frame, int last_frame)
 
void init_h_fifo_per_dom (std::set< int > &du_ids, int modules_per_string)
 
void init_h_daq_status_per_dom (std::set< int > &du_ids, int modules_per_string)
 
void init_h_hrv_per_dom (set< int > &du_ids, int modules_per_string)
 
void init_h_rate_summary (set< int > &du_ids, int modules_per_string)
 
void init_h_pmt_rate_distribution ()
 
void init_m_mean_summary_rate (int modules_per_string)
 
void init_m_summary_rate_vs_time (int n_frames, double first_frame, double last_frame)
 
void init_m_summary_rate_distribution ()
 
void init_m_fifo_full (int n_frames, double first_frame, double last_frame)
 
void init_m_hrv (int n_frames, double first_frame, double last_frame)
 
void init_m_module_rates_vs_time (int n_frames, double min_time, double max_time)
 
void init_h_rate (int n_frames, int first_frame, int last_frame)
 

Public Attributes

TH1D * h_fifo
 
TH1D * h_mean_fifo
 
TH1D * h_daq_status
 
TH1D * h_frame_index_check
 
TH1D * h_hrv
 
TH2D * h_fifo_per_dom
 
TH2D * h_daq_status_per_dom
 
TH2D * h_hrv_per_dom
 
TH2D * h_rate_summary
 
TH1D * h_pmt_rate_distribution
 
JManager< string, TH2D > * m_mean_summary_rate
 
JManager< string, TProfile2D > * m_summary_rate_vs_time
 
JManager< string, TH2D > * m_summary_rate_distribution
 
JManager< string, TProfile2D > * m_fifo_full
 
JManager< string, TProfile2D > * m_hrv
 
JManager< string, TProfile > * m_module_rates_vs_time
 
TProfile * h_rate
 

Detailed Description

Definition at line 91 of file JRunHistograms.hh.

Constructor & Destructor Documentation

◆ SummaryHistograms()

SummaryHistograms::SummaryHistograms ( )
inline

Definition at line 139 of file JRunHistograms.hh.

139  {
140 
141  h_frame_index_check = NULL;
142 
143  h_fifo = NULL;
144 
145  // h_mean_fifo = NULL;
146 
147  h_daq_status = NULL;
148 
149  // h_mean_daq_status = NULL ;
150 
151  h_hrv = NULL ;
152 
153  // h_mean_hrv = NULL;
154 
155  // h_mean_wr_status = NULL;
156 
157  // h_mean_active_PMTs = NULL ;
158 
159  h_fifo_per_dom = NULL ;
160 
161  h_daq_status_per_dom = NULL ;
162 
163  h_hrv_per_dom = NULL ;
164 
165  h_rate_summary = NULL ;
166 
167  h_pmt_rate_distribution = NULL ;
168 
169  m_mean_summary_rate = NULL ;
170 
171  m_summary_rate_vs_time = NULL ;
172 
174 
175  m_fifo_full = NULL ;
176 
177  m_hrv = NULL ;
178 
179  m_module_rates_vs_time = NULL ;
180 
181  h_rate = NULL ;
182 
183  }

Member Function Documentation

◆ initialize()

void SummaryHistograms::initialize ( std::set< int > &  du_ids,
int  modules_per_string,
JFrameIndexRange frame_index_range 
)
inline

Definition at line 188 of file JRunHistograms.hh.

188  {
189 
190  int first_frame = frame_index_range.first ;
191 
192  int last_frame = frame_index_range.second ;
193 
194  int n_frames = last_frame - first_frame + 1 ;
195 
196  double frame_time_s = getFrameTime() * 1.0e-9 ;
197 
198  double min_time = -0.5 * frame_time_s ;
199 
200  double max_time = (frame_index_range.second - frame_index_range.first + 0.5 ) * frame_time_s ;
201 
202  init_h_fifo (n_frames , first_frame , last_frame) ;
203 
204  // init_h_mean_fifo () ;
205 
206  init_h_daq_status (n_frames , first_frame , last_frame) ;
207 
208  // init_h_mean_daq_status () ;
209 
210  init_h_hrv (n_frames , first_frame , last_frame) ;
211 
212  // init_h_mean_hrv () ;
213 
214  // init_h_mean_wr_status () ;
215 
216  // init_h_mean_active_PMTs (du_ids) ;
217 
218  init_h_fifo_per_dom (du_ids , modules_per_string) ;
219 
220  init_h_daq_status_per_dom (du_ids , modules_per_string) ;
221 
222  init_h_hrv_per_dom (du_ids , modules_per_string) ;
223 
224  init_h_rate_summary (du_ids , modules_per_string) ;
225 
227 
228  init_m_mean_summary_rate (modules_per_string) ;
229 
230  init_m_summary_rate_vs_time (n_frames , min_time , max_time) ;
231 
233 
234  init_m_fifo_full (n_frames , min_time , max_time) ;
235 
236  init_m_hrv (n_frames , min_time , max_time) ;
237 
238  init_m_module_rates_vs_time (n_frames , min_time , max_time) ;
239 
240  init_h_rate (n_frames , first_frame , last_frame) ;
241 
242  }

◆ init_h_frame_index_check()

void SummaryHistograms::init_h_frame_index_check ( int  n_frames)
inline

Definition at line 251 of file JRunHistograms.hh.

251  {
252 
253  string name = MAKE_STRING ("h_frame_index_check") ;
254 
255  string title = MAKE_STRING (" ; frame count ; frame index") ;
256 
257  h_frame_index_check = new TH1D (name.c_str() , title.c_str() , n_frames , -0.5 , n_frames + 0.5 ) ;
258 
259  }

◆ init_h_fifo()

void SummaryHistograms::init_h_fifo ( int  n_frames,
int  first_frame,
int  last_frame 
)
inline

Definition at line 268 of file JRunHistograms.hh.

268  {
269 
270  string name = MAKE_STRING ("h_fifo") ;
271 
272  string title = MAKE_STRING ("FIFO status ; slice number ; Average number of PMTs per module with FIFO almost full") ;
273 
274  h_fifo = new TH1D (name.c_str() , title.c_str() , n_frames , -0.5 , last_frame - first_frame + 0.5 ) ;
275 
276  }

◆ init_h_daq_status()

void SummaryHistograms::init_h_daq_status ( int  n_frames,
int  first_frame,
int  last_frame 
)
inline

Definition at line 298 of file JRunHistograms.hh.

298  {
299 
300  string name = MAKE_STRING ("h_daq_status") ;
301 
302  string title = MAKE_STRING ("DAQ status ; slice number ; Number of DOMS with wrong DAQ status of packets") ;
303 
304  h_daq_status = new TH1D (name.c_str() , title.c_str() , n_frames , -0.5 , last_frame - first_frame + 0.5 ) ;
305 
306  }

◆ init_h_hrv()

void SummaryHistograms::init_h_hrv ( int  n_frames,
int  first_frame,
int  last_frame 
)
inline

Definition at line 328 of file JRunHistograms.hh.

328  {
329 
330  string name = MAKE_STRING ("h_hrv") ;
331 
332  string title = MAKE_STRING ("High Rate Veto ; slice number ; Average number of PMTs per module in HRV regime") ;
333 
334  h_hrv = new TH1D (name.c_str() , title.c_str() , n_frames , -0.5 , last_frame - first_frame + 0.5 ) ;
335 
336  }

◆ init_h_fifo_per_dom()

void SummaryHistograms::init_h_fifo_per_dom ( std::set< int > &  du_ids,
int  modules_per_string 
)
inline

Definition at line 383 of file JRunHistograms.hh.

383  {
384 
385  string name = MAKE_STRING ("h_fifo_per_dom") ;
386 
387  string title = MAKE_STRING (" FIFO ; String ; Floor ; Number of slices with FIFO almost full ") ;
388 
389  h_fifo_per_dom = new TH2D (name.c_str() , title.c_str() , *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 , modules_per_string , 0.5 , modules_per_string + 0.5 ) ;
390 
391  }

◆ init_h_daq_status_per_dom()

void SummaryHistograms::init_h_daq_status_per_dom ( std::set< int > &  du_ids,
int  modules_per_string 
)
inline

Definition at line 399 of file JRunHistograms.hh.

399  {
400 
401  string name = MAKE_STRING ("h_daq_status_per_dom") ;
402 
403  string title = MAKE_STRING (" DAQ Status ; String ; Floor ; Number of slices with wrong DAQ status of packets ") ;
404 
405  h_daq_status_per_dom = new TH2D (name.c_str() , title.c_str() , *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 , modules_per_string , 0.5 , modules_per_string + 0.5 ) ;
406 
407  }

◆ init_h_hrv_per_dom()

void SummaryHistograms::init_h_hrv_per_dom ( set< int > &  du_ids,
int  modules_per_string 
)
inline

Definition at line 415 of file JRunHistograms.hh.

415  {
416 
417  string name = MAKE_STRING ("h_hrv_per_dom") ;
418 
419  string title = MAKE_STRING (" HRV ; String ; Floor ; Number of slices with at least 1 PMT in HRV ") ;
420 
421  h_hrv_per_dom = new TH2D (name.c_str() , title.c_str() , *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 , modules_per_string , 0.5 , modules_per_string + 0.5 ) ;
422 
423  }

◆ init_h_rate_summary()

void SummaryHistograms::init_h_rate_summary ( set< int > &  du_ids,
int  modules_per_string 
)
inline

Definition at line 431 of file JRunHistograms.hh.

431  {
432 
433  string name = MAKE_STRING ("h_rate_summary") ;
434 
435  string title = MAKE_STRING (" Summary slices ; String ; Floor ; Mean rate over all summary slices [kHz] ") ;
436 
437  h_rate_summary = new TH2D (name.c_str() , title.c_str() , *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 , modules_per_string , 0.5 , modules_per_string + 0.5 ) ;
438 
439  }

◆ init_h_pmt_rate_distribution()

void SummaryHistograms::init_h_pmt_rate_distribution ( )
inline

Definition at line 444 of file JRunHistograms.hh.

444  {
445 
446  string name = MAKE_STRING ("h_pmt_rate_distribution") ;
447 
448  string title = MAKE_STRING (" PMT rate distribution from summary slices ; rate [kHz] ; Counts ") ;
449 
450  h_pmt_rate_distribution = new TH1D (name.c_str() , title.c_str() , 40 , 0 , log10(1000)) ;
451 
453 
454  h_pmt_rate_distribution -> SetMinimum(1) ;
455 
456  }

◆ init_m_mean_summary_rate()

void SummaryHistograms::init_m_mean_summary_rate ( int  modules_per_string)
inline

Definition at line 463 of file JRunHistograms.hh.

463  {
464 
465  string name = MAKE_STRING ("%/h_mean_summary_rate") ;
466 
467  string title = MAKE_STRING (" ; PMT ; Floor ; rate [kHz] ") ;
468 
469  m_mean_summary_rate = new JManager < string , TH2D > (new TH2D(name.c_str() , title.c_str() , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5 , modules_per_string , 0.5 , 0.5 + modules_per_string)) ;
470 
471  }

◆ init_m_summary_rate_vs_time()

void SummaryHistograms::init_m_summary_rate_vs_time ( int  n_frames,
double  first_frame,
double  last_frame 
)
inline

Definition at line 482 of file JRunHistograms.hh.

482  {
483 
484  string name = MAKE_STRING ( "%/h_rate_vs_time_Summaryslice" ) ;
485 
486  string title = MAKE_STRING ("Summary slices ; frame index ; TDC channel ; rate [Hz]") ;
487 
488  m_summary_rate_vs_time = new JManager < string , TProfile2D > (new TProfile2D (name.c_str() , title.c_str() , int (n_frames/600) , -0.5 , last_frame - first_frame + 0.5 , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5)) ;
489 
490  }

◆ init_m_summary_rate_distribution()

void SummaryHistograms::init_m_summary_rate_distribution ( )
inline

Definition at line 496 of file JRunHistograms.hh.

496  {
497 
498  string name = MAKE_STRING ("%/h_pmt_rate_distributions_Summaryslice") ;
499 
500  string title = MAKE_STRING ("Summaryslice ; rate [kHz] ; TDC channel ; counts ") ;
501 
502  TH2D* h_summary_rate_distribution = new TH2D (name.c_str() , title.c_str() ,
503  40 , 0 , log10(1000),
504  NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5) ;
505 
506  BinLogX (h_summary_rate_distribution) ;
507 
508  m_summary_rate_distribution = new JManager < string , TH2D > (h_summary_rate_distribution) ;
509 
510  }

◆ init_m_fifo_full()

void SummaryHistograms::init_m_fifo_full ( int  n_frames,
double  first_frame,
double  last_frame 
)
inline

Definition at line 521 of file JRunHistograms.hh.

521  {
522 
523  string name = MAKE_STRING ( "%/h_fifo_almost_full" ) ;
524 
525  string title = MAKE_STRING (" ; frame index ; TDC channel ; FIFO almost full") ;
526 
527  m_fifo_full = new JManager < string , TProfile2D > (new TProfile2D (name.c_str() , title.c_str() , int(n_frames/600) , -0.5 , last_frame - first_frame + 0.5 , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5)) ;
528 
529  }

◆ init_m_hrv()

void SummaryHistograms::init_m_hrv ( int  n_frames,
double  first_frame,
double  last_frame 
)
inline

Definition at line 540 of file JRunHistograms.hh.

540  {
541 
542  string name = MAKE_STRING ( "%/h_hrv" ) ;
543 
544  string title = MAKE_STRING (" ; frame index ; TDC channel ; HRV ") ;
545 
546  m_hrv = new JManager < string , TProfile2D > (new TProfile2D (name.c_str() , title.c_str() , int(n_frames/600) , -0.5 , last_frame - first_frame + 0.5 , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5)) ;
547 
548  }

◆ init_m_module_rates_vs_time()

void SummaryHistograms::init_m_module_rates_vs_time ( int  n_frames,
double  min_time,
double  max_time 
)
inline

Definition at line 559 of file JRunHistograms.hh.

559  {
560 
561  string name = MAKE_STRING ( "%/h_module_rate_vs_time_Summaryslice") ;
562 
563  string title = MAKE_STRING ("Summaryslice ; time since run start [s] ; rate [Hz]" ) ;
564 
565  m_module_rates_vs_time = new JManager < string , TProfile > (new TProfile (name.c_str() , title.c_str() , int(n_frames/1) , min_time , max_time)) ;
566 
567  }

◆ init_h_rate()

void SummaryHistograms::init_h_rate ( int  n_frames,
int  first_frame,
int  last_frame 
)
inline

Definition at line 578 of file JRunHistograms.hh.

578  {
579 
580  string name = MAKE_STRING ("h_rate_Summaryslice") ;
581 
582  string title = MAKE_STRING ("Average module rate (Summaryslice) ; slice number ; rate [Hz]") ;
583 
584  h_rate = new TProfile ( name.c_str() , title.c_str() , int(n_frames/600) , -0.5 , last_frame - first_frame + 0.5 ) ;
585 
586  }

Member Data Documentation

◆ h_fifo

TH1D* SummaryHistograms::h_fifo

Definition at line 93 of file JRunHistograms.hh.

◆ h_mean_fifo

TH1D* SummaryHistograms::h_mean_fifo

Definition at line 95 of file JRunHistograms.hh.

◆ h_daq_status

TH1D* SummaryHistograms::h_daq_status

Definition at line 97 of file JRunHistograms.hh.

◆ h_frame_index_check

TH1D* SummaryHistograms::h_frame_index_check

Definition at line 99 of file JRunHistograms.hh.

◆ h_hrv

TH1D* SummaryHistograms::h_hrv

Definition at line 103 of file JRunHistograms.hh.

◆ h_fifo_per_dom

TH2D* SummaryHistograms::h_fifo_per_dom

Definition at line 111 of file JRunHistograms.hh.

◆ h_daq_status_per_dom

TH2D* SummaryHistograms::h_daq_status_per_dom

Definition at line 113 of file JRunHistograms.hh.

◆ h_hrv_per_dom

TH2D* SummaryHistograms::h_hrv_per_dom

Definition at line 115 of file JRunHistograms.hh.

◆ h_rate_summary

TH2D* SummaryHistograms::h_rate_summary

Definition at line 117 of file JRunHistograms.hh.

◆ h_pmt_rate_distribution

TH1D* SummaryHistograms::h_pmt_rate_distribution

Definition at line 119 of file JRunHistograms.hh.

◆ m_mean_summary_rate

JManager< string , TH2D >* SummaryHistograms::m_mean_summary_rate

Definition at line 123 of file JRunHistograms.hh.

◆ m_summary_rate_vs_time

JManager< string , TProfile2D >* SummaryHistograms::m_summary_rate_vs_time

Definition at line 127 of file JRunHistograms.hh.

◆ m_summary_rate_distribution

JManager< string , TH2D >* SummaryHistograms::m_summary_rate_distribution

Definition at line 129 of file JRunHistograms.hh.

◆ m_fifo_full

JManager< string , TProfile2D >* SummaryHistograms::m_fifo_full

Definition at line 131 of file JRunHistograms.hh.

◆ m_hrv

JManager< string , TProfile2D >* SummaryHistograms::m_hrv

Definition at line 133 of file JRunHistograms.hh.

◆ m_module_rates_vs_time

JManager< string , TProfile >* SummaryHistograms::m_module_rates_vs_time

Definition at line 135 of file JRunHistograms.hh.

◆ h_rate

TProfile* SummaryHistograms::h_rate

Definition at line 137 of file JRunHistograms.hh.


The documentation for this struct was generated from the following file:
SummaryHistograms::init_m_module_rates_vs_time
void init_m_module_rates_vs_time(int n_frames, double min_time, double max_time)
Definition: JRunHistograms.hh:559
SummaryHistograms::init_m_fifo_full
void init_m_fifo_full(int n_frames, double first_frame, double last_frame)
Definition: JRunHistograms.hh:521
JManager< string, TH2D >
SummaryHistograms::init_m_hrv
void init_m_hrv(int n_frames, double first_frame, double last_frame)
Definition: JRunHistograms.hh:540
SummaryHistograms::init_m_summary_rate_vs_time
void init_m_summary_rate_vs_time(int n_frames, double first_frame, double last_frame)
Definition: JRunHistograms.hh:482
SummaryHistograms::init_h_fifo
void init_h_fifo(int n_frames, int first_frame, int last_frame)
Definition: JRunHistograms.hh:268
SummaryHistograms::init_h_daq_status_per_dom
void init_h_daq_status_per_dom(std::set< int > &du_ids, int modules_per_string)
Definition: JRunHistograms.hh:399
JTOOLS::JPair::first
JKey_t first
Definition: JPair.hh:128
SummaryHistograms::h_fifo
TH1D * h_fifo
Definition: JRunHistograms.hh:93
SummaryHistograms::h_rate_summary
TH2D * h_rate_summary
Definition: JRunHistograms.hh:117
SummaryHistograms::h_frame_index_check
TH1D * h_frame_index_check
Definition: JRunHistograms.hh:99
KM3NETDAQ::NUMBER_OF_PMTS
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
SummaryHistograms::init_h_rate
void init_h_rate(int n_frames, int first_frame, int last_frame)
Definition: JRunHistograms.hh:578
SummaryHistograms::h_pmt_rate_distribution
TH1D * h_pmt_rate_distribution
Definition: JRunHistograms.hh:119
MAKE_STRING
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
SummaryHistograms::h_rate
TProfile * h_rate
Definition: JRunHistograms.hh:137
SummaryHistograms::init_h_hrv_per_dom
void init_h_hrv_per_dom(set< int > &du_ids, int modules_per_string)
Definition: JRunHistograms.hh:415
SummaryHistograms::h_daq_status_per_dom
TH2D * h_daq_status_per_dom
Definition: JRunHistograms.hh:113
SummaryHistograms::init_h_fifo_per_dom
void init_h_fifo_per_dom(std::set< int > &du_ids, int modules_per_string)
Definition: JRunHistograms.hh:383
SummaryHistograms::init_h_daq_status
void init_h_daq_status(int n_frames, int first_frame, int last_frame)
Definition: JRunHistograms.hh:298
BinLogX
void BinLogX(T *h)
Definition: JRunHistograms.hh:48
SummaryHistograms::h_hrv_per_dom
TH2D * h_hrv_per_dom
Definition: JRunHistograms.hh:115
KM3NETDAQ::getFrameTime
double getFrameTime()
Get frame time duration.
Definition: JDAQClock.hh:162
SummaryHistograms::h_daq_status
TH1D * h_daq_status
Definition: JRunHistograms.hh:97
SummaryHistograms::m_hrv
JManager< string, TProfile2D > * m_hrv
Definition: JRunHistograms.hh:133
SummaryHistograms::m_mean_summary_rate
JManager< string, TH2D > * m_mean_summary_rate
Definition: JRunHistograms.hh:123
SummaryHistograms::init_h_hrv
void init_h_hrv(int n_frames, int first_frame, int last_frame)
Definition: JRunHistograms.hh:328
SummaryHistograms::init_m_mean_summary_rate
void init_m_mean_summary_rate(int modules_per_string)
Definition: JRunHistograms.hh:463
SummaryHistograms::init_m_summary_rate_distribution
void init_m_summary_rate_distribution()
Definition: JRunHistograms.hh:496
SummaryHistograms::init_h_pmt_rate_distribution
void init_h_pmt_rate_distribution()
Definition: JRunHistograms.hh:444
SummaryHistograms::h_fifo_per_dom
TH2D * h_fifo_per_dom
Definition: JRunHistograms.hh:111
SummaryHistograms::m_summary_rate_vs_time
JManager< string, TProfile2D > * m_summary_rate_vs_time
Definition: JRunHistograms.hh:127
SummaryHistograms::h_hrv
TH1D * h_hrv
Definition: JRunHistograms.hh:103
SummaryHistograms::m_summary_rate_distribution
JManager< string, TH2D > * m_summary_rate_distribution
Definition: JRunHistograms.hh:129
SummaryHistograms::m_fifo_full
JManager< string, TProfile2D > * m_fifo_full
Definition: JRunHistograms.hh:131
JTOOLS::JPair::second
JValue_t second
Definition: JPair.hh:129
SummaryHistograms::m_module_rates_vs_time
JManager< string, TProfile > * m_module_rates_vs_time
Definition: JRunHistograms.hh:135
SummaryHistograms::init_h_rate_summary
void init_h_rate_summary(set< int > &du_ids, int modules_per_string)
Definition: JRunHistograms.hh:431