1647 float t0,
dt0, bindex;
1656 this->SetName(Form(
"BoardT0Var_%i",
det));
1660 cout <<
"In BoardVariationsTRes infile: " << string(
infile) <<
" detector " <<
det << endl;
1662 TNtuple *BoardtupleTRes = (TNtuple *)
file->Get(
"Board_Artuple");
1663 TNtuple *BoardtupleXe = (TNtuple *)
file->Get(
"Boardtuple");
1665 BoardtupleTRes->SetBranchAddress(
"tres", &
t0);
1666 BoardtupleTRes->SetBranchAddress(
"dres", &
dt0);
1669 BoardtupleXe->SetBranchAddress(
"tres", &
t0);
1670 BoardtupleXe->SetBranchAddress(
"dres", &
dt0);
1676 for (
int imod = 0; imod < 32; imod++)
1678 for (
int ibrd = 0; ibrd < 9; ibrd++)
1681 bindex = 9 * imod + ibrd;
1683 BoardtupleTRes->Draw(
">>tmplist", Form(
"brd==%i && det==%i && mod==%i", ibrd,
det, imod));
1684 TEventList *elist = (TEventList *)
gDirectory->Get(
"tmplist");
1685 for (
int ib = 0;
ib < elist->GetN();
ib++)
1688 BoardtupleTRes->GetEntry(elist->GetEntry(
ib));
1689 this->SetPoint(ipnt, bindex + 1,
t0);
1690 this->SetPointError(ipnt, 0,
dt0);
1700 else if (abs(
det) == 2)
1702 for (
int imod = 0; imod < 32; imod++)
1704 for (
int ilay = 0; ilay < 14; ilay++)
1707 bindex = 14 * imod + ilay;
1709 BoardtupleTRes->Draw(
">>tmplist1", Form(
"lay==%i && det==%i && mod==%i", ilay,
det, imod));
1710 TEventList *elist = (TEventList *)
gDirectory->Get(
"tmplist1");
1711 for (
int ib = 0;
ib < elist->GetN();
ib++)
1714 BoardtupleTRes->GetEntry(elist->GetEntry(
ib));
1715 this->SetPoint(ipnt, bindex + 1,
t0);
1716 this->SetPointError(ipnt, 0,
dt0);
1724 BoardtupleXe->Draw(
">>tmplistXe", Form(
"lay==%i && det==%i && mod==%i", ilay,
det, imod));
1725 elist = (TEventList *)
gDirectory->Get(
"tmplistXe");
1726 for (
int ib = 0;
ib < elist->GetN();
ib++)
1729 BoardtupleXe->GetEntry(elist->GetEntry(
ib));
1730 this->SetPoint(ipnt, bindex + 1,
t0);
1731 this->SetPointError(ipnt, 0,
dt0);
1742 this->fMaximum =
maxy;
1743 this->fMinimum =
miny;
1747 this->SetTitle(Form(
"Barrel Board Sigma Time Residuals (%c-side)",
detlet[
det + 1]));
1752 throw std::out_of_range(
"Out-of-bounds access to the detlet array");
1754 this->SetTitle(Form(
"Endcap Board Sigma Time Residuals (%c-side)",
detlet[
det + 1]));
1756 this->SetLineColor(4);
1757 this->RemovePoint(0);
1761 cout <<
" found " << ipnt <<
" board t0s " << endl;