|
| NHitStack (TNtuple *, TLegend *, bool, int, int) |
|
Definition at line 101 of file TRTCalib_makeplots.cxx.
◆ NHitStack()
NHitStack::NHitStack |
( |
TNtuple * |
tuple, |
|
|
TLegend * |
leg, |
|
|
bool |
doleg, |
|
|
int |
mint0, |
|
|
int |
minrt |
|
) |
| |
Definition at line 107 of file TRTCalib_makeplots.cxx.
110 int min = (
int)tuple->GetMinimum(
"nt0");
111 int max = (
int)tuple->GetMaximum(
"nt0");
112 float bsize = ceil(((
float)(
max -
min) / 50));
115 TH1F *hits1 =
new TH1F(Form(
"%s_hits1", tuple->GetName()),
"test1", 50,
min,
hmax);
116 TH1F *hits2 =
new TH1F(Form(
"%s_hits2", tuple->GetName()),
"test2", 50,
min,
hmax);
117 TH1F *hits3 =
new TH1F(Form(
"%s_hits3", tuple->GetName()),
"test3", 50,
min,
hmax);
120 tuple->Draw(Form(
"nt0>>%s_hits1", tuple->GetName()), Form(
"nt0<=%i", mint0));
121 tuple->Draw(Form(
"nt0>>%s_hits2", tuple->GetName()), Form(
"nt0>%i && nt0<=%i", mint0, minrt));
122 tuple->Draw(Form(
"nt0>>%s_hits3", tuple->GetName()), Form(
"nt0>%i", minrt));
123 hits1->SetFillColor(46);
124 hits2->SetFillColor(8);
125 hits3->SetFillColor(38);
135 leg->AddEntry(hits1,
"no calibration");
136 leg->AddEntry(hits2,
"enough for T0 calib");
137 leg->AddEntry(hits3,
"enough for T0+RT calib");
138 leg->SetTextSize(0.04);
The documentation for this class was generated from the following file: