15 #include <TDirectory.h>
17 #include <TPaveLabel.h>
18 #include <TPaletteAxis.h>
66 TFile *
df =
new TFile(input_filename);
67 std::ofstream st_prop_time_constants;
68 st_prop_time_constants.open (
"st_prop_timeCorr.txt", std::ofstream::out);
72 for (
unsigned int j = 0; j < 30; j++)
75 PT_can[j] =
new TCanvas( Form(
"PT_can_%i",j+1), Form(
"PT_can_%i",j+1), 800, 450);
78 TopDirectory = (TDirectory*) df->FindObjectAny(
"ST_Propagation_Time");
81 char* ss = Form(
"h2_PropTimeCorr_z_SS_chan_%i",j+1);
83 char* bs = Form(
"h2_PropTimeCorr_z_BS_chan_%i",j+1);
85 char* ns = Form(
"h2_PropTimeCorr_z_NS_chan_%i",j+1);
87 char*
total = Form(
"h2_CorrectedTime_z_%i",j+1);
93 gStyle->SetOptStat(10);
94 gStyle->SetOptFit(0111);
99 h2_ss->SetTitle(
"Straight Section Corrected Time");
100 h2_ss->SetXTitle(
"Z (cm)");
101 h2_ss->SetYTitle(
"SC Time (ns)");
102 h2_ss->GetZaxis()->SetRangeUser(0,4);
103 h2_ss->GetXaxis()->SetRangeUser(0,40);
104 h2_ss->GetYaxis()->SetRangeUser(-5.0,5.0);
110 gStyle->SetOptStat(10);
111 gStyle->SetErrorX(0);
116 h2_bs->SetTitle(
"Bend Section Corrected Time");
117 h2_bs->SetXTitle(
"Z (cm)");
118 h2_bs->SetYTitle(
"SC Time (ns)");
119 h2_bs->GetZaxis()->SetRangeUser(0,4);
120 h2_bs->GetXaxis()->SetRangeUser(39,43);
121 h2_bs->GetYaxis()->SetRangeUser(-5.0,5.0);
127 gStyle->SetOptStat(10);
128 gStyle->SetErrorX(0);
133 h2_ns->SetTitle(
"Nose Section Corrected Time");
134 h2_ns->SetXTitle(
"Z (cm)");
135 h2_ns->SetYTitle(
"SC Time (ns)");
136 h2_ns->GetZaxis()->SetRangeUser(0,4);
137 h2_ns->GetXaxis()->SetRangeUser(43,60);
138 h2_ns->GetYaxis()->SetRangeUser(-5.0,5.0);
144 gStyle->SetOptStat(10);
145 gStyle->SetErrorX(0);
150 h2_total->SetTitle(
"Paddle Corrected Time");
152 h2_total->SetYTitle(
"SC Time (ns)");
153 h2_total->GetZaxis()->SetRangeUser(0,4);
154 h2_total->GetXaxis()->SetRangeUser(0,60);
155 h2_total->GetYaxis()->SetRangeUser(-5.0,5.0);
159 st_prop_time_constants.close();
Double_t tns_min[NCHANNELS]
Double_t t_bs_fit_err[NCHANNELS][3]
Double_t t_bs_fit[NCHANNELS][3]
Double_t tbs_min[NCHANNELS]
Double_t t_total_fit[NCHANNELS][3]
Double_t t_min[NCHANNELS]
Double_t tbs_max[NCHANNELS]
TDirectory * TopDirectory
Double_t t_ns_fit_err[NCHANNELS][3]
Double_t tss_min[NCHANNELS]
Double_t t_total_fit_err[NCHANNELS][3]
Double_t t_ns_fit[NCHANNELS][3]
Double_t t_ss_fit_err[NCHANNELS][3]
void st_prop_time_corr_v1(char const *input_filename)
Double_t tns_max[NCHANNELS]
Double_t t_ss_fit[NCHANNELS][3]
Double_t t_max[NCHANNELS]
Double_t tss_max[NCHANNELS]