#include <JRunHistograms.hh>
|
| JRA_Histograms () |
|
| JRA_Histograms (JDetector &det) |
|
void | initialize_summary_histograms () |
|
template<class T > |
void | initialize_timeslice_histograms () |
|
void | initialize_trigger_histograms () |
|
template<class T > |
void | Write_histogram_table_to_file (TFile &f, string dirname, vector< vector< T * > > table) |
|
template<class T > |
void | Write_histogram_table_to_file (TFile &f, string dirname, vector< T * > table) |
|
template<class T , class V > |
void | Write_manager_to_file (TFile &f, string dirname, JManager< T, V > *table) |
|
template<class T , class V > |
void | Replace_wildcard_in_name (JManager< T, V > *manager, char wc='%') |
|
template<class T , class V > |
void | Write_manager_in_key_dir (TFile &f, JManager< T, V > *manager) |
|
template<class T , class V > |
void | Write_manager_table_in_key_dir (TFile &f, vector< JManager< T, V > * > table) |
|
void | Write_to_file (TFile &f) |
|
Definition at line 792 of file JRunHistograms.hh.
◆ JRA_Histograms() [1/2]
JRA_Histograms::JRA_Histograms |
( |
| ) |
|
|
inline |
◆ JRA_Histograms() [2/2]
JRA_Histograms::JRA_Histograms |
( |
JDetector & |
det | ) |
|
|
inline |
◆ initialize_summary_histograms()
void JRA_Histograms::initialize_summary_histograms |
( |
| ) |
|
|
inline |
◆ initialize_timeslice_histograms()
template<class T >
void JRA_Histograms::initialize_timeslice_histograms |
( |
| ) |
|
|
inline |
Definition at line 832 of file JRunHistograms.hh.
835 const string prefix =
"KM3NETDAQ::JDAQ" ;
836 string ts_name = T::Class_Name();
837 string::size_type pos = ts_name.find(prefix);
839 if (pos != string::npos) ts_name.replace(ts_name.find(prefix) , prefix.length() ,
"");
◆ initialize_trigger_histograms()
void JRA_Histograms::initialize_trigger_histograms |
( |
| ) |
|
|
inline |
◆ Write_histogram_table_to_file() [1/2]
template<class T >
void JRA_Histograms::Write_histogram_table_to_file |
( |
TFile & |
f, |
|
|
string |
dirname, |
|
|
vector< vector< T * > > |
table |
|
) |
| |
|
inline |
Definition at line 860 of file JRunHistograms.hh.
862 if(f.GetDirectory(dirname.c_str()) == 0) f.mkdir (dirname.c_str());
864 f.cd (dirname.c_str());
866 for (
int i=0 ; i < (int)table.size(); i++){
868 for (
int j=0 ;
j< (int)table[i].size();
j++){
870 if (table[i][
j]) table [i][
j] -> Write();
◆ Write_histogram_table_to_file() [2/2]
template<class T >
void JRA_Histograms::Write_histogram_table_to_file |
( |
TFile & |
f, |
|
|
string |
dirname, |
|
|
vector< T * > |
table |
|
) |
| |
|
inline |
Definition at line 883 of file JRunHistograms.hh.
885 if(f.GetDirectory(dirname.c_str()) == 0) f.mkdir (dirname.c_str());
887 f.cd (dirname.c_str());
889 for (
int i=0 ; i < (int)table.size(); i++){
891 if (table[i]) table[i] -> Write();
◆ Write_manager_to_file()
template<class T , class V >
void JRA_Histograms::Write_manager_to_file |
( |
TFile & |
f, |
|
|
string |
dirname, |
|
|
JManager< T, V > * |
table |
|
) |
| |
|
inline |
Definition at line 903 of file JRunHistograms.hh.
905 if(f.GetDirectory(dirname.c_str()) == 0) f.mkdir (dirname.c_str());
907 f.cd (dirname.c_str());
911 i -> second -> Write();
◆ Replace_wildcard_in_name()
template<class T , class V >
void JRA_Histograms::Replace_wildcard_in_name |
( |
JManager< T, V > * |
manager, |
|
|
char |
wc = '%' |
|
) |
| |
|
inline |
Definition at line 921 of file JRunHistograms.hh.
925 if (i -> second -> GetTitle()){
927 std::string buffer = i -> second -> GetTitle();
928 string::size_type ipos = buffer.find(wc);
930 if (ipos!=std::string::npos){
936 buffer.replace(ipos, 1, os.str());
938 i -> second -> SetTitle(buffer.c_str());
◆ Write_manager_in_key_dir()
template<class T , class V >
void JRA_Histograms::Write_manager_in_key_dir |
( |
TFile & |
f, |
|
|
JManager< T, V > * |
manager |
|
) |
| |
|
inline |
Definition at line 950 of file JRunHistograms.hh.
954 std::string fullpath =
MAKE_STRING(i->second->GetName());
956 int pos = fullpath.rfind (
'/');
957 std::string name = fullpath.substr (pos + 1);
958 std::string path = fullpath.substr (0 , pos);
960 if (f.GetDirectory(path.c_str()) == 0) f.mkdir (path.c_str());
964 i -> second -> SetName(name.c_str());
965 i -> second -> Write();
◆ Write_manager_table_in_key_dir()
template<class T , class V >
void JRA_Histograms::Write_manager_table_in_key_dir |
( |
TFile & |
f, |
|
|
vector< JManager< T, V > * > |
table |
|
) |
| |
|
inline |
Definition at line 975 of file JRunHistograms.hh.
983 std::string fullpath =
MAKE_STRING(
j-> second -> GetName());
985 int pos = fullpath.rfind (
'/');
986 std::string name = fullpath.substr (pos + 1);
987 std::string path = fullpath.substr (0 , pos);
989 if (f.GetDirectory(path.c_str()) == 0) f.mkdir (path.c_str());
993 j -> second -> SetName(name.c_str());
994 j -> second -> Write();
◆ Write_to_file()
void JRA_Histograms::Write_to_file |
( |
TFile & |
f | ) |
|
|
inline |
Definition at line 1004 of file JRunHistograms.hh.
1006 f.mkdir(
"Detector");
1027 for(
int k=1 ; k <
j -> second -> GetNbinsX() ; ++k){
1029 for(
int t=1 ; t <
j -> second -> GetNbinsY() ; ++t){
1031 double width =
j -> second -> GetYaxis() -> GetBinWidth(t);
1033 j -> second -> SetBinContent(k,t,
j -> second -> GetBinContent(k,t) / width);
1034 j -> second -> SetBinError(k,t,
j -> second -> GetBinError(k,t) / width);
1061 f.mkdir (
MAKE_STRING (
"JDAQEvent/hits_per_event").c_str());
1062 f.cd (
"JDAQEvent/hits_per_event");
1067 f.mkdir (
MAKE_STRING (
"JDAQEvent/hits_pmt_distributions").c_str());
1068 f.cd (
"JDAQEvent/hits_pmt_distributions");
1073 f.mkdir (
MAKE_STRING (
"JDAQEvent/hits_tot_distributions").c_str());
1074 f.cd (
"JDAQEvent/hits_tot_distributions");
◆ detector
◆ h_summary
◆ h_timeslice
◆ h_trigger
◆ du_ids
◆ modules_per_string
int JRA_Histograms::modules_per_string |
The documentation for this class was generated from the following file:
JManager< string, TH2D > * m_Snapshot_hits_per_pmt
void Write_histogram_table_to_file(TFile &f, string dirname, vector< vector< T * > > table)
TH2D * h_Snapshot_hits_per_module
TH1D * h_pmt_distribution_triggered_hits
vector< JManager< string, TH2D > * > m_pmt_tot_distributions
TH1D * h_Trigger_bit_event
TH1D * h_pmt_distribution_snapshot_hits
void initialize(std::set< int > du_ids, int modules_per_string, int ts_type, std::string ts_name)
SummaryHistograms h_summary
TH1D * h_pmt_rate_distribution
#define MAKE_STRING(A)
Make string.
int getNumberOfStrings(const JDetector &detector)
Get number of strings.
Auxiliary class to manage set of compatible ROOT objects (e.g.
TH2D * h_daq_status_per_dom
vector< TH2D * > h_ToT_255_Floor_vs_time
TH1D * h_tot_distribution_triggered_hits
TH1D * h_tot_distribution_snapshot_hits
vector< JManager< string, TH2D > * > m_mean_ToT
JManager< string, TH2D > * m_mean_summary_rate
int getNumberOfModules(const JDetector &detector)
Get number of modules.
void initialize(std::set< int > &du_ids, int modules_per_string)
Indexing of data type in type list.
void Fill_mean_ToT_histograms()
vector< JManager< string, TH1D > * > m_mean_ToT_distribution
void normalize(T *h, double n=1.0)
vector< TH1D * > h_ToT_255_vs_time
void Write_manager_in_key_dir(TFile &f, JManager< T, V > *manager)
TH2D * h_Triggered_hits_per_module
TriggerHistograms h_trigger
TimesliceHistograms h_timeslice
std::set< int > getStringIDs(const JDetector &detector)
Get list of strings IDs.
void Write_manager_table_in_key_dir(TFile &f, vector< JManager< T, V > * > table)
JManager< string, TH2D > * m_summary_rate_distribution
void initialize(std::set< int > &du_ids, int modules_per_string)
TH1D * h_dom_rate_distribution
vector< JManager< string, TH2D > * > m_ToT_255
vector< JManager< string, TH2D > * > m_pmt_rate_distributions
JManager< string, TH1D > * m_mean_summary_rate_distribution
vector< JManager< string, TH2D > * > m_pmt_dt_consecutive_hits
vector< TH2D * > h_dom_mean_rates
vector< TH2D * > h_ToT_255_Floor_vs_time_2