Definition at line 1028 of file TRTCalib_makeplots.cxx.
◆ BoardVariationsDiff()
BoardVariationsDiff::BoardVariationsDiff |
( |
char * |
infile_data, |
|
|
char * |
infile_ref, |
|
|
int |
det |
|
) |
| |
Definition at line 1039 of file TRTCalib_makeplots.cxx.
1042 cout <<
"In BoardVariationsDiff infile_data: " << string(infile_data) <<
" infile_ref: " << string(infile_ref) <<
" detector " <<
det << endl;
1046 float t0,
dt0, oldt0, bindex;
1055 this->SetName(Form(
"BoardT0VarDiff_%i",
det));
1057 unique_ptr<TFile> filedata(
new TFile(infile_data));
1058 unique_ptr<TFile> fileref(
new TFile(infile_ref));
1061 TNtuple *Boardtuple_data = (TNtuple *)filedata->Get(
"Board_Artuple");
1063 TNtuple *Boardtuple_ref = (TNtuple *)fileref->Get(
"Board_Artuple");
1065 Boardtuple_data->SetBranchAddress(
"t0", &
t0);
1066 Boardtuple_data->SetBranchAddress(
"dt0", &
dt0);
1067 Boardtuple_ref->SetBranchAddress(
"oldt0", &oldt0);
1070 for (
int imod = 0; imod < 32; imod++)
1072 for (
int ibrd = 0; ibrd < 9; ibrd++)
1075 bindex = 9 * imod + ibrd;
1077 Boardtuple_data->Draw(
">>tmplist", Form(
"brd==%i && det==%i && mod==%i", ibrd,
det, imod));
1078 TEventList *elist = (TEventList *)
gDirectory->Get(
"tmplist");
1079 for (
int ib = 0;
ib < elist->GetN();
ib++)
1082 Boardtuple_data->GetEntry(elist->GetEntry(
ib));
1083 Boardtuple_ref->GetEntry(elist->GetEntry(
ib));
1088 this->SetPoint(ipnt, bindex + 1,
t0 - oldt0);
1089 this->SetPointError(ipnt, 0,
dt0);
1096 this->fMaximum =
maxy + 0.2;
1097 this->fMinimum =
miny - 0.2;
1099 throw std::runtime_error(
"detlet[det + 1] is out of bounds");
1101 this->SetTitle(Form(
"Board T0 - ref (%c-side)",
detlet[
det + 1]));
1102 this->SetLineColor(4);
1103 this->RemovePoint(0);
1107 cout <<
" found " << ipnt <<
" board t0s " << endl;
◆ DrawLines()
void BoardVariationsDiff::DrawLines |
( |
| ) |
|
Definition at line 1111 of file TRTCalib_makeplots.cxx.
1114 this->GetYaxis()->SetTitle(
"T0_{board}-ref / ns");
1115 this->GetXaxis()->SetTitle(
"board #");
1117 this->GetYaxis()->SetRangeUser(-0.2 +
miny, 0.2 +
maxy);
1118 this->GetXaxis()->SetRangeUser(
minx,
maxx);
1123 TLine *lin =
new TLine(
minx, 0,
maxx, 0);
1124 lin->SetLineColor(2);
1126 for (
int imod = 1; imod <= (floor(
int(
maxx) /
nb)); imod++)
1128 TLine *lin =
new TLine((
float)imod *
nb + 0.5, this->fMinimum, (
float)imod *
nb + 0.5, this->fMaximum);
1129 lin->SetLineStyle(2);
◆ GetNpoints()
int BoardVariationsDiff::GetNpoints |
( |
| ) |
|
|
inline |
◆ GetX()
double* BoardVariationsDiff::GetX |
( |
| ) |
|
|
inline |
◆ GetY()
double* BoardVariationsDiff::GetY |
( |
| ) |
|
|
inline |
◆ maxx
float BoardVariationsDiff::maxx |
◆ maxy
float BoardVariationsDiff::maxy |
◆ minx
float BoardVariationsDiff::minx |
◆ miny
float BoardVariationsDiff::miny |
The documentation for this class was generated from the following file: