Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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_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_daq_status
 
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 ( )
inline

Definition at line 127 of file JRunHistograms.hh.

127  {
128 
129  h_fifo = NULL;
130 
131  h_daq_status = NULL;
132 
133  h_hrv = NULL ;
134 
135  h_fifo_per_dom = NULL ;
136 
137  h_daq_status_per_dom = NULL ;
138 
139  h_hrv_per_dom = NULL ;
140 
141  h_rate_summary = NULL ;
142 
143  h_pmt_rate_distribution = NULL ;
144 
145  m_mean_summary_rate = NULL ;
146 
147  m_summary_rate_vs_time = NULL ;
148 
150 
151  m_fifo_full = NULL ;
152 
153  m_hrv = NULL ;
154 
155  m_module_rates_vs_time = NULL ;
156 
157  h_rate = NULL ;
158  }
JManager< string, TProfile2D > * m_hrv
JManager< string, TProfile2D > * m_summary_rate_vs_time
JManager< string, TProfile > * m_module_rates_vs_time
JManager< string, TH2D > * m_mean_summary_rate
TH1D * h_pmt_rate_distribution
JManager< string, TH2D > * m_summary_rate_distribution
JManager< string, TProfile2D > * m_fifo_full

Member Function Documentation

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

Definition at line 163 of file JRunHistograms.hh.

