#include <JRunHistograms.hh>
Definition at line 119 of file JRunHistograms.hh.
TimesliceHistograms::TimesliceHistograms |
( |
| ) |
|
|
inline |
Definition at line 140 of file JRunHistograms.hh.
149 m_mean_ToT .resize (number_of_timeslice_types , NULL);
vector< JManager< string, TH2D > * > m_pmt_tot_distributions
vector< TH2D * > h_dom_mean_rates
vector< JManager< string, TH1D > * > m_mean_ToT_distribution
vector< JManager< string, TH2D > * > m_mean_ToT
vector< JManager< string, TH2D > * > m_pmt_rate_distributions
void TimesliceHistograms::initialize |
( |
std::set< int > |
du_ids, |
|
|
int |
modules_per_string, |
|
|
int |
ts_type, |
|
|
std::string |
ts_name |
|
) |
| |
|
inline |
Definition at line 163 of file JRunHistograms.hh.
166 MAKE_STRING (ts_name +
" ; DU number ; Floor number ; time slice averaged rate [Hz]").c_str() ,
167 *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
168 modules_per_string , 0.5 , 0.5 + modules_per_string);
171 MAKE_STRING (ts_name +
" ; TDC channel ; Floor number ; mean ToT [ns] ").c_str(),
173 modules_per_string , 0.5 , 0.5 + modules_per_string));
176 MAKE_STRING (ts_name +
" ; ToT [ns] ; # PMTS ").c_str(),
179 TH2D* h =
new TH2D (
MAKE_STRING (
"%_" + ts_name +
"_2SToT").c_str(),
180 MAKE_STRING (ts_name +
" ; TDC channel ; ToT [ns] ; counts").c_str(),
201 TH2D* h_pmt_rate_distributions =
new TH2D (
MAKE_STRING (
"%/h_pmt_rate_distributions_" + ts_name).c_str(),
202 MAKE_STRING (ts_name +
" ; TDC channel ; rate [kHz] ; counts ").c_str(),
vector< JManager< string, TH2D > * > m_pmt_tot_distributions
vector< TH2D * > h_dom_mean_rates
#define MAKE_STRING(A)
Make string.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys...
vector< JManager< string, TH1D > * > m_mean_ToT_distribution
vector< JManager< string, TH2D > * > m_mean_ToT
vector< JManager< string, TH2D > * > m_pmt_rate_distributions
Indexing of data type in type list.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
void TimesliceHistograms::Fill_mean_ToT_histograms |
( |
| ) |
|
|
inline |
Definition at line 217 of file JRunHistograms.hh.
228 TPRegexp
r (
"(\\w+)/(\\DU)(\\d+)/(F)(\\d+)");
230 TObjArray*
o =
r.MatchS(s);
232 int String = ((TObjString *)o->At(3))->GetString().Atoi();
233 int Floor = ((TObjString *)o->At(5))->GetString().Atoi();
235 for (
int pmt = 1 ; pmt <= (
j -> second) -> GetXaxis() -> GetNbins() ; pmt++){
237 (*
m_mean_ToT[i])[
MAKE_STRING(
"Detector/DU" +
to_string(String))] -> Fill((
j->second) -> GetXaxis() -> GetBinCenter(pmt) , Floor , (
j -> second) -> ProjectionY (
"" , pmt , pmt) -> GetMean () );
vector< JManager< string, TH2D > * > m_pmt_tot_distributions
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
#define MAKE_STRING(A)
Make string.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys...
vector< JManager< string, TH1D > * > m_mean_ToT_distribution
General purpose string class.
std::string to_string(const T &value)
Convert value to string.
vector< JManager< string, TH2D > * > m_mean_ToT
int TimesliceHistograms::min_logdt |
int TimesliceHistograms::max_logdt |
int TimesliceHistograms::nbins_logdt |
int TimesliceHistograms::nbins_time |
vector< TH2D* > TimesliceHistograms::h_dom_mean_rates |
vector< JManager < string , TH1D >* > TimesliceHistograms::m_mean_ToT_distribution |
vector< JManager < string , TH2D >* > TimesliceHistograms::m_pmt_tot_distributions |
vector< JManager < string , TH2D >* > TimesliceHistograms::m_pmt_rate_distributions |
The documentation for this struct was generated from the following file: