154 cout <<
" In HitStatistics infile: " <<
infile << endl;
156 TNtuple *Strawtuple =
nullptr;
157 TNtuple *Chiptuple =
nullptr;
158 TNtuple *Boardtuple =
nullptr;
159 TNtuple *Moduletuple =
nullptr;
160 TNtuple *Layertuple =
nullptr;
161 TNtuple *Detectortuple =
nullptr;
162 TNtuple *conftup =
nullptr;
166 Strawtuple = (TNtuple *)
file->Get(
"Strawtuple");
167 Chiptuple = (TNtuple *)
file->Get(
"Chiptuple");
168 Boardtuple = (TNtuple *)
file->Get(
"Boardtuple");
169 Moduletuple = (TNtuple *)
file->Get(
"Moduletuple");
170 Layertuple = (TNtuple *)
file->Get(
"Layertuple");
171 Detectortuple = (TNtuple *)
file->Get(
"Detectortuple");
172 conftup = (TNtuple *)
file->Get(
"configs");
176 Strawtuple = (TNtuple *)
file->Get(
"Straw_Artuple");
177 Chiptuple = (TNtuple *)
file->Get(
"Chip_Artuple");
178 Boardtuple = (TNtuple *)
file->Get(
"Board_Artuple");
179 Moduletuple = (TNtuple *)
file->Get(
"Module_Artuple");
180 Layertuple = (TNtuple *)
file->Get(
"Layer_Artuple");
181 Detectortuple = (TNtuple *)
file->Get(
"Detector_Artuple");
182 conftup = (TNtuple *)
file->Get(
"configs");
185 float mint0 = 500, minrt = 10000;
188 conftup->SetBranchAddress(
"mint0", &mint0);
189 conftup->SetBranchAddress(
"minrt", &minrt);
190 conftup->GetEntry(0);
195 this->Divide(3, 2, 0.01, 0.01);
197 ((TPad *)this->GetPrimitive(
"c1_1"))->SetFrameFillColor(0);
198 ((TPad *)this->GetPrimitive(
"c1_2"))->SetFrameFillColor(0);
199 ((TPad *)this->GetPrimitive(
"c1_3"))->SetFrameFillColor(0);
200 ((TPad *)this->GetPrimitive(
"c1_4"))->SetFrameFillColor(0);
201 ((TPad *)this->GetPrimitive(
"c1_5"))->SetFrameFillColor(0);
202 ((TPad *)this->GetPrimitive(
"c1_6"))->SetFrameFillColor(0);
204 ((TPad *)this->GetPrimitive(
"c1_1"))->SetLogy();
205 ((TPad *)this->GetPrimitive(
"c1_2"))->SetLogy();
206 ((TPad *)this->GetPrimitive(
"c1_3"))->SetLogy();
207 ((TPad *)this->GetPrimitive(
"c1_4"))->SetLogy();
208 ((TPad *)this->GetPrimitive(
"c1_5"))->SetLogy();
209 ((TPad *)this->GetPrimitive(
"c1_6"))->SetLogy();
211 TLegend *
leg =
new TLegend(0.95, 0.6, 0.35, 0.35);
216 hsStraw->SetTitle(
"Hit Statistics (Straw)");
218 hsStraw->SetTitle(
"Hit Statistics (Argon Straw)");
220 hsStraw->GetHistogram()->GetXaxis()->SetTitle(
"No. Hits");
221 hsStraw->GetHistogram()->GetYaxis()->SetTitle(
"No. Straws");
222 hsStraw->GetHistogram()->GetXaxis()->SetNdivisions(-4);
226 hsChip->SetTitle(
"Hit Statistics (Chip)");
228 hsChip->SetTitle(
"Hit Statistics (Argon chip)");
230 hsChip->GetHistogram()->GetXaxis()->SetTitle(
"No. Hits");
231 hsChip->GetHistogram()->GetYaxis()->SetTitle(
"No. Chips");
232 hsChip->GetHistogram()->GetXaxis()->SetNdivisions(-4);
236 hsBoard->SetTitle(
"Hit Statistics (Board)");
238 hsBoard->SetTitle(
"Hit Statistics (Argon Board)");
240 hsBoard->GetHistogram()->GetXaxis()->SetTitle(
"No. Hits");
241 hsBoard->GetHistogram()->GetYaxis()->SetTitle(
"No. Boards");
242 hsBoard->GetHistogram()->GetXaxis()->SetNdivisions(-4);
246 hsModule->SetTitle(
"Hit Statistics (Phi Sector)");
248 hsModule->SetTitle(
"Hit Statistics (Argon Phi Sector)");
250 hsModule->GetHistogram()->GetXaxis()->SetTitle(
"No. Hits");
251 hsModule->GetHistogram()->GetYaxis()->SetTitle(
"No. Phi Sectors");
252 hsModule->GetHistogram()->GetXaxis()->SetNdivisions(-4);
256 hsLayer->SetTitle(
"Hit Statistics (Layer/wheel)");
258 hsLayer->SetTitle(
"Hit Statistics (Argon Layer/wheel)");
260 hsLayer->GetHistogram()->GetXaxis()->SetTitle(
"No. Hits");
261 hsLayer->GetHistogram()->GetYaxis()->SetTitle(
"No. Layers/wheel");
262 hsLayer->GetHistogram()->GetXaxis()->SetNdivisions(-4);
266 hsDetector->SetTitle(
"Hit Statistics (Detector)");
268 hsDetector->SetTitle(
"Argon Hit Statistics (Detector)");
270 hsDetector->GetHistogram()->GetXaxis()->SetTitle(
"No. Hits");
271 hsDetector->GetHistogram()->GetYaxis()->SetTitle(
"No. Detectors");
272 hsDetector->GetHistogram()->GetXaxis()->SetNdivisions(-4);