163  {
164 
165  int first_frame = frame_index_range.first ;
166 
167  int last_frame = frame_index_range.second ;
168 
169  int n_frames = last_frame - first_frame + 1 ;
170 
171  double frame_time_s = getFrameTime() * 1.0e-9 ;
172 
173  double min_time = -0.5 * frame_time_s ;
174 
175  double max_time = (frame_index_range.second - frame_index_range.first + 0.5 ) * frame_time_s ;
176 
177  init_h_fifo (n_frames , first_frame , last_frame) ;
178 
179  init_h_daq_status (n_frames , first_frame , last_frame) ;
180 
181  init_h_hrv (n_frames , first_frame , last_frame) ;
182 
183  init_h_fifo_per_dom (du_ids , modules_per_string) ;
184 
185  init_h_daq_status_per_dom (du_ids , modules_per_string) ;
186 
187  init_h_hrv_per_dom (du_ids , modules_per_string) ;
188 
189  init_h_rate_summary (du_ids , modules_per_string) ;
190 
192 
193  init_m_mean_summary_rate (modules_per_string) ;
194 
195  init_m_summary_rate_vs_time (n_frames , min_time , max_time) ;
196 
198 
199  init_m_fifo_full (n_frames , min_time , max_time) ;
200 
201  init_m_hrv (n_frames , min_time , max_time) ;
202 
203  init_m_module_rates_vs_time (n_frames , min_time , max_time) ;
204 
205  init_h_rate (n_frames , first_frame , last_frame) ;
206 
207  }
void init_h_rate_summary(set< int > &du_ids, int modules_per_string)
void init_h_fifo_per_dom(std::set< int > &du_ids, int modules_per_string)
void init_h_rate(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_m_module_rates_vs_time(int n_frames, double min_time, double max_time)
JValue_t second
Definition: JPair.hh:129
void init_m_summary_rate_distribution()
JKey_t first
Definition: JPair.hh:128
void init_m_mean_summary_rate(int modules_per_string)
void init_m_hrv(int n_frames, double first_frame, double last_frame)
void init_m_summary_rate_vs_time(int n_frames, double first_frame, double last_frame)
double getFrameTime()
Get frame time duration.
Definition: JDAQClock.hh:162
void init_m_fifo_full(int n_frames, double first_frame, double last_frame)
void init_h_fifo(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_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_pmt_rate_distribution()
void SummaryHistograms::init_h_fifo ( int  n_frames,
int  first_frame,
int  last_frame 
)
inline

Definition at line 216 of file JRunHistograms.hh.

216  {
217 
218  string name = MAKE_STRING ("h_fifo") ;
219 
220  string title = MAKE_STRING ("FIFO status ; slice number ; Average number of PMTs per module with FIFO almost full") ;
221 
222  h_fifo = new TH1D (name.c_str() , title.c_str() , n_frames , -0.5 , last_frame - first_frame + 0.5 ) ;
223 
224  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
void SummaryHistograms::init_h_daq_status ( int  n_frames,
int  first_frame,
int  last_frame 
)
inline

Definition at line 233 of file JRunHistograms.hh.

233  {
234 
235  string name = MAKE_STRING ("h_daq_status") ;
236 
237  string title = MAKE_STRING ("DAQ status ; slice number ; Number of DOMS with wrong DAQ status of packets") ;
238 
239  h_daq_status = new TH1D (name.c_str() , title.c_str() , n_frames , -0.5 , last_frame - first_frame + 0.5 ) ;
240 
241  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
void SummaryHistograms::init_h_hrv ( int  n_frames,
int  first_frame,
int  last_frame 
)
inline

Definition at line 250 of file JRunHistograms.hh.

250  {
251 
252  string name = MAKE_STRING ("h_hrv") ;
253 
254  string title = MAKE_STRING ("High Rate Veto ; slice number ; Average number of PMTs per module in HRV regime") ;
255 
256  h_hrv = new TH1D (name.c_str() , title.c_str() , n_frames , -0.5 , last_frame - first_frame + 0.5 ) ;
257 
258  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
void SummaryHistograms::init_h_fifo_per_dom ( std::set< int > &  du_ids,
int  modules_per_string 
)
inline

Definition at line 266 of file JRunHistograms.hh.

266  {
267 
268  string name = MAKE_STRING ("h_fifo_per_dom") ;
269 
270  string title = MAKE_STRING (" FIFO ; String ; Floor ; Number of slices with FIFO almost full ") ;
271 
272  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 ) ;
273 
274  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
void SummaryHistograms::init_h_daq_status_per_dom ( std::set< int > &  du_ids,
int  modules_per_string 
)
inline

Definition at line 282 of file JRunHistograms.hh.

282  {
283 
284  string name = MAKE_STRING ("h_daq_status_per_dom") ;
285 
286  string title = MAKE_STRING (" DAQ Status ; String ; Floor ; Number of slices with wrong DAQ status of packets ") ;
287 
288  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 ) ;
289 
290  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
void SummaryHistograms::init_h_hrv_per_dom ( set< int > &  du_ids,
int  modules_per_string 
)
inline

Definition at line 298 of file JRunHistograms.hh.

298  {
299 
300  string name = MAKE_STRING ("h_hrv_per_dom") ;
301 
302  string title = MAKE_STRING (" HRV ; String ; Floor ; Number of slices with at least 1 PMT in HRV ") ;
303 
304  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 ) ;
305 
306  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
void SummaryHistograms::init_h_rate_summary ( set< int > &  du_ids,
int  modules_per_string 
)
inline

Definition at line 314 of file JRunHistograms.hh.

314  {
315 
316  string name = MAKE_STRING ("h_rate_summary") ;
317 
318  string title = MAKE_STRING (" Summary slices ; String ; Floor ; Mean rate over all summary slices [kHz] ") ;
319 
320  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 ) ;
321 
322  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
void SummaryHistograms::init_h_pmt_rate_distribution ( )
inline

Definition at line 327 of file JRunHistograms.hh.

327  {
328 
329  string name = MAKE_STRING ("h_pmt_rate_distribution") ;
330 
331  string title = MAKE_STRING (" PMT rate distribution from summary slices ; rate [kHz] ; Counts ") ;
332 
333  h_pmt_rate_distribution = new TH1D (name.c_str() , title.c_str() , 40 , 0 , log10(1000)) ;
334 
336 
337  h_pmt_rate_distribution -> SetMinimum(1) ;
338 
339  }
void BinLogX(T *h)
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
TH1D * h_pmt_rate_distribution
void SummaryHistograms::init_m_mean_summary_rate ( int  modules_per_string)
inline

Definition at line 346 of file JRunHistograms.hh.

346  {
347 
348  string name = MAKE_STRING ("%/h_mean_summary_rate") ;
349 
350  string title = MAKE_STRING (" ; PMT ; Floor ; rate [kHz] ") ;
351 
352  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)) ;
353 
354  }
JManager< string, TH2D > * m_mean_summary_rate
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
void SummaryHistograms::init_m_summary_rate_vs_time ( int  n_frames,
double  first_frame,
double  last_frame 
)
inline

Definition at line 365 of file JRunHistograms.hh.

365  {
366 
367  string name = MAKE_STRING ( "%/h_rate_vs_time_Summaryslice" ) ;
368 
369  string title = MAKE_STRING ("Summary slices ; frame index ; TDC channel ; rate [Hz]") ;
370 
371  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)) ;
372 
373  }
JManager< string, TProfile2D > * m_summary_rate_vs_time
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
void SummaryHistograms::init_m_summary_rate_distribution ( )
inline

Definition at line 379 of file JRunHistograms.hh.

379  {
380 
381  string name = MAKE_STRING ("%/h_pmt_rate_distributions_Summaryslice") ;
382 
383  string title = MAKE_STRING ("Summaryslice ; rate [kHz] ; TDC channel ; counts ") ;
384 
385  TH2D* h_summary_rate_distribution = new TH2D (name.c_str() , title.c_str() ,
386  40 , 0 , log10(1000),
387  NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5) ;
388 
389  BinLogX (h_summary_rate_distribution) ;
390 
391  m_summary_rate_distribution = new JManager < string , TH2D > (h_summary_rate_distribution) ;
392 
393  }
void BinLogX(T *h)
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
JManager< string, TH2D > * m_summary_rate_distribution
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
void SummaryHistograms::init_m_fifo_full ( int  n_frames,
double  first_frame,
double  last_frame 
)
inline

Definition at line 404 of file JRunHistograms.hh.

404  {
405 
406  string name = MAKE_STRING ( "%/h_fifo_almost_full" ) ;
407 
408  string title = MAKE_STRING (" ; frame index ; TDC channel ; FIFO almost full") ;
409 
410  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)) ;
411 
412  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
JManager< string, TProfile2D > * m_fifo_full
void SummaryHistograms::init_m_hrv ( int  n_frames,
double  first_frame,
double  last_frame 
)
inline

