Definition at line 740 of file TRTCalib_makeplots.cxx.
◆ ChipVariations()
ChipVariations::ChipVariations |
( |
char * |
infile, |
|
|
int |
detector |
|
) |
| |
Definition at line 747 of file TRTCalib_makeplots.cxx.
752 float t0o, chip,
dt0, rt0;
753 int nchip[9] = {10, 11, 15, 9, 9, 11, 12, 13, 14};
755 this->SetBins(104, 0.5, 104.5);
756 this->SetName(Form(
"ChipT0Var_%i",
detector));
759 cout <<
"In ChipVariations infile: " <<
infile <<
" detector " <<
detector << endl;
761 TNtuple *Chiptuple = (TNtuple *)
file->Get(
"Chiptuple");
763 Chiptuple->SetBranchAddress(
"rt0", &rt0);
764 Chiptuple->SetBranchAddress(
"t0offset", &t0o);
765 Chiptuple->SetBranchAddress(
"chp", &chip);
766 Chiptuple->SetBranchAddress(
"dt0", &
dt0);
769 for (
int ibrd = 0; ibrd < 9; ibrd++)
772 Chiptuple->Draw(
">>tmplist", Form(
"brd==%i && t0offset!=0 && ftype>1 && det==%i", ibrd,
detector));
773 TEventList *elist = (TEventList *)
gDirectory->Get(
"tmplist");
776 for (
int ib = 0;
ib < elist->GetN();
ib++)
779 Chiptuple->GetEntry(elist->GetEntry(
ib));
782 if (ibrd >= 2 && ibrd < 5)
783 mchip = (
int)chip + 21;
785 mchip = (
int)chip + 21 + 33;
786 this->Fill(mchip, t0o);
791 for (
int ibrd = 0; ibrd < 9; ibrd++)
793 for (
int ichp = 0; ichp < nchip[ibrd]; ichp++)
799 mchip = ichp + nchip[ibrd - 1] + 1;
803 mchip = ichp + nchip[ibrd - 1] + 1;
805 mchip = ichp + nchip[ibrd - 1] + nchip[ibrd - 2] + 1;
809 mchip = ichp + nchip[ibrd - 1] + 1;
811 mchip = ichp + nchip[ibrd - 1] + nchip[ibrd - 2] + 1;
813 mchip = ichp + nchip[ibrd - 1] + nchip[ibrd - 2] + nchip[ibrd - 3] + 1;
814 txtfile << ibrd <<
" " << mchip <<
" " <<
detector <<
" " <<
ic <<
" " << this->GetBinContent(
ic + 1) << endl;
820 this->SetTitle(Form(
"Chip T0 offset (phi-mod average, %c-side)",
detlet[
detector + 1]));
821 this->SetStats(kFALSE);
822 this->SetLineColor(2);
823 this->GetYaxis()->SetTitle(
"T0_{board}-T0_{chip} / ns");
824 this->GetXaxis()->SetTitle(
"chip #");
◆ DrawLines()
void ChipVariations::DrawLines |
( |
float |
lowe, |
|
|
float |
upe |
|
) |
| |
Definition at line 831 of file TRTCalib_makeplots.cxx.
833 TLine *lin1 =
new TLine(10.5, lowe, 10.5, upe);
834 lin1->SetLineStyle(2);
836 TLine *lin2 =
new TLine(21.5, lowe, 21.5, upe);
837 lin2->SetLineStyle(2);
839 TLine *lin3 =
new TLine(36.5, lowe, 36.5, upe);
840 lin3->SetLineStyle(2);
842 TLine *lin4 =
new TLine(45.5, lowe, 45.5, upe);
843 lin4->SetLineStyle(2);
845 TLine *lin5 =
new TLine(54.5, lowe, 54.5, upe);
846 lin5->SetLineStyle(2);
848 TLine *lin6 =
new TLine(65.5, lowe, 65.5, upe);
849 lin6->SetLineStyle(2);
851 TLine *lin7 =
new TLine(77.5, lowe, 77.5, upe);
852 lin7->SetLineStyle(2);
854 TLine *lin8 =
new TLine(90.5, lowe, 90.5, upe);
855 lin8->SetLineStyle(2);
The documentation for this class was generated from the following file: