504 {
505 cout << "define_track_histo" << endl;
506
507 TString dname = "track_histo";
508 output-> mkdir(dname, "histograms of fitted tracks");
509 output->cd(dname);
510
511
513
514
515 h_track_chi2 = new TH1F("h_track_chi2", "fitted track chi2", 8000, 0, 8000);
516
517
518 h_track_xpoca = new TH1F("h_track_xpoca", "fitted track point of closest approach x (mm)", 100, -100, 100);
519 h_track_ypoca = new TH1F("h_track_ypoca", "fitted track point of closest approach y (mm)", 100, -100, 100);
520 h_track_zpoca = new TH1F("h_track_zpoca", "fitted track point of closest approach z (mm)", 100, -150, 150);
521
522
523
524 h_test_residual_rphi = new TH1F("h_test_residual_rphi", "test plane: residual in R * phi (mm)", 100, -5, 5);
525 h_test_res_rphi_vs_chi2 = new TH2F("h_test_res_rphi_vs_chi2", "test plane: residual in R * phi (mm) vs chi2", 100, -5, 5, 1000, 0, 1000);
526
527
528 h_test_residual_rphi_tpc = new TH1F("h_test_residual_rphi_tpc", "test plane: TPC residual in R * phi (mm)", 100, -5, 5);
529 h_test_res_rphi_vs_chi2_tpc = new TH2F("h_test_res_rphi_vs_chi2_tpc", "test plane: TPC residual in R * phi (mm) vs chi2", 100, -5, 5, 1000, 0, 1000);
530
531
532 h_test_residual_z = new TH1F("h_test_residual_z", "test plane: residual in z (mm)", 100, -5, 5);
533 h_test_res_z_vs_chi2 = new TH2F("h_test_res_z_vs_chi2", "test plane: residual in z (mm) vs chi2", 100, -5, 5, 1000, 0, 1000);
534
535
536 h_test_residual_z_tpc = new TH1F("h_test_residual_z_tpc", "test plane: TPC residual in z (mm)", 100, -5, 5);
537 h_test_res_z_vs_chi2_tpc = new TH2F("h_test_res_z_vs_chi2_tpc", "test plane: TPC residual in z (mm) vs chi2", 100, -5, 5, 1000, 0, 1000);
538
539
540
541 h_residual_rphi_L1_S1 = new TH1F("h_residual_rphi_L1_S1", "residual in R * phi (mm) on L1, S1", 100, -5, 5);
542 h_residual_rphi_L1_S2 = new TH1F("h_residual_rphi_L1_S2", "residual in R * phi (mm) on L1, S2", 100, -5, 5);
543 h_residual_rphi_L2_S1 = new TH1F("h_residual_rphi_L2_S1", "residual in R * phi (mm) on L2, S1", 100, -5, 5);
544 h_residual_rphi_L2_S2 = new TH1F("h_residual_rphi_L2_S2", "residual in R * phi (mm) on L2, S2", 100, -5, 5);
545
546 h_res_rphi_vs_chi2_L1_S1 = new TH2F("h_res_rphi_vs_chi2_L1_S1", "residual in R * phi (mm) on L1, S1 vs chi2", 100, -5, 5, 1000, 0, 1000);
547 h_res_rphi_vs_chi2_L1_S2 = new TH2F("h_res_rphi_vs_chi2_L1_S2", "residual in R * phi (mm) on L1, S2 vs chi2", 100, -5, 5, 1000, 0, 1000);
548 h_res_rphi_vs_chi2_L2_S1 = new TH2F("h_res_rphi_vs_chi2_L2_S1", "residual in R * phi (mm) on L2, S1 vs chi2", 100, -5, 5, 1000, 0, 1000);
549 h_res_rphi_vs_chi2_L2_S2 = new TH2F("h_res_rphi_vs_chi2_L2_S2", "residual in R * phi (mm) on L2, S2 vs chi2", 100, -5, 5, 1000, 0, 1000);
550
551
552 h_residual_rphi_L1_S1_tpc = new TH1F("h_residual_rphi_L1_S1_tpc", "TPC residual in R * phi (mm) on L1, S1", 100, -5, 5);
553 h_residual_rphi_L1_S2_tpc = new TH1F("h_residual_rphi_L1_S2_tpc", "TPC residual in R * phi (mm) on L1, S2", 100, -5, 5);
554 h_residual_rphi_L2_S1_tpc = new TH1F("h_residual_rphi_L2_S1_tpc", "TPC residual in R * phi (mm) on L2, S1", 100, -5, 5);
555 h_residual_rphi_L2_S2_tpc = new TH1F("h_residual_rphi_L2_S2_tpc", "TPC residual in R * phi (mm) on L2, S2", 100, -5, 5);
556
557 h_res_rphi_vs_chi2_L1_S1_tpc = new TH2F("h_res_rphi_vs_chi2_L1_S1_tpc", "TPC residual in R * phi (mm) on L1, S1 vs chi2", 100, -5, 5, 1000, 0, 1000);
558 h_res_rphi_vs_chi2_L1_S2_tpc = new TH2F("h_res_rphi_vs_chi2_L1_S2_tpc", "TPC residual in R * phi (mm) on L1, S2 vs chi2", 100, -5, 5, 1000, 0, 1000);
559 h_res_rphi_vs_chi2_L2_S1_tpc = new TH2F("h_res_rphi_vs_chi2_L2_S1_tpc", "TPC residual in R * phi (mm) on L2, S1 vs chi2", 100, -5, 5, 1000, 0, 1000);
560 h_res_rphi_vs_chi2_L2_S2_tpc = new TH2F("h_res_rphi_vs_chi2_L2_S2_tpc", "TPC residual in R * phi (mm) on L2, S2 vs chi2", 100, -5, 5, 1000, 0, 1000);
561
562
563 h_residual_z_L1_S1 = new TH1F("h_residual_z_L1_S1", "residual in z (mm) on L1, S1", 100, -5, 5);
564 h_residual_z_L1_S2 = new TH1F("h_residual_z_L1_S2", "residual in z (mm) on L1, S2", 100, -5, 5);
565 h_residual_z_L2_S1 = new TH1F("h_residual_z_L2_S1", "residual in z (mm) on L2, S1", 100, -5, 5);
566 h_residual_z_L2_S2 = new TH1F("h_residual_z_L2_S2", "residual in z (mm) on L2, S2", 100, -5, 5);
567
568 h_res_z_vs_chi2_L1_S1 = new TH2F("h_res_z_vs_chi2_L1_S1", "residual in z (mm) on L1, S1 vs chi2", 100, -5, 5, 1000, 0, 1000);
569 h_res_z_vs_chi2_L1_S2 = new TH2F("h_res_z_vs_chi2_L1_S2", "residual in z (mm) on L1, S2 vs chi2", 100, -5, 5, 1000, 0, 1000);
570 h_res_z_vs_chi2_L2_S1 = new TH2F("h_res_z_vs_chi2_L2_S1", "residual in z (mm) on L2, S1 vs chi2", 100, -5, 5, 1000, 0, 1000);
571 h_res_z_vs_chi2_L2_S2 = new TH2F("h_res_z_vs_chi2_L2_S2", "residual in z (mm) on L2, S2 vs chi2", 100, -5, 5, 1000, 0, 1000);
572
573
574 h_residual_z_L1_S1_tpc = new TH1F("h_residual_z_L1_S1_tpc", "TPC residual in z (mm) on L1, S1", 100, -5, 5);
575 h_residual_z_L1_S2_tpc = new TH1F("h_residual_z_L1_S2_tpc", "TPC residual in z (mm) on L1, S2", 100, -5, 5);
576 h_residual_z_L2_S1_tpc = new TH1F("h_residual_z_L2_S1_tpc", "TPC residual in z (mm) on L2, S1", 100, -5, 5);
577 h_residual_z_L2_S2_tpc = new TH1F("h_residual_z_L2_S2_tpc", "TPC residual in z (mm) on L2, S2", 100, -5, 5);
578
579 h_res_z_vs_chi2_L1_S1_tpc = new TH2F("h_res_z_vs_chi2_L1_S1_tpc", "TPC residual in z (mm) on L1, S1 vs chi2", 100, -5, 5, 1000, 0, 1000);
580 h_res_z_vs_chi2_L1_S2_tpc = new TH2F("h_res_z_vs_chi2_L1_S2_tpc", "TPC residual in z (mm) on L1, S2 vs chi2", 100, -5, 5, 1000, 0, 1000);
581 h_res_z_vs_chi2_L2_S1_tpc = new TH2F("h_res_z_vs_chi2_L2_S1_tpc", "TPC residual in z (mm) on L2, S1 vs chi2", 100, -5, 5, 1000, 0, 1000);
582 h_res_z_vs_chi2_L2_S2_tpc = new TH2F("h_res_z_vs_chi2_L2_S2_tpc", "TPC residual in z (mm) on L2, S2 vs chi2", 100, -5, 5, 1000, 0, 1000);
583
584
585 h_signal_charge_2d = new TH1F("h_signal_charge_2d", "total charge of the signal (fC)", 500, 0, 500);
586 h_signal_charge_1d_x = new TH1F("h_signal_charge_1d_x", "charge x of the signal (fC)", 500, 0, 500);
587 h_signal_charge_1d_v = new TH1F("h_signal_charge_1d_v", "charge v of the signal (fC)", 500, 0, 500);
588 h_signal_size_1d_x = new TH1F("h_signal_size_1d_x", "cl.size x of the signal", 50, 0, 50);
589 h_signal_size_1d_v = new TH1F("h_signal_size_1d_v", "cl.size v of the signal", 50, 0, 50);
590
591 h_signal_charge_2d_chi2cut = new TH1F("h_signal_charge_2d_chi2cut", "total charge of the signal (fC) with a chi2 cut", 500, 0, 500);
592 h_signal_charge_1d_x_chi2cut = new TH1F("h_signal_charge_1d_x_chi2cut", "charge x of the signal (fC) with a chi2 cut", 500, 0, 500);
593 h_signal_charge_1d_v_chi2cut = new TH1F("h_signal_charge_1d_v_chi2cut", "charge v of the signal (fC) with a chi2 cut", 500, 0, 500);
594 h_signal_size_1d_x_chi2cut = new TH1F("h_signal_size_1d_x_chi2cut", "cl.size x of the signal with a chi2 cut", 50, 0, 50);
595 h_signal_size_1d_v_chi2cut = new TH1F("h_signal_size_1d_v_chi2cut", "cl.size v of the signal with a chi2 cut", 50, 0, 50);
596
597
598 h_background_charge_2d = new TH1F("h_background_charge_2d", "total charge of the background (fC)", 500, 0, 500);
599 h_background_charge_1d_x = new TH1F("h_background_charge_1d_x", "charge x of the background (fC)", 500, 0, 500);
600 h_background_charge_1d_v = new TH1F("h_background_charge_1d_v", "charge v of the background (fC)", 500, 0, 500);
601 h_background_size_1d_x = new TH1F("h_background_size_1d_x", "cl.size x of the background", 50, 0, 50);
602 h_background_size_1d_v = new TH1F("h_background_size_1d_v", "cl.size v of the background", 50, 0, 50);
603
604
607
608
609 h_eff_vs_z =
new TH1F(
"h_eff_vs_z",
"Track efficiency vs z (mm)",
MAX_Z_BIN,
MIN_Z,
MAX_Z);
611
612
614
615
616 h_resolution_rphi_vs_chi2 =
new TH1F(
"h_resolution_rphi_vs_chi2" ,
"test plane: cc resolution in R * phi (mm) vs chi2" ,
CHI_BIN,
CHI_MIN,
CHI_MAX);
617 h_resolution_rphi_tpc_vs_chi2 =
new TH1F(
"h_resolution_rphi_tpc_vs_chi2",
"test plane: tpc resolution in R * phi (mm) vs chi2",
CHI_BIN,
CHI_MIN,
CHI_MAX);
618
619 h_resolution_z_vs_chi2 =
new TH1F(
"h_resolution_z_vs_chi2" ,
"test plane: cc resolution in z (mm) vs chi2" ,
CHI_BIN,
CHI_MIN,
CHI_MAX);
620 h_resolution_z_tpc_vs_chi2 =
new TH1F(
"h_resolution_z_tpc_vs_chi2",
"test plane: tpc resolution in z (mm) vs chi2",
CHI_BIN,
CHI_MIN,
CHI_MAX);
621
622
623
624
625 h_test_residual_rphi_vs_angxy_L1_cc =
new TH2F(
"h_test_residual_rphi_vs_angxy_L1_cc" ,
"test plane: CC residual in R * phi (mm) vs ang_{xy}_{L1}", 100, -5, 5,
ANG_BIN,
ANG_MIN,
ANG_MAX);
626 h_test_residual_rphi_vs_angxy_L1_tpc =
new TH2F(
"h_test_residual_rphi_vs_angxy_L1_tpc",
"test plane: TPC residual in R * phi (mm) vs ang_{xy}_{L1}", 100, -5, 5,
ANG_BIN,
ANG_MIN,
ANG_MAX);
627
628
629 h_test_residual_rphi_vs_angxy_L2_cc =
new TH2F(
"h_test_residual_rphi_vs_angxy_L2_cc" ,
"test plane: CC residual in R * phi (mm) vs ang_{xy}_{L2}", 100, -5, 5,
ANG_BIN,
ANG_MIN,
ANG_MAX);
630 h_test_residual_rphi_vs_angxy_L2_tpc =
new TH2F(
"h_test_residual_rphi_vs_angxy_L2_tpc",
"test plane: TPC residual in R * phi (mm) vs ang_{xy}_{L2}", 100, -5, 5,
ANG_BIN,
ANG_MIN,
ANG_MAX);
631
632
633 h_resolution_vs_ang_xy_L1 =
new TH1F(
"h_resolution_vs_ang_xy_L1",
"cc resolution in R * phi (mm) vs L1 ang_{xy}",
ANG_BIN,
ANG_MIN,
ANG_MAX);
634 h_resolution_vs_ang_xy_L2 =
new TH1F(
"h_resolution_vs_ang_xy_L2",
"cc resolution in R * phi (mm) vs L2 ang_{xy}",
ANG_BIN,
ANG_MIN,
ANG_MAX);
635
636
637 h_resolution_tpc_vs_ang_xy_L1 =
new TH1F(
"h_resolution_tpc_vs_ang_xy_L1",
"tpc resolution in R * phi (mm) vs L1 ang_{xy}",
ANG_BIN,
ANG_MIN,
ANG_MAX);
638 h_resolution_tpc_vs_ang_xy_L2 =
new TH1F(
"h_resolution_tpc_vs_ang_xy_L2",
"tpc resolution in R * phi (mm) vs L2 ang_{xy}",
ANG_BIN,
ANG_MIN,
ANG_MAX);
639
640 output->cd();
641}