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
StEEmcPool
StRFEmcTrigger
macros
plTrg.C
1
/*
2
Plot Trgger simu results
3
*/
4
5
void
plTrg(
int
page=1,
int
keve=1)
6
{
7
TString ifile=
"st_physics_1164056_raw_0001.hist.root"
;
8
ifile=
"aa2.hist.root"
;
// ifile="save."+ifile;
9
gROOT->Reset();
10
gSystem->Load(
"St_base"
);
11
gROOT->LoadMacro(
"/afs/rhic.bnl.gov/star/spin/balewski/root_macros/JBRoot.C"
);
12
13
// Connect the input file and get the histogram
14
TList *top = Johf(ifile.Data());
15
16
TString dir1=
"RFTrigB"
;
17
18
TIter Hi1(Jcd((dir1+
"Hist"
).Data(),top));
19
20
TPad *pd1=Jcan(500,400,
"file="
+ifile+
", dir="
+dir1, .99);
21
22
switch
(page) {
23
case
1: {
24
pd1->Divide(2,3);
25
const
char
*name[]={
"bHT"
,
"eHT"
,
"bJP"
,
"eJP"
,
"bTot"
,
"eTot"
};
26
27
for
(
int
k=0;k<6;k++) {
28
Jpl(name[k],k+1, Hi1,pd1);
29
gPad->SetLogy();
30
}
31
}
break
;
32
default
:
33
}
34
}
Generated by
1.8.5