#include <JRunHistograms.hh>
|
| JRA_Histograms () |
|
| JRA_Histograms (JDetector &det) |
|
void | initialize_summary_histograms (JFrameIndexRange &range) |
|
template<class T > |
void | initialize_timeslice_histograms (JFrameIndexRange &range) |
|
void | initialize_trigger_histograms (JFrameIndexRange &range) |
|
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 1485 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()
◆ initialize_timeslice_histograms()
template<class T >
void JRA_Histograms::initialize_timeslice_histograms |
( |
JFrameIndexRange & |
range | ) |
|
|
inline |
Definition at line 1536 of file JRunHistograms.hh.
1540 const string prefix =
"KM3NETDAQ::JDAQ" ;
1542 string ts_name = T::Class_Name() ;
1544 string::size_type pos = ts_name.find(prefix);
1546 if (pos != string::npos) ts_name.replace(ts_name.find(prefix) , prefix.length() ,
"") ;
◆ initialize_trigger_histograms()
◆ 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 1569 of file JRunHistograms.hh.
1571 if(f.GetDirectory(dirname.c_str()) == 0) f.mkdir (dirname.c_str()) ;
1573 f.cd (dirname.c_str()) ;
1575 for (
int i=0 ; i < (int)table.size() ; i++){
1577 for (
int j=0 ;
j< (int)table[i].size() ;
j++){
1579 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 1595 of file JRunHistograms.hh.
1597 if(f.GetDirectory(dirname.c_str()) == 0) f.mkdir (dirname.c_str()) ;
1599 f.cd (dirname.c_str()) ;
1601 for (
int i=0 ; i < (int)table.size() ; i++){
1603 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 1617 of file JRunHistograms.hh.
1619 if(f.GetDirectory(dirname.c_str()) == 0) f.mkdir (dirname.c_str()) ;
1621 f.cd (dirname.c_str()) ;
1625 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 1637 of file JRunHistograms.hh.
1641 if (i -> second -> GetTitle()){
1643 std::string buffer = i -> second -> GetTitle() ;
1645 string::size_type ipos = buffer.find(wc) ;
1647 if (ipos!=std::string::npos){
1653 buffer.replace(ipos, 1, os.str());
1655 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 1671 of file JRunHistograms.hh.
1675 std::string fullpath =
MAKE_STRING(i-> second -> GetName()) ;
1677 int pos = fullpath.rfind (
'/');
1679 std::string name = fullpath.substr (pos + 1) ;
1681 std::string path = fullpath.substr (0 , pos) ;
1683 if (f.GetDirectory(path.c_str()) == 0) f.mkdir (path.c_str()) ;
1685 f.cd(path.c_str()) ;
1687 i -> second -> SetName(name.c_str()) ;
1689 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 1701 of file JRunHistograms.hh.
1709 std::string fullpath =
MAKE_STRING(
j-> second -> GetName()) ;
1711 int pos = fullpath.rfind (
'/');
1713 std::string name = fullpath.substr (pos + 1) ;
1715 std::string path = fullpath.substr (0 , pos) ;
1717 if (f.GetDirectory(path.c_str()) == 0) f.mkdir (path.c_str()) ;
1719 f.cd(path.c_str()) ;
1721 j -> second -> SetName(name.c_str()) ;
1723 j -> second -> Write() ;
◆ Write_to_file()
void JRA_Histograms::Write_to_file |
( |
TFile & |
f | ) |
|
|
inline |
Definition at line 1737 of file JRunHistograms.hh.
1739 f.mkdir(
"Detector") ;
1821 f.cd (
"JDAQEvent") ;
1827 f.mkdir (
MAKE_STRING (
"JDAQEvent/hits_per_event").c_str() ) ;
1829 f.cd (
"JDAQEvent/hits_per_event") ;
1835 f.mkdir (
MAKE_STRING (
"JDAQEvent/hits_pmt_distributions").c_str() ) ;
1837 f.cd (
"JDAQEvent/hits_pmt_distributions") ;
1843 f.mkdir (
MAKE_STRING (
"JDAQEvent/hits_tot_distributions").c_str() ) ;
1845 f.cd (
"JDAQEvent/hits_tot_distributions") ;
1851 f.mkdir (
MAKE_STRING (
"JDAQEvent/trigger_rates").c_str() ) ;
1853 f.cd (
"JDAQEvent/trigger_rates") ;
1859 i -> second -> Scale (1./(i->second->GetBinWidth(1) *
getFrameTime() * 1e-9) ) ;
1861 i -> second -> Write() ;
1867 f.cd (
"JDAQEvent") ;
◆ 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_n_triggered_hits_distribution
vector< JManager< string, TProfile2D > * > m_pmt_rates_vs_time
void initialize(std::set< int > &du_ids, int modules_per_string, JFrameIndexRange &frame_index_range)
vector< TProfile2D * > h_du_active_modules
TH1D * h_pmt_distribution_snapshot_hits
SummaryHistograms h_summary
TH1D * h_frame_index_check
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
JManager< string, TH1D > * m_trigger_rates
double getFrameTime()
Get frame time duration.
TH1D * h_tot_distribution_triggered_hits
JManager< string, TProfile2D > * m_hrv
vector< JManager< string, TProfile2D > * > m_pmt_tot_vs_time
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.
Indexing of data type in type list.
void Fill_mean_ToT_histograms()
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
JManager< string, TProfile2D > * m_summary_rate_vs_time
JManager< string, TH2D > * m_Trigger_map
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
JManager< string, TProfile2D > * m_fifo_full
JManager< string, TProfile > * m_module_rates_vs_time
vector< JManager< string, TH2D > * > m_ToT_255
vector< JManager< string, TH2D > * > m_pmt_rate_distributions
vector< JManager< string, TH2D > * > m_pmt_dt_consecutive_hits
vector< TH2D * > h_dom_mean_rates
vector< TProfile * > h_rate
vector< TH1D * > h_slice_start_time
void initialize(std::set< int > &du_ids, JFrameIndexRange &frame_index_range, int modules_per_string)
vector< TProfile * > h_active_modules
vector< JManager< string, TProfile > * > m_module_rates_vs_time
vector< TH2D * > h_ToT_255_Floor_vs_time_2
void initialize(std::set< int > du_ids, int modules_per_string, JFrameIndexRange &frame_index_range, int ts_type, std::string ts_name)