Definition at line 423 of file JRunHistograms.hh.

423  {
424 
425  string name = MAKE_STRING ( "%/h_hrv" ) ;
426 
427  string title = MAKE_STRING (" ; frame index ; TDC channel ; HRV ") ;
428 
429  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)) ;
430 
431  }
JManager< string, TProfile2D > * m_hrv
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
void SummaryHistograms::init_m_module_rates_vs_time ( int  n_frames,
double  min_time,
double  max_time 
)
inline

Definition at line 442 of file JRunHistograms.hh.

442  {
443 
444  string name = MAKE_STRING ( "%/h_module_rate_vs_time_Summaryslice") ;
445 
446  string title = MAKE_STRING ("Summaryslice ; time since run start [s] ; rate [Hz]" ) ;
447 
448  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)) ;
449 
450  }
JManager< string, TProfile > * m_module_rates_vs_time
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602
void SummaryHistograms::init_h_rate ( int  n_frames,
int  first_frame,
int  last_frame 
)
inline

Definition at line 461 of file JRunHistograms.hh.

461  {
462 
463  string name = MAKE_STRING ("h_rate_Summaryslice") ;
464 
465  string title = MAKE_STRING ("Average module rate (Summaryslice) ; slice number ; rate [Hz]") ;
466 
467  h_rate = new TProfile ( name.c_str() , title.c_str() , int(n_frames/600) , -0.5 , last_frame - first_frame + 0.5 ) ;
468 
469  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:602

Member Data Documentation

TH1D* SummaryHistograms::h_fifo

Definition at line 93 of file JRunHistograms.hh.

TH1D* SummaryHistograms::h_daq_status

Definition at line 95 of file JRunHistograms.hh.

TH1D* SummaryHistograms::h_hrv

Definition at line 97 of file JRunHistograms.hh.

TH2D* SummaryHistograms::h_fifo_per_dom

Definition at line 99 of file JRunHistograms.hh.

TH2D* SummaryHistograms::h_daq_status_per_dom

Definition at line 101 of file JRunHistograms.hh.

TH2D* SummaryHistograms::h_hrv_per_dom

Definition at line 103 of file JRunHistograms.hh.

TH2D* SummaryHistograms::h_rate_summary

Definition at line 105 of file JRunHistograms.hh.

TH1D* SummaryHistograms::h_pmt_rate_distribution

Definition at line 107 of file JRunHistograms.hh.

JManager< string , TH2D >* SummaryHistograms::m_mean_summary_rate

Definition at line 111 of file JRunHistograms.hh.

JManager< string , TProfile2D >* SummaryHistograms::m_summary_rate_vs_time

Definition at line 115 of file JRunHistograms.hh.

JManager< string , TH2D >* SummaryHistograms::m_summary_rate_distribution

Definition at line 117 of file JRunHistograms.hh.

JManager< string , TProfile2D >* SummaryHistograms::m_fifo_full

Definition at line 119 of file JRunHistograms.hh.

JManager< string , TProfile2D >* SummaryHistograms::m_hrv

Definition at line 121 of file JRunHistograms.hh.

JManager< string , TProfile >* SummaryHistograms::m_module_rates_vs_time

Definition at line 123 of file JRunHistograms.hh.

TProfile* SummaryHistograms::h_rate

Definition at line 125 of file JRunHistograms.hh.


The documentation for this struct was generated from the following file: