#include <JRunHistograms.hh>
Definition at line 117 of file JRunHistograms.hh.
TimesliceHistograms::TimesliceHistograms |
( |
| ) |
|
|
inline |
Definition at line 138 of file JRunHistograms.hh.
147 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 161 of file JRunHistograms.hh.
164 MAKE_STRING (ts_name +
" ; DU number ; Floor number ; time slice averaged rate [Hz]").c_str() ,
165 *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
166 modules_per_string , 0.5 , 0.5 + modules_per_string);
169 MAKE_STRING (ts_name +
" ; TDC channel ; Floor number ; mean ToT [ns] ").c_str(),
171 modules_per_string , 0.5 , 0.5 + modules_per_string));
174 MAKE_STRING (ts_name +
" ; ToT [ns] ; # PMTS ").c_str(),
177 TH2D* h =
new TH2D (
MAKE_STRING (
"%_" + ts_name +
"_2SToT").c_str(),
178 MAKE_STRING (ts_name +
" ; TDC channel ; ToT [ns] ; counts").c_str(),
199 TH2D* h_pmt_rate_distributions =
new TH2D (
MAKE_STRING (
"%/h_pmt_rate_distributions_" + ts_name).c_str(),
200 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 215 of file JRunHistograms.hh.
226 TPRegexp
r (
"(\\w+)/(\\DU)(\\d+)/(F)(\\d+)");
228 TObjArray*
o =
r.MatchS(s);
230 int String = ((TObjString *)o->At(3))->GetString().Atoi();
231 int Floor = ((TObjString *)o->At(5))->GetString().Atoi();
233 for (
int pmt = 1 ; pmt <= (
j -> second) -> GetXaxis() -> GetNbins() ; pmt++){
235 (*
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 echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
#define MAKE_STRING(A)
Make string.
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
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: