668{
669
670 TFile *
file =
new TFile(infile);
671 cout <<
"In T0CalibTypeXY infile: " <<
infile << endl;
673 TNtuple *Chiptuple = nullptr;
674 TNtuple *Boardtuple = nullptr;
675 TNtuple *Moduletuple = nullptr;
676
677 if (!isAr)
678 {
679 Chiptuple = (TNtuple *)
file->Get(
"Chiptuple");
680 Boardtuple = (TNtuple *)
file->Get(
"Boardtuple");
681 Moduletuple = (TNtuple *)
file->Get(
"Moduletuple");
682 }
683 else
684 {
685 Chiptuple = (TNtuple *)
file->Get(
"Chip_Artuple");
686 Boardtuple = (TNtuple *)
file->Get(
"Board_Artuple");
687 Moduletuple = (TNtuple *)
file->Get(
"Module_Artuple");
688 }
689
690 T0CalTypeXY hxy1 = T0CalTypeXY(Chiptuple, -1, 0.2);
691 T0CalTypeXY hxy2 = T0CalTypeXY(Boardtuple, -1, 0.5);
692 T0CalTypeXY hxy3 = T0CalTypeXY(Moduletuple, -1, 0.8);
693 T0CalTypeXY hxy4 = T0CalTypeXY(Chiptuple, 1, 0.2);
694 T0CalTypeXY hxy5 = T0CalTypeXY(Boardtuple, 1, 0.5);
695 T0CalTypeXY hxy6 = T0CalTypeXY(Moduletuple, 1, 0.8);
696
697 this->SetName("c1");
699 this->Divide(3, 2, 0.01, 0.01);
700 ((TPad *)this->GetPrimitive("c1_1"))->SetFrameFillColor(1);
701 ((TPad *)this->GetPrimitive("c1_2"))->SetFrameFillColor(1);
702 ((TPad *)this->GetPrimitive("c1_3"))->SetFrameFillColor(1);
703 ((TPad *)this->GetPrimitive("c1_4"))->SetFrameFillColor(1);
704 ((TPad *)this->GetPrimitive("c1_5"))->SetFrameFillColor(1);
705 ((TPad *)this->GetPrimitive("c1_6"))->SetFrameFillColor(1);
706 if (!isAr)
707 {
709 hxy1.
Draw(
"T0 calib type (Chip, side C)",
false);
711 hxy2.
Draw(
"T0 calib type (Board, side C)",
false);
713 hxy3.
Draw(
"T0 calib type (Module, side C)",
false);
715 hxy4.
Draw(
"T0 calib type (Chip, side A)",
false);
717 hxy5.
Draw(
"T0 calib type (Board, side A)",
false);
719 hxy6.
Draw(
"T0 calib type (Module, side A)",
true);
720 }
721 else
722 {
724 hxy1.
Draw(
"Argon T0 calib type (Chip, side C)",
false);
726 hxy2.
Draw(
"Argon T0 calib type (Board, side C)",
false);
728 hxy3.
Draw(
"Argon T0 calib type (Module, side C)",
false);
730 hxy4.
Draw(
"Argon T0 calib type (Chip, side A)",
false);
732 hxy5.
Draw(
"Argon T0 calib type (Board, side A)",
false);
734 hxy6.
Draw(
"Argon T0 calib type (Module, side A)",
true);
735 }
736}
void Draw(const string &, bool)