StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StiMaker
macros
layerOcc.C
1
layerOcc(TString baseN)
2
{
3
4
5
TH1D *layerOcc =
new
TH1D(
"layerOcc"
,
""
,55,0,54.);
6
TString thisL;
7
TH1D *hI=0;
8
for
(
int
i=0; i<55;i++)
9
{
10
thisL=baseN+i;
11
hI=(TH1D*)gDirectory->Get(thisL);
12
13
14
if
(hI) layerOcc->SetBinContent(i,hI->GetEntries());
15
}
16
17
layerOcc->Draw();
18
19
}
Generated by
1.8.5