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
StJetMaker
StarTrigSimuSetup
L0
2006
EemcFeePed
03.07.2006
pedhist.C
1
pedhist (
int
crate=3,
int
group=2){
2
3
//crate is crate number
4
//group is group of 16 FEE ch in crate
5
// group 0=ch0-15
6
// group 1=ch16-31
7
8
gStyle->SetOptStat(1111111);
9
char
*name=
"feePed.hist.root"
;
10
11
TFile *f=
new
TFile(name);
12
TCanvas *c=
new
TCanvas(
"bb"
,
"ccc"
,800,800);
13
14
int
start=group*16;
15
int
stop=start+16;
16
17
c->Divide(4,4);
18
int
r=0;
19
int
i=crate-3;
20
int
j;
21
for
(j=start;j<stop;j++) {
22
r++;
23
c->cd(r);
24
char
tt1[100];
25
sprintf(tt1,
"cr%d_ch%03d"
,crate,j);
26
TH1F* h= (TH1F*) f->Get(tt1);
27
printf(
"=%s= %p\n"
,tt1,h);
28
h->Draw();
29
h->SetAxisRange(0,100);
30
gPad->SetLogy();
31
}
32
}
Generated by
1.8.5