1 #ifndef __JRUNHISTOGRAMS__
2 #define __JRUNHISTOGRAMS__
23 #include "TProfile2D.h"
26 #include "TPaveText.h"
31 #include "TDirectory.h"
33 #include "TObjArray.h"
34 #include "TObjString.h"
37 using namespace KM3NETDAQ ;
38 using namespace JLANG ;
40 using namespace JSUPPORT ;
50 TAxis *axis = h->GetXaxis();
51 int bins = axis->GetNbins();
52 Axis_t from = axis->GetXmin();
53 Axis_t to = axis->GetXmax();
54 Axis_t width = (to - from) / bins;
55 Axis_t *new_bins =
new Axis_t[bins + 1];
57 for (
int i = 0; i <= bins; i++) {
58 new_bins[i] = TMath::Power(10, from + i * width);
61 axis->Set(bins, new_bins);
75 TAxis *axis = h->GetYaxis();
76 int bins = axis->GetNbins();
77 Axis_t from = axis->GetXmin();
78 Axis_t to = axis->GetXmax();
79 Axis_t width = (to - from) / bins;
80 Axis_t *new_bins =
new Axis_t[bins + 1];
82 for (
int i = 0; i <= bins; i++) {
83 new_bins[i] = TMath::Power(10, from + i * width);
86 axis->Set(bins, new_bins);
91 double binsToT[] = {-0.5 , 0.5 , 1.5 , 2.5 , 3.5 , 4.5 , 5.5 , 6.5 , 7.5 , 8.5 , 9.5 , 10.5 , 11.5 , 12.5 , 13.5 , 14.5 , 15.5 ,
92 16.5 , 17.5 , 18.5 , 19.5 , 20.5 , 21.5 , 22.5 , 23.5 , 24.5 , 25.5 , 26.5 , 27.5 , 28.5 , 30.5 , 32.5 , 34.5 ,
93 36.5 , 38.5 , 40.5 , 45.5 , 50.5 , 55.5 , 60.5 , 65.5 , 70.5 , 75.5 , 80.5 , 85.5 , 90.5 , 95.5 , 100.5 , 120.5 , 140.5 ,
94 160.5 , 180.5 , 200.5 , 254.5 , 255.5 , 256.5};
107 for(
int i=0 ; i < h->GetNbinsX() ; i++){
109 double width = h -> GetXaxis() -> GetBinWidth(i);
111 h -> SetBinContent(i , h -> GetBinContent(i) / width);
112 h -> SetBinError (i , h -> GetBinError(i) / width);
137 h_fifo_per_dom = NULL;
138 h_daq_status_per_dom = NULL;
139 h_hrv_per_dom = NULL;
140 h_rate_summary = NULL;
141 h_pmt_rate_distribution = NULL;
142 h_dom_rate_distribution = NULL;
143 m_mean_summary_rate = NULL;
144 m_mean_summary_rate_distribution = NULL;
145 m_summary_rate_distribution = NULL;
153 init_h_fifo_per_dom (du_ids , modules_per_string);
154 init_h_daq_status_per_dom (du_ids , modules_per_string);
155 init_h_hrv_per_dom (du_ids , modules_per_string);
156 init_h_rate_summary (du_ids , modules_per_string);
157 init_h_pmt_rate_distribution ();
158 init_h_dom_rate_distribution ();
159 init_m_mean_summary_rate (modules_per_string);
160 init_m_mean_summary_rate_distribution ();
161 init_m_summary_rate_distribution ();
173 string title =
MAKE_STRING (
" FIFO ; String ; Floor ; Number of slices with FIFO almost full ");
175 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 );
187 string title =
MAKE_STRING (
" DAQ Status ; String ; Floor ; Number of slices with wrong DAQ status of packets ");
189 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 );
201 string title =
MAKE_STRING (
"HRV ; String ; Floor ; Number of slices with at least 1 PMT in HRV");
203 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 );
215 string title =
MAKE_STRING (
"Summary slices ; String ; Floor ; Mean rate over all summary slices [kHz]");
217 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 );
226 string title =
MAKE_STRING (
"PMT rate distribution from summary slices ; rate [kHz] ; Counts");
228 h_pmt_rate_distribution =
new TH1D (name.c_str() , title.c_str() , 40 , 0 , log10(1000));
230 BinLogX (h_pmt_rate_distribution);
232 h_pmt_rate_distribution -> SetMinimum(1);
241 string title =
MAKE_STRING (
"DOM rate distribution from summary slices ; rate [kHz] ; Counts");
243 h_dom_rate_distribution =
new TH1D (name.c_str() , title.c_str() , 50 , log10(50) , log10(50000));
245 BinLogX (h_dom_rate_distribution);
247 h_dom_rate_distribution -> SetMinimum(1);
258 string title =
MAKE_STRING (
" ; rate [kHz] ; # PMTs");
260 TH1D* h =
new TH1D(name.c_str() , title.c_str() , 40 , 0 , log10(1000));
275 string title =
MAKE_STRING (
" ; TDC Channel ; Floor ; rate [kHz]");
287 string title =
MAKE_STRING (
"Summaryslice ; TDC channel ; rate [kHz] ; counts");
289 TH2D* h_summary_rate_distribution =
new TH2D (name.c_str() , title.c_str(),
291 100 , -1 , log10(10000));
293 BinLogY (h_summary_rate_distribution);
332 h_dom_mean_rates .resize (number_of_timeslice_types , NULL);
333 m_mean_ToT .resize (number_of_timeslice_types , NULL);
334 m_mean_ToT_distribution .resize (number_of_timeslice_types , NULL);
335 m_pmt_tot_distributions .resize (number_of_timeslice_types , NULL);
336 m_pmt_rate_distributions .resize (number_of_timeslice_types , NULL);
349 init_h_dom_mean_rates (ts_type , du_ids , modules_per_string , ts_name);
350 init_m_mean_ToT (ts_type , modules_per_string , ts_name);
351 init_m_mean_ToT_distribution (ts_type , ts_name);
352 init_m_pmt_tot_distributions (ts_type , ts_name);
353 init_m_pmt_rate_distributions (ts_type , ts_name);
367 for (
typename vector <
JManager < string , TH2D >* >::const_iterator it = m_pmt_tot_distributions.begin() ; it != m_pmt_tot_distributions.end() ; ++it , ++i){
374 TPRegexp
r (
"(\\w+)/(\\DU)(\\d+)/(F)(\\d+)");
376 TObjArray* o = r.MatchS(s);
378 int String = ((TObjString *)o->At(3))->GetString().Atoi();
379 int Floor = ((TObjString *)o->At(5))->GetString().Atoi();
381 for (
int pmt = 1 ;
pmt <= (
j -> second) -> GetXaxis() -> GetNbins() ;
pmt++){
383 (*m_mean_ToT[i])[
MAKE_STRING(
"Detector/DU" +
to_string(String))] -> Fill((
j->second) -> GetXaxis() -> GetBinCenter(
pmt) , Floor , (
j -> second) -> ProjectionY (
"" ,
pmt ,
pmt) -> GetMean () );
384 (*m_mean_ToT_distribution[i])[
MAKE_STRING(
"Detector/DU" +
to_string(String))] -> Fill((
j -> second) -> ProjectionY (
"" ,
pmt ,
pmt) -> GetMean () );
401 string title =
MAKE_STRING (ts_name +
" ; Floor number ; DU number ; time slice averaged rate [Hz]");
403 h_dom_mean_rates[ts_type] =
new TH2D (name.c_str() , title.c_str() , *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 , modules_per_string , 0.5 , 0.5 + modules_per_string);
416 string title =
MAKE_STRING (ts_name +
" ; TDC channel ; Floor number ; mean ToT [ns] ");
431 string title =
MAKE_STRING (ts_name +
" ; ToT [ns] ; # PMTS ");
433 m_mean_ToT_distribution[ts_type] =
new JManager < string , TH1D > (
new TH1D (name.c_str() , title.c_str() , 255 , 0.5 , 255.5));
445 string title =
MAKE_STRING (ts_name +
" ; TDC channel ; ToT [ns] ; counts");
464 string title =
MAKE_STRING (ts_name +
" ; TDC channel ; rate [kHz] ; counts ");
466 TH2D* h_pmt_rate_distributions =
new TH2D (name.c_str() , title.c_str(),
468 60 , -6 , log10(1000));
470 BinLogY (h_pmt_rate_distributions);
503 h_Trigger_bit_event = NULL;
504 h_Trigger_bit_hit = NULL;
505 h_Trigger_time = NULL;
506 h_Snapshot_hits = NULL;
507 h_Triggered_hits = NULL;
508 h_Number_of_overlays = NULL;
509 h_Snapshot_hits_per_module = NULL;
510 h_Triggered_hits_per_module = NULL;
511 m_Snapshot_hits_per_pmt = NULL;
512 h_pmt_distribution_triggered_hits = NULL;
513 h_tot_distribution_triggered_hits = NULL;
514 h_pmt_distribution_snapshot_hits = NULL;
515 h_tot_distribution_snapshot_hits = NULL;
526 init_h_Trigger_bit_event ();
527 init_h_Trigger_bit_hit ();
528 init_h_Trigger_time ();
529 init_h_Snapshot_hits ();
530 init_h_Triggered_hits ();
531 init_h_Number_of_overlays ();
532 init_h_Snapshot_hits_per_module (modules_per_string , du_ids);
533 init_h_Triggered_hits_per_module (modules_per_string , du_ids);
534 init_m_Snapshot_hits_per_pmt (modules_per_string);
535 init_h_pmt_distribution_triggered_hits();
536 init_h_tot_distribution_triggered_hits();
537 init_h_pmt_distribution_snapshot_hits ();
538 init_h_tot_distribution_snapshot_hits ();
547 string title =
MAKE_STRING (
"Number of events as a function of trigger bit in event ; Trigger Bit ; Counts ");
555 h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 ,
getTriggerName(i) );
559 h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 ,
"" );
563 h_Trigger_bit_event -> GetXaxis() -> LabelsOption(
"v");
573 string title =
MAKE_STRING (
"Number of hits per event as a function of trigger bit in hit ; Trigger Bit ; #Events ");
581 h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 ,
getTriggerName(i) );
584 h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 ,
"" );
588 h_Trigger_bit_hit -> GetXaxis() -> LabelsOption(
"v");
598 string title =
MAKE_STRING (
"Time of first triggered hit ; time [ms] ; #Events ");
600 h_Trigger_time =
new TH1D (name.c_str() , title.c_str() , 50, -0.5, 100.5 );
610 string title =
MAKE_STRING (
" ; Number of snapshot hits; Events ");
612 h_Snapshot_hits =
new TH1D (name.c_str() , title.c_str() , 50, 0, 4 );
623 string title =
MAKE_STRING (
" ; Number of triggered hits; Events ");
625 h_Triggered_hits =
new TH1D (name.c_str() , title.c_str() , 50 , 0, 4 );
636 string title =
MAKE_STRING (
" ; Number of overlays; Events ");
638 int MAX_OVERLAYS = 1000;
640 h_Number_of_overlays =
new TH1D (name.c_str() , title.c_str() , MAX_OVERLAYS , -0.5, MAX_OVERLAYS - 0.5 );
651 string title =
MAKE_STRING (
" ; String ; Floor ; Number of snapshot hits ");
653 h_Snapshot_hits_per_module =
new TH2D (name.c_str() , title.c_str() ,
654 *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
655 modules_per_string , 0.5 , modules_per_string + 0.5 );
666 string title =
MAKE_STRING (
" ; String ; Floor ; Number of triggered hits ");
668 h_Triggered_hits_per_module =
new TH2D (name.c_str() , title.c_str() ,
669 *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
670 modules_per_string , 0.5 , modules_per_string + 0.5 );
681 string title =
MAKE_STRING (
" ; TDC Channel ; Floor ; Number of snapshot hits ");
683 m_Snapshot_hits_per_pmt =
new JManager < string , TH2D > (
new TH2D (name.c_str() , title.c_str() ,
NUMBER_OF_PMTS , -0.5 ,
NUMBER_OF_PMTS - 0.5 ,
684 modules_per_string , 0.5 , modules_per_string + 0.5 ) );
695 string title =
MAKE_STRING (
" ; TDC Channel ; Counts [a.u.]");
706 string title =
MAKE_STRING (
" ; ToT [ns] ; Counts [a.u.]");
708 h_tot_distribution_triggered_hits =
new TH1D (name.c_str() , title.c_str() ,
nbinsToT ,
binsToT);
718 string title =
MAKE_STRING (
" ; TDC Channel ; Counts [a.u.]");
730 string title =
MAKE_STRING (
" ; ToT [ns] ; Counts [a.u.]");
732 h_tot_distribution_snapshot_hits =
new TH1D (name.c_str() , title.c_str() ,
nbinsToT ,
binsToT);
768 h_summary.initialize(du_ids , modules_per_string);
781 const string prefix =
"KM3NETDAQ::JDAQ" ;
782 string ts_name = T::Class_Name();
783 string::size_type pos = ts_name.find(prefix);
785 if (pos != string::npos) ts_name.replace(ts_name.find(prefix) , prefix.length() ,
"");
787 h_timeslice.initialize(du_ids , modules_per_string , index , ts_name);
795 h_trigger.initialize (du_ids , modules_per_string);
808 if(f.GetDirectory(dirname.c_str()) == 0) f.mkdir (dirname.c_str());
810 f.cd (dirname.c_str());
812 for (
int i=0 ; i < (int)table.size(); i++){
814 for (
int j=0 ;
j< (int)table[i].size();
j++){
816 if (table[i][
j]) table [i][
j] -> Write();
831 if(f.GetDirectory(dirname.c_str()) == 0) f.mkdir (dirname.c_str());
833 f.cd (dirname.c_str());
835 for (
int i=0 ; i < (int)table.size(); i++){
837 if (table[i]) table[i] -> Write();
848 template <
class T ,
class V>
851 if(f.GetDirectory(dirname.c_str()) == 0) f.mkdir (dirname.c_str());
853 f.cd (dirname.c_str());
857 i -> second -> Write();
866 template <
class T ,
class V>
871 if (i -> second -> GetTitle()){
873 std::string buffer = i -> second -> GetTitle();
874 string::size_type ipos = buffer.find(wc);
876 if (ipos!=std::string::npos){
882 buffer.replace(ipos, 1, os.str());
884 i -> second -> SetTitle(buffer.c_str());
895 template <
class T ,
class V >
900 std::string fullpath =
MAKE_STRING(i->second->GetName());
902 int pos = fullpath.rfind (
'/');
903 std::string
name = fullpath.substr (pos + 1);
904 std::string
path = fullpath.substr (0 , pos);
906 if (f.GetDirectory(path.c_str()) == 0) f.mkdir (path.c_str());
910 i -> second -> SetName(name.c_str());
911 i -> second -> Write();
920 template <
class T ,
class V >
929 std::string fullpath =
MAKE_STRING(
j-> second -> GetName());
931 int pos = fullpath.rfind (
'/');
932 std::string
name = fullpath.substr (pos + 1);
933 std::string
path = fullpath.substr (0 , pos);
935 if (f.GetDirectory(path.c_str()) == 0) f.mkdir (path.c_str());
939 j -> second -> SetName(name.c_str());
940 j -> second -> Write();
955 if (h_summary.h_fifo_per_dom) h_summary.h_fifo_per_dom -> Write();
956 if (h_summary.h_daq_status_per_dom) h_summary.h_daq_status_per_dom -> Write();
957 if (h_summary.h_hrv_per_dom) h_summary.h_hrv_per_dom -> Write();
958 if (h_summary.h_rate_summary) h_summary.h_rate_summary -> Write();
959 if (h_summary.h_pmt_rate_distribution) h_summary.h_pmt_rate_distribution -> Write();
960 if (h_summary.h_dom_rate_distribution) h_summary.h_dom_rate_distribution -> Write();
962 Write_histogram_table_to_file(f ,
MAKE_STRING(
"Detector/DOM_mean_rates") , h_timeslice.h_dom_mean_rates);
964 for (
typename vector <
JManager < string , TH2D >* >::const_iterator i = h_timeslice.m_pmt_tot_distributions.begin() ; i != h_timeslice.m_pmt_tot_distributions.end() ; ++i){
970 for(
int k=1 ;
k <
j -> second -> GetNbinsX() ; ++
k){
972 for(
int t=1 ; t <
j -> second -> GetNbinsY() ; ++t){
974 double width =
j -> second -> GetYaxis() -> GetBinWidth(t);
976 j -> second -> SetBinContent(
k,t,
j -> second -> GetBinContent(
k,t) / width);
977 j -> second -> SetBinError(
k,t,
j -> second -> GetBinError(
k,t) / width);
984 Write_manager_table_in_key_dir (f , h_timeslice.m_pmt_tot_distributions);
985 Write_manager_table_in_key_dir (f , h_timeslice.m_pmt_rate_distributions);
986 if (h_summary.m_summary_rate_distribution) Write_manager_in_key_dir (f , h_summary.m_summary_rate_distribution);
988 if (h_summary.m_mean_summary_rate) Write_manager_in_key_dir( f , h_summary.m_mean_summary_rate);
989 if (h_summary.m_mean_summary_rate_distribution) Write_manager_in_key_dir( f , h_summary.m_mean_summary_rate_distribution);
991 h_timeslice.Fill_mean_ToT_histograms();
993 Write_manager_table_in_key_dir (f , h_timeslice.m_mean_ToT);
994 Write_manager_table_in_key_dir (f , h_timeslice.m_mean_ToT_distribution);
999 if (h_trigger.h_Trigger_bit_event) h_trigger.h_Trigger_bit_event -> Write();
1000 if (h_trigger.h_Trigger_bit_hit) h_trigger.h_Trigger_bit_hit -> Write();
1001 if (h_trigger.h_Trigger_time) h_trigger.h_Trigger_time -> Write();
1003 f.mkdir (
MAKE_STRING (
"JDAQEvent/hits_per_event").c_str());
1004 f.cd (
"JDAQEvent/hits_per_event");
1006 if (h_trigger.h_Triggered_hits) h_trigger.h_Triggered_hits -> Write();
1007 if (h_trigger.h_Snapshot_hits) h_trigger.h_Snapshot_hits -> Write();
1008 if (h_trigger.h_Number_of_overlays) h_trigger.h_Number_of_overlays -> Write();
1010 f.mkdir (
MAKE_STRING (
"JDAQEvent/hits_pmt_distributions").c_str());
1011 f.cd (
"JDAQEvent/hits_pmt_distributions");
1013 if (h_trigger.h_pmt_distribution_triggered_hits) {h_trigger.h_pmt_distribution_triggered_hits -> Write();}
1014 if (h_trigger.h_pmt_distribution_snapshot_hits) {h_trigger.h_pmt_distribution_snapshot_hits -> Write();}
1016 f.mkdir (
MAKE_STRING (
"JDAQEvent/hits_tot_distributions").c_str());
1017 f.cd (
"JDAQEvent/hits_tot_distributions");
1019 if (h_trigger.h_tot_distribution_triggered_hits) {
normalizeBW1D (h_trigger.h_tot_distribution_triggered_hits) ; h_trigger.h_tot_distribution_triggered_hits-> Write();}
1020 if (h_trigger.h_tot_distribution_snapshot_hits) {
normalizeBW1D (h_trigger.h_tot_distribution_snapshot_hits) ; h_trigger.h_tot_distribution_snapshot_hits -> Write();}
1024 if (h_trigger.h_Triggered_hits_per_module) { h_trigger.h_Triggered_hits_per_module-> Write();}
1025 if (h_trigger.h_Snapshot_hits_per_module) { h_trigger.h_Snapshot_hits_per_module -> Write();}
1027 if (h_trigger.m_Snapshot_hits_per_pmt) Write_manager_in_key_dir(f , h_trigger.m_Snapshot_hits_per_pmt);
*fatal Wrong number of arguments esac JCookie sh JRuns D $DETECTOR d sort n k
TH1D * h_pmt_distribution_snapshot_hits
void init_h_dom_mean_rates(int ts_type, std::set< int > du_ids, int modules_per_string, std::string ts_name)
TH2D * h_Snapshot_hits_per_module
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_Trigger_time()
ROOT TTree parameter settings.
static const unsigned int NUMBER_OF_TRIGGER_BITS
Number of trigger bits.
TH1D * h_pmt_distribution_triggered_hits
vector< JManager< string, TH2D > * > m_pmt_tot_distributions
JManager< string, TH1D > * m_mean_summary_rate_distribution
void Write_histogram_table_to_file(TFile &f, string dirname, vector< T * > table)
vector< TH2D * > h_dom_mean_rates
void init_h_Trigger_bit_event()
TH1D * h_Number_of_overlays
void init_h_Triggered_hits_per_module(int modules_per_string, std::set< int > &du_ids)
TH2D * h_Triggered_hits_per_module
void init_h_Snapshot_hits_per_module(int modules_per_string, std::set< int > &du_ids)
std::set< int > getStringIDs(const JDetector &detector)
Get list of strings IDs.
void initialize(std::set< int > &du_ids, int modules_per_string)
void initialize(std::set< int > &du_ids, int modules_per_string)
TH2D * h_daq_status_per_dom
Dynamic ROOT object management.
void initialize_summary_histograms()
JManager< string, TH2D > * m_mean_summary_rate
void init_m_mean_ToT_distribution(int ts_type, string ts_name)
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
TH1D * h_dom_rate_distribution
#define MAKE_STRING(A)
Make string.
esac $JPP_DIR examples JDetector JTransitTime o $OUTPUT_FILE n N $NPE T $TTS_NS d $DEBUG for HISTOGRAM in tts tt2 pmt
void Fill_mean_ToT_histograms()
do cat driver txt<< EOFevent ev_configure{RC_EVT%< ev_configure.txt > RC_DWRT path
void init_h_pmt_distribution_snapshot_hits()
Auxiliary class to manage set of compatible ROOT objects (e.g.
void Write_to_file(TFile &f)
void init_m_summary_rate_distribution()
void init_h_tot_distribution_triggered_hits()
TimesliceHistograms h_timeslice
void init_m_mean_summary_rate(int modules_per_string)
TH1D * h_tot_distribution_snapshot_hits
void init_h_Number_of_overlays()
TriggerHistograms h_trigger
do set_variable OUTPUT_DIRECTORY $WORKDIR T
void Replace_wildcard_in_name(JManager< T, V > *manager, char wc= '%')
void Write_manager_table_in_key_dir(TFile &f, vector< JManager< T, V > * > table)
JRA_Histograms(const JDetector &detector)
void init_m_pmt_rate_distributions(int ts_type, string ts_name)
TH1D * h_pmt_rate_distribution
void Write_histogram_table_to_file(TFile &f, string dirname, vector< vector< T * > > table)
TH1D * h_Trigger_bit_event
void init_h_Snapshot_hits()
static const JStringCounter getNumberOfStrings
Function object to count unique strings.
void init_m_Snapshot_hits_per_pmt(int modules_per_string)
vector< JManager< string, TH1D > * > m_mean_ToT_distribution
void init_h_Triggered_hits()
SummaryHistograms h_summary
Direct access to module in detector data structure.
void init_m_mean_ToT(int ts_type, int modules_per_string, string ts_name)
void init_h_dom_rate_distribution()
JManager< string, TH2D > * m_summary_rate_distribution
const char * getTriggerName(JTriggerbit_t bit)
Get trigger name.
void Write_manager_in_key_dir(TFile &f, JManager< T, V > *manager)
General purpose string class.
std::string to_string(const T &value)
Convert value to string.
vector< JManager< string, TH2D > * > m_mean_ToT
vector< JManager< string, TH2D > * > m_pmt_rate_distributions
void init_h_tot_distribution_snapshot_hits()
TH1D * h_tot_distribution_triggered_hits
void init_h_pmt_distribution_triggered_hits()
void normalizeBW1D(TH1D *h)
void initialize(std::set< int > du_ids, int modules_per_string, int ts_type, std::string ts_name)
void init_m_mean_summary_rate_distribution()
Indexing of data type in type list.
KM3NeT DAQ constants, bit handling, etc.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
void init_h_daq_status_per_dom(std::set< int > &du_ids, int modules_per_string)
int getNumberOfModules(const JDetector &detector)
Get number of modules.
void init_h_Trigger_bit_hit()
void initialize_trigger_histograms()
void init_h_hrv_per_dom(set< int > &du_ids, int modules_per_string)
JManager< string, TH2D > * m_Snapshot_hits_per_pmt
void initialize_timeslice_histograms()
void Write_manager_to_file(TFile &f, string dirname, JManager< T, V > *table)
void init_h_pmt_rate_distribution()
void init_m_pmt_tot_distributions(int ts_type, string ts_name)