AlcapDAQ  1
Functions | Variables
plot_max.c File Reference

Go to the source code of this file.

Functions

gROOT SetStyle ("Plain")
 
gStyle SetOptStat (0)
 
gStyle SetOptFit (1111)
 
c1 Divide (3, 2)
 
 for (int j=0;j< 6;j++)
 

Variables

char title [80]
 
TCanvas * c1 = new TCanvas()
 
int channels [] = { 0, 1, 2, 3, 4, 5, 6, 7}
 

Function Documentation

c1 Divide ( ,
 
)
for ( )

Definition at line 12 of file plot_max.c.

References gROOT, i, and sprintf().

12  {
13  int i = channels[j];
14  c1->cd(j+1);
15  TF1 *gaus = (TF1*)gROOT->GetFunction("gaus");
16  gaus->SetLineColor(kRed);
17  gaus->SetLineWidth(1);
18  sprintf(title, "py%d", i);
19  TH1 *py = maxSample->ProjectionY(title,i+1,i+1);
20  sprintf(title, "Channel %d", i);
21  py->SetTitle(title);
22 // py->GetXaxis()->SetRange(regions[i-1] - 2000, regions[i-1] + 2000);
23  py->Draw("E1");
24 // py->Fit("gaus","LR","SAME",regions[i-1] - 2000, regions[i-1] + 2000);
25 }
gStyle SetOptFit ( 1111  )
gStyle SetOptStat ( )
gROOT SetStyle ( "Plain"  )

Variable Documentation

TCanvas* c1 = new TCanvas()

Definition at line 6 of file plot_max.c.

Referenced by A3818UpgradeFromFile(), and A3818UpgradeFromMem().

int channels[] = { 0, 1, 2, 3, 4, 5, 6, 7}

Definition at line 9 of file plot_max.c.

Referenced by epics_ca_init().

char title[80]