Definition at line 1136 of file TRTCalib_makeplots.cxx.
◆ BoardVariationsOldT0()
BoardVariationsOldT0::BoardVariationsOldT0 |
( |
char * |
infile, |
|
|
int |
det |
|
) |
| |
Definition at line 1147 of file TRTCalib_makeplots.cxx.
1150 cout <<
"In BoardVariationsOldT0 infile: " << string(
infile) <<
" detector " <<
det << endl;
1154 float oldt0, bindex;
1163 this->SetName(Form(
"BoardOldT0Var_%i",
det));
1168 TNtuple *Boardtuple = (TNtuple *)
file->Get(
"Board_Artuple");
1169 TNtuple *BoardtupleXe = (TNtuple *)
file->Get(
"Boardtuple");
1171 Boardtuple->SetBranchAddress(
"oldt0", &oldt0);
1173 BoardtupleXe->SetBranchAddress(
"oldt0", &oldt0);
1179 for (
int imod = 0; imod < 32; imod++)
1181 for (
int ibrd = 0; ibrd < 9; ibrd++)
1184 bindex = 9 * imod + ibrd;
1186 Boardtuple->Draw(
">>tmplist", Form(
"brd==%i && det==%i && mod==%i", ibrd,
det, imod));
1187 TEventList *elist = (TEventList *)
gDirectory->Get(
"tmplist");
1188 for (
int ib = 0;
ib < elist->GetN();
ib++)
1191 Boardtuple->GetEntry(elist->GetEntry(
ib));
1196 this->SetPoint(ipnt, bindex + 1, oldt0);
1202 else if (abs(
det) == 2)
1204 for (
int imod = 0; imod < 32; imod++)
1206 for (
int ilay = 0; ilay < 14; ilay++)
1209 bindex = 14 * imod + ilay;
1211 Boardtuple->Draw(
">>tmplist1", Form(
"lay==%i && det==%i && mod==%i", ilay,
det, imod));
1212 TEventList *elist = (TEventList *)
gDirectory->Get(
"tmplist1");
1213 for (
int ib = 0;
ib < elist->GetN();
ib++)
1216 Boardtuple->GetEntry(elist->GetEntry(
ib));
1217 this->SetPoint(ipnt, bindex + 1, oldt0);
1225 BoardtupleXe->Draw(
">>tmplistXe", Form(
"lay==%i && det==%i && mod==%i", ilay,
det, imod));
1226 elist = (TEventList *)
gDirectory->Get(
"tmplistXe");
1227 for (
int ib = 0;
ib < elist->GetN();
ib++)
1230 BoardtupleXe->GetEntry(elist->GetEntry(
ib));
1231 this->SetPoint(ipnt, bindex + 1, oldt0);
1242 this->fMaximum =
maxy;
1243 this->fMinimum =
miny;
1247 this->SetTitle(Form(
"Barrel Board T0s (%c-side)",
detlet[
det + 1]));
1252 throw std::runtime_error(
"detlet[det + 1] is out of bounds");
1254 this->SetTitle(Form(
"Endcap Board T0s (%c-side)",
detlet[
det + 1]));
1256 this->SetLineColor(4);
1257 this->RemovePoint(0);
1259 this->GetYaxis()->SetRangeUser(9, 10.7);
1263 cout <<
" found " << ipnt <<
" board t0s " << endl;
◆ DrawLines()
void BoardVariationsOldT0::DrawLines |
( |
| ) |
|
Definition at line 1267 of file TRTCalib_makeplots.cxx.
1270 this->GetYaxis()->SetTitle(
"T0_{board} / ns");
1271 this->GetXaxis()->SetTitle(
"board #");
1275 this->GetYaxis()->SetRangeUser(
miny,
maxy);
1276 this->GetXaxis()->SetRangeUser(
minx,
maxx);
1281 for (
int imod = 1; imod <= (floor(
int(
maxx) /
nb)); imod++)
1283 TLine *lin =
new TLine((
float)imod *
nb + 0.5,
miny, (
float)imod *
nb + 0.5,
maxy);
1284 lin->SetLineStyle(2);
◆ GetNpoints()
int BoardVariationsOldT0::GetNpoints |
( |
| ) |
|
|
inline |
◆ GetX()
double* BoardVariationsOldT0::GetX |
( |
| ) |
|
|
inline |
◆ GetY()
double* BoardVariationsOldT0::GetY |
( |
| ) |
|
|
inline |
◆ maxx
float BoardVariationsOldT0::maxx |
◆ maxy
float BoardVariationsOldT0::maxy |
◆ minx
float BoardVariationsOldT0::minx |
◆ miny
float BoardVariationsOldT0::miny |
The documentation for this class was generated from the following file: