875 cout <<
"In BoardVariations infile: " <<
infile <<
" detector " <<
det << endl;
879 float t0,
dt0, bindex;
888 this->SetName(Form(
"BoardT0Var_%i",
det));
893 TNtuple *Boardtuple = (TNtuple *)
file->Get(
"Board_Artuple");
894 TNtuple *BoardtupleXe = (TNtuple *)
file->Get(
"Boardtuple");
895 Boardtuple->SetBranchAddress(
"t0", &
t0);
896 Boardtuple->SetBranchAddress(
"dt0", &
dt0);
899 BoardtupleXe->SetBranchAddress(
"t0", &
t0);
900 BoardtupleXe->SetBranchAddress(
"dt0", &
dt0);
906 for (
int imod = 0; imod < 32; imod++)
908 for (
int ibrd = 0; ibrd < 9; ibrd++)
911 bindex = 9 * imod + ibrd;
913 Boardtuple->Draw(
">>tmplist", Form(
"brd==%i && det==%i && mod==%i", ibrd,
det, imod));
914 TEventList *elist = (TEventList *)
gDirectory->Get(
"tmplist");
915 for (
int ib = 0;
ib < elist->GetN();
ib++)
918 Boardtuple->GetEntry(elist->GetEntry(
ib));
924 this->SetPoint(ipnt, bindex + 1,
t0);
925 this->SetPointError(ipnt, 0,
dt0);
933 else if (abs(
det) == 2)
935 for (
int imod = 0; imod < 32; imod++)
937 for (
int ilay = 0; ilay < 14; ilay++)
940 bindex = 14 * imod + ilay;
942 Boardtuple->Draw(
">>tmplist1", Form(
"lay==%i && det==%i && mod==%i", ilay,
det, imod));
943 TEventList *elist = (TEventList *)
gDirectory->Get(
"tmplist1");
944 for (
int ib = 0;
ib < elist->GetN();
ib++)
947 Boardtuple->GetEntry(elist->GetEntry(
ib));
948 this->SetPoint(ipnt, bindex + 1,
t0);
949 this->SetPointError(ipnt, 0,
dt0);
957 BoardtupleXe->Draw(
">>tmplistXe", Form(
"lay==%i && det==%i && mod==%i", ilay,
det, imod));
958 elist = (TEventList *)
gDirectory->Get(
"tmplistXe");
959 for (
int ib = 0;
ib < elist->GetN();
ib++)
962 BoardtupleXe->GetEntry(elist->GetEntry(
ib));
963 this->SetPoint(ipnt, bindex + 1,
t0);
964 this->SetPointError(ipnt, 0,
dt0);
975 this->fMaximum =
maxy;
976 this->fMinimum =
miny;
979 this->SetTitle(
"Barrel Board T0s A side");
983 this->SetTitle(
"Barrel Board T0s C side");
987 this->SetTitle(
"Endcap Board T0s A side");
991 this->SetTitle(
"Endcap Board T0s C side");
994 this->SetLineColor(4);
995 this->RemovePoint(0);
999 cout <<
" found " << ipnt <<
" board t0s " << endl;