148 art::ServiceHandle<art::TFileService>
tfs;
150 fNTrueHitMu = tfs->make<TH1F>(
"hNTrueHitMu",
"No. True Hits per #mu", 10,0,10);
151 fNDataMu = tfs->make<TH1F>(
"hNDataMu",
"No. FEB Triggers per #mu", 10,0,10);
152 fNSimHitMu = tfs->make<TH1F>(
"hNSimHitMu",
"No. Sim Hits per #mu", 10,0,10);
153 fNTrueSimDiffMu = tfs->make<TH1F>(
"hNTrueSimDiffMu",
"No. True-Sim Hits per #mu", 14,-6,8);
155 fNTrueHitMu_top = tfs->make<TH1F>(
"hNTrueHitMu_top",
"No. True Hits per #mu", 10,0,10);
156 fNTrueHitMu_side = tfs->make<TH1F>(
"hNTrueHitMu_side",
"No. True Hits per #mu", 10,0,10);
157 fNTrueHitMu_bot = tfs->make<TH1F>(
"hNTrueHitMu_bot",
"No. True Hits per #mu", 10,0,10);
158 fNSimHitMu_top = tfs->make<TH1F>(
"hNSimHitMu_top",
"No. Sim Hits per #mu", 10,0,10);
159 fNSimHitMu_side = tfs->make<TH1F>(
"hNSimHitMu_side",
"No. Sim Hits per #mu", 10,0,10);
160 fNSimHitMu_bot = tfs->make<TH1F>(
"hNSimHitMu_bot",
"No. Sim Hits per #mu", 10,0,10);
162 fNRegTrue = tfs->make<TH1F>(
"hNRegTrue",
"No. True Hits per Region", 10,0,10);
163 fNRegSim = tfs->make<TH1F>(
"hNRegSim",
"No. Sim Hits per Region", 10,0,10);
165 fFebsTrue = tfs->make<TH1F>(
"hFebsTrue",
"mac5s in true hits", 300,0,300);
166 fFebsSim = tfs->make<TH1F>(
"hFebsSim",
"mac5s in sim hits", 300,0,300);
169 const float absmin = -1*absmax;
176 const float tmin = -1*tmax;
179 art::TFileDirectory resdir = tfs->mkdir(
"resolution");
180 fRres_top = resdir.make<TH1F>(
"hRres_top",
"CRTHit #sigma_{r}: Top", nbinsr,0,rmax);
181 fRres_rim = resdir.make<TH1F>(
"hRres_rim",
"CRTHit #sigma_{r}: Rim", nbinsr,0,rmax);
182 fRres_bot = resdir.make<TH1F>(
"hRres_bot",
"CRTHit #sigma_{r}: Bottom", nbinsr,0,rmax);
183 fRres_lat = resdir.make<TH1F>(
"hRres_lat",
"CRTHit #sigma_{r}: East/West", nbinsr,0,rmax);
184 fRres_nor = resdir.make<TH1F>(
"hRres_nor",
"CRTHit #sigma_{r}: North", nbinsr,0,rmax);
185 fRres_sth = resdir.make<TH1F>(
"hRres_sth",
"CRTHit #sigma_{r}: South", nbinsr,0,rmax);
187 fXres_top = resdir.make<TH1F>(
"hXres_top",
"CRTHit #sigma_{x}: Top", nbinsabs,absmin,absmax);
188 fXres_rim = resdir.make<TH1F>(
"hXres_rim",
"CRTHit #sigma_{x}: Rim", nbinsabs,absmin,absmax);
189 fXres_bot = resdir.make<TH1F>(
"hXres_bot",
"CRTHit #sigma_{x}: Bottom", nbinsabs,absmin,absmax);
190 fXres_lat = resdir.make<TH1F>(
"hXres_lat",
"CRTHit #sigma_{x}: East/West", nbinsabs,absmin,absmax);
191 fXres_nor = resdir.make<TH1F>(
"hXres_nor",
"CRTHit #sigma_{x}: North", nbinsabs,absmin,absmax);
192 fXres_sth = resdir.make<TH1F>(
"hXres_sth",
"CRTHit #sigma_{x}: South", nbinsabs,absmin,absmax);
194 fYres_top = resdir.make<TH1F>(
"hYres_top",
"CRTHit #sigma_{y}: Top", nbinsabs,absmin,absmax);
195 fYres_rim = resdir.make<TH1F>(
"hYres_rim",
"CRTHit #sigma_{y}: Rim", nbinsabs,absmin,absmax);
196 fYres_bot = resdir.make<TH1F>(
"hYres_bot",
"CRTHit #sigma_{y}: Bottom", nbinsabs,absmin,absmax);
197 fYres_lat = resdir.make<TH1F>(
"hYres_lat",
"CRTHit #sigma_{y}: East/West", nbinsabs,absmin,absmax);
198 fYres_nor = resdir.make<TH1F>(
"hYres_nor",
"CRTHit #sigma_{y}: North", nbinsabs,absmin,absmax);
199 fYres_sth = resdir.make<TH1F>(
"hYres_sth",
"CRTHit #sigma_{y}: South", nbinsabs,absmin,absmax);
201 fZres_top = resdir.make<TH1F>(
"hZres_top",
"CRTHit #sigma_{z}: Top", nbinsabs,absmin,absmax);
202 fZres_rim = resdir.make<TH1F>(
"hZres_rim",
"CRTHit #sigma_{z}: Rim", nbinsabs,absmin,absmax);
203 fZres_bot = resdir.make<TH1F>(
"hZres_bot",
"CRTHit #sigma_{z}: Bottom", nbinsabs,absmin,absmax);
204 fZres_lat = resdir.make<TH1F>(
"hZres_lat",
"CRTHit #sigma_{z}: East/West", nbinsabs,absmin,absmax);
205 fZres_nor = resdir.make<TH1F>(
"hZres_nor",
"CRTHit #sigma_{z}: North", nbinsabs,absmin,absmax);
206 fZres_sth = resdir.make<TH1F>(
"hZres_sth",
"CRTHit #sigma_{z}: South", nbinsabs,absmin,absmax);
208 fTres_top = resdir.make<TH1F>(
"hTres_top",
"CRTHit #sigma_{t}: Top", nbinst,tmin,tmax);
209 fTres_rim = resdir.make<TH1F>(
"hTres_rim",
"CRTHit #sigma_{t}: Rim", nbinst,tmin,tmax);
210 fTres_bot = resdir.make<TH1F>(
"hTres_bot",
"CRTHit #sigma_{t}: Bottom", nbinst,tmin,tmax);
211 fTres_lat = resdir.make<TH1F>(
"hTres_lat",
"CRTHit #sigma_{t}: East/West", nbinst,tmin,tmax);
212 fTres_nor = resdir.make<TH1F>(
"hTres_nor",
"CRTHit #sigma_{t}: North", nbinst,tmin,tmax);
213 fTres_sth = resdir.make<TH1F>(
"hTres_sth",
"CRTHit #sigma_{t}: South", nbinst,tmin,tmax);
240 fNTrueHitMu_top->SetLineWidth(2);
241 fNTrueHitMu_side->SetLineWidth(2);
242 fNTrueHitMu_bot->SetLineWidth(2);
243 fNSimHitMu->SetLineWidth(2);
244 fNSimHitMu_top->SetLineWidth(2);
245 fNSimHitMu_side->SetLineWidth(2);
246 fNSimHitMu_bot->SetLineWidth(2);
249 fNTrueHitMu_top->SetLineColor(kBlue);
250 fNTrueHitMu_side->SetLineColor(kRed);
251 fNTrueHitMu_bot->SetLineColor(kGreen);
252 fNSimHitMu->SetLineColor(kBlack);
253 fNSimHitMu_top->SetLineColor(kBlue);
254 fNSimHitMu_side->SetLineColor(kRed);
255 fNSimHitMu_bot->SetLineColor(kGreen);
258 fRres_rim->SetLineWidth(2);
259 fRres_bot->SetLineWidth(2);
260 fRres_lat->SetLineWidth(2);
261 fRres_nor->SetLineWidth(2);
262 fRres_sth->SetLineWidth(2);
264 fXres_top->SetLineWidth(2);
265 fXres_rim->SetLineWidth(2);
266 fXres_bot->SetLineWidth(2);
267 fXres_lat->SetLineWidth(2);
268 fXres_nor->SetLineWidth(2);
269 fXres_sth->SetLineWidth(2);
271 fYres_top->SetLineWidth(2);
272 fYres_rim->SetLineWidth(2);
273 fYres_bot->SetLineWidth(2);
274 fYres_lat->SetLineWidth(2);
275 fYres_nor->SetLineWidth(2);
276 fYres_sth->SetLineWidth(2);
278 fZres_top->SetLineWidth(2);
279 fZres_rim->SetLineWidth(2);
280 fZres_bot->SetLineWidth(2);
281 fZres_lat->SetLineWidth(2);
282 fZres_nor->SetLineWidth(2);
283 fZres_sth->SetLineWidth(2);
285 fTres_top->SetLineWidth(2);
286 fTres_rim->SetLineWidth(2);
287 fTres_bot->SetLineWidth(2);
288 fTres_lat->SetLineWidth(2);
289 fTres_nor->SetLineWidth(2);
290 fTres_sth->SetLineWidth(2);
292 fRres_top->GetXaxis()->SetTitle(
"#||{#vec{r_{true}} - #vec{r_{reco}}} [cm]");
293 fRres_rim->GetXaxis()->SetTitle(
"#||{#vec{r_{true}} - #vec{r_{reco}}} [cm]");
294 fRres_bot->GetXaxis()->SetTitle(
"#||{#vec{r_{true}} - #vec{r_{reco}}} [cm]");
295 fRres_lat->GetXaxis()->SetTitle(
"#||{#vec{r_{true}} - #vec{r_{reco}}} [cm]");
296 fRres_nor->GetXaxis()->SetTitle(
"#||{#vec{r_{true}} - #vec{r_{reco}}} [cm]");
297 fRres_sth->GetXaxis()->SetTitle(
"#||{#vec{r_{true}} - #vec{r_{reco}}} [cm]");
299 fXres_top->GetXaxis()->SetTitle(
"#||{x_{true} - x_{reco}} [cm]");
300 fXres_rim->GetXaxis()->SetTitle(
"#||{x_{true} - x_{reco}} [cm]");
301 fXres_bot->GetXaxis()->SetTitle(
"#||{x_{true} - x_{reco}} [cm]");
302 fXres_lat->GetXaxis()->SetTitle(
"#||{x_{true} - x_{reco}} [cm]");
303 fXres_nor->GetXaxis()->SetTitle(
"#||{x_{true} - x_{reco}} [cm]");
304 fXres_sth->GetXaxis()->SetTitle(
"#||{x_{true} - x_{reco}} [cm]");
306 fYres_top->GetXaxis()->SetTitle(
"#||{y_{true} - y_{reco}} [cm]");
307 fYres_rim->GetXaxis()->SetTitle(
"#||{y_{true} - y_{reco}} [cm]");
308 fYres_bot->GetXaxis()->SetTitle(
"#||{y_{true} - y_{reco}} [cm]");
309 fYres_lat->GetXaxis()->SetTitle(
"#||{y_{true} - y_{reco}} [cm]");
310 fYres_nor->GetXaxis()->SetTitle(
"#||{y_{true} - y_{reco}} [cm]");
311 fYres_sth->GetXaxis()->SetTitle(
"#||{y_{true} - y_{reco}} [cm]");
313 fZres_top->GetXaxis()->SetTitle(
"#||{z_{true} - z_{reco}} [cm]");
314 fZres_rim->GetXaxis()->SetTitle(
"#||{z_{true} - z_{reco}} [cm]");
315 fZres_bot->GetXaxis()->SetTitle(
"#||{z_{true} - z_{reco}} [cm]");
316 fZres_lat->GetXaxis()->SetTitle(
"#||{z_{true} - z_{reco}} [cm]");
317 fZres_nor->GetXaxis()->SetTitle(
"#||{z_{true} - z_{reco}} [cm]");
318 fZres_sth->GetXaxis()->SetTitle(
"#||{z_{true} - z_{reco}} [cm]");
320 fTres_top->GetXaxis()->SetTitle(
"#||{t_{true} - t_{reco}} [ns]");
321 fTres_rim->GetXaxis()->SetTitle(
"#||{t_{true} - t_{reco}} [ns]");
322 fTres_bot->GetXaxis()->SetTitle(
"#||{t_{true} - t_{reco}} [ns]");
323 fTres_lat->GetXaxis()->SetTitle(
"#||{t_{true} - t_{reco}} [ns]");
324 fTres_nor->GetXaxis()->SetTitle(
"#||{t_{true} - t_{reco}} [ns]");
325 fTres_sth->GetXaxis()->SetTitle(
"#||{t_{true} - t_{reco}} [ns]");
art::ServiceHandle< art::TFileService > tfs