10 TFile *
infile =
new TFile(Form(
"MvtxPrototype2Eval-%08d-0200.root",runnum),
"read");
13 TH2D *h2d_hit[nstave];
15 for (
int is=0; is<nstave; is++){
16 h2d_hit[is] = (TH2D*)infile->Get(Form(
"h2d_hit_stave%d",is));
20 TCanvas *c1 =
new TCanvas(
"c1",
"c1", 300*nchip, 150*nstave);
23 for (
int istave=0; istave<nstave; istave++){
26 gPad->SetRightMargin(0.01);
27 gPad->SetTopMargin(0.05);
29 htmp = (TH1D*)h2d_hit[istave];
31 h2d_hit[istave]->Draw(
"box");
33 TLatex *
tex =
new TLatex(100,400,Form(
"Stave%d", istave));
34 tex->SetTextSize(0.07);
40 c1->SaveAs(Form(
"./20190503/hitmap_%08d.pdf", runnum));