Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ccal_monitor.C
Go to the documentation of this file.
1 // hnamepath: /ccal/comp_cratio
2 // hnamepath: /ccal/comp_cfbratio
3 // hnamepath: /ccal/comp_cfb2d
4 // hnamepath: /ccal/comp_pfpc
5 // hnamepath: /highlevel/PSPairEnergy
6 // hnamepath: /highlevel/L1bits_gtp
7 // hnamepath: /highlevel/EventInfo
8 
9 
10 {
11 
12  TDirectory *locdir = (TDirectory*)gDirectory->FindObjectAny("ccal");
13  TDirectory *highleveldir = (TDirectory*)gDirectory->FindObjectAny("highlevel");
14  if(dir) dir->cd();
15 
16  TH1I* hbeamX = (TH1I*)gDirectory->FindObjectAny( "beamX" );
17  TH1I* hbeamY = (TH1I*)gDirectory->FindObjectAny( "beamY" );
18 
19  if(gPad == NULL){
20  TCanvas *c1 = new TCanvas( "c1", "CCAL Compton Monitor", 800, 800 );
21  c1->cd(0);
22  c1->Draw();
23  c1->Update();
24  }
25 
26  if( !gPad ) return;
27  TCanvas* c1 = gPad->GetCanvas();
28  c1->Divide( 2, 2 );
29 
30  if( beamX ){
31 
32 
33 
34 
35 
36 
37  }
38 
39  if( comp_cfbratio ){
40 
41  comp_cfbratio->SetStats( 0 );
42  //comp_cfbratio->SetFillColor( kBlue );
43  comp_cfbratio->GetXaxis()->SetTitle("(E_{ccal}+E_{fcal}-E_{beam}) / E_{comp}");
44  comp_cfbratio->GetXaxis()->SetTitleOffset(1.3);
45  comp_cfbratio->SetTitle("Energy Conservation in Compton Events");
46  TPad *p2 = (TPad*)c1->cd( 3 );
47  p2->SetGrid();
48  //c1->cd( 2 );
49  comp_cfbratio->Draw();
50  }
51 
52  if( comp_pfpc ){
53 
54  comp_pfpc->SetStats( 0 );
55  comp_pfpc->SetFillColor( kBlue );
56  c1->cd( 2 );
57  comp_pfpc->Draw();
58  }
59 
60  if( comp_cfb2d ){
61 
62  comp_cfb2d->SetStats( 0 );
63  comp_cfb2d->GetXaxis()->SetTitle("(E_{ccal,comp}+E_{fcal,comp}) / E_{beam}");
64  comp_cfb2d->GetYaxis()->SetTitle("(E_{ccal}+E_{fcal}) / E_{beam}");
65  comp_cfb2d->GetXaxis()->SetTitleOffset(1.3);
66  comp_cfb2d->GetYaxis()->SetTitleOffset(1.3);
67  c1->cd( 4 );
68  comp_cfb2d->Draw("LEGO3");
69  }
70 
71 }
Double_t c1[2][NMODULES]
Definition: tw_corr.C:68
TDirectory * dir
Definition: bcal_hist_eff.C:31
TDirectory * highleveldir
Definition: ccal_monitor.C:13