Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fcal_cluster_et.C
Go to the documentation of this file.
1 // hnamepath: /fcal/clusN
2 // hnamepath: /fcal/clusE
3 // hnamepath: /fcal/clusT0
4 // hnamepath: /fcal/clusTmT0
5 
6 {
7 
8  TDirectory *dir = (TDirectory*)gDirectory->FindObjectAny("fcal");
9  if(dir) dir->cd();
10 
11  TH1I* clusN = (TH1I*)gDirectory->FindObjectAny( "clusN" );
12  TH1I* clusE = (TH1I*)gDirectory->FindObjectAny( "clusE" );
13  TH1I* clusT0 = (TH1I*)gDirectory->FindObjectAny( "clusT0" );
14  TH1I* clusTmT0 = (TH1I*)gDirectory->FindObjectAny( "clusTmT0" );
15 
16  if(gPad == NULL){
17 
18  TCanvas *c1 = new TCanvas( "c1", "FCAL Monitor", 800, 800 );
19  c1->cd(0);
20  c1->Draw();
21  c1->Update();
22  }
23 
24  if( !gPad ) return;
25  TCanvas* c1 = gPad->GetCanvas();
26  c1->Divide( 2, 2 );
27 
28  if( clusN ){
29 
30  clusN->SetStats( 0 );
31  clusN->SetFillColor( kBlue );
32  c1->cd( 1 );
33  clusN->Draw();
34  }
35 
36  if( clusE ){
37 
38  clusE->SetStats( 0 );
39  clusE->SetFillColor( kBlue );
40  c1->cd( 2 );
41  clusE->Draw();
42  }
43 
44  if( clusT0 ){
45 
46  clusT0->SetStats( 0 );
47  clusT0->SetFillColor( kBlue );
48  c1->cd( 3 );
49  clusT0->Draw();
50  }
51 
52  if( clusTmT0 ){
53 
54  clusTmT0->SetStats( 0 );
55  clusTmT0->SetFillColor( kBlue );
56  c1->cd( 4 );
57  clusTmT0->Draw();
58  }
59 
60 }
Double_t c1[2][NMODULES]
Definition: tw_corr.C:68
TDirectory * dir
Definition: bcal_hist_eff.C:31