ATLAS Offline Software
Loading...
Searching...
No Matches
T0CalibTypeXY Class Reference
Inheritance diagram for T0CalibTypeXY:
Collaboration diagram for T0CalibTypeXY:

Public Member Functions

 T0CalibTypeXY (char *, bool)

Detailed Description

Definition at line 661 of file TRTCalib_makeplots.cxx.

Constructor & Destructor Documentation

◆ T0CalibTypeXY()

T0CalibTypeXY::T0CalibTypeXY ( char * infile,
bool isAr = false )

Definition at line 667 of file TRTCalib_makeplots.cxx.

668{
669
670 TFile *file = new TFile(infile);
671 cout << "In T0CalibTypeXY infile: " << infile << endl;
672 file->cd();
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");
698 this->cd();
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 {
708 this->cd(6);
709 hxy1.Draw("T0 calib type (Chip, side C)", false);
710 this->cd(5);
711 hxy2.Draw("T0 calib type (Board, side C)", false);
712 this->cd(4);
713 hxy3.Draw("T0 calib type (Module, side C)", false);
714 this->cd(3);
715 hxy4.Draw("T0 calib type (Chip, side A)", false);
716 this->cd(2);
717 hxy5.Draw("T0 calib type (Board, side A)", false);
718 this->cd(1);
719 hxy6.Draw("T0 calib type (Module, side A)", true);
720 }
721 else
722 {
723 this->cd(6);
724 hxy1.Draw("Argon T0 calib type (Chip, side C)", false);
725 this->cd(5);
726 hxy2.Draw("Argon T0 calib type (Board, side C)", false);
727 this->cd(4);
728 hxy3.Draw("Argon T0 calib type (Module, side C)", false);
729 this->cd(3);
730 hxy4.Draw("Argon T0 calib type (Chip, side A)", false);
731 this->cd(2);
732 hxy5.Draw("Argon T0 calib type (Board, side A)", false);
733 this->cd(1);
734 hxy6.Draw("Argon T0 calib type (Module, side A)", true);
735 }
736}
void Draw(const string &, bool)
str infile
Definition run.py:13
TFile * file

The documentation for this class was generated from the following file: