Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eoin Clerkin
cbmroot_geometry
Commits
55b769bf
Commit
55b769bf
authored
Nov 26, 2020
by
Norbert Herrmann
Browse files
remove pl_trk_walk.C
parent
00714b01
Changes
1
Hide whitespace changes
Inline
Side-by-side
macro/beamtime/pl_trk_walk.C
deleted
100644 → 0
View file @
00714b01
void
pl_trk_walk
(
Int_t
iType
=
0
,
Int_t
iSm
=
0
,
Int_t
iRpc
=
0
,
Int_t
iSide
=
0
)
{
// TCanvas *can = new TCanvas("can22","can22");
// can->Divide(2,2);
TCanvas
*
can
=
new
TCanvas
(
"can"
,
"can"
,
50
,
0
,
800
,
800
);
can
->
Divide
(
4
,
8
);
gPad
->
SetFillColor
(
0
);
gStyle
->
SetPalette
(
1
);
gStyle
->
SetOptStat
(
kTRUE
);
gROOT
->
cd
();
gROOT
->
SetDirLevel
(
1
);
TH1
*
h
;
TH1
*
h1
;
TH2
*
h2
;
Int_t
iCan
=
1
;
for
(
Int_t
iCh
=
0
;
iCh
<
32
;
iCh
++
)
{
if
(
iCan
==
36
)
iCan
=
1
;
can
->
cd
(
iCan
++
);
gROOT
->
cd
();
TString
hname
=
Form
(
"cal_SmT%d_sm%03d_rpc%03d_Ch%03d_S%d_Walk"
,
iType
,
iSm
,
iRpc
,
iCh
,
iSide
);
h2
=
(
TH2
*
)
gROOT
->
FindObjectAny
(
hname
);
if
(
h2
!=
NULL
)
{
h2
->
Draw
(
"colz"
);
gPad
->
SetLogz
();
// gPad->SetGridx();
// gPad->SetGridy();
}
else
{
cout
<<
hname
<<
" not found"
<<
endl
;
}
}
can
->
SaveAs
(
Form
(
"pl_trk_walk_%d%d%d_%d.pdf"
,
iType
,
iSm
,
iRpc
,
iSide
));
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment