Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fcal_cluster_space.C
Go to the documentation of this file.
1 // hnamepath: /fcal/clus2GMass
2 // hnamepath: /fcal/clusPhi
3 // hnamepath: /fcal/clusXYHigh
4 // hnamepath: /fcal/clusXYLow
5 
6 {
7 
8  TDirectory *dir = (TDirectory*)gDirectory->FindObjectAny("fcal");
9  if(dir) dir->cd();
10 
11  TH1I* clus2GMass = (TH1I*)gDirectory->FindObjectAny( "clus2GMass" );
12  TH1I* clusPhi = (TH1I*)gDirectory->FindObjectAny( "clusPhi" );
13  TH1I* clusXYHigh = (TH1I*)gDirectory->FindObjectAny( "clusXYHigh" );
14  TH1I* clusXYLow = (TH1I*)gDirectory->FindObjectAny( "clusXYLow" );
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( clus2GMass ){
29 
30  clus2GMass->SetStats( 0 );
31  clus2GMass->SetFillColor( kBlue );
32  c1->cd( 1 );
33  clus2GMass->Draw();
34  TLine *line_pi0Mass=new TLine(0.1349766,0,0.1349766,clus2GMass->GetMaximum());
35  line_pi0Mass->SetLineColor(kRed);
36  line_pi0Mass->Draw("same");
37  }
38 
39  if( clusPhi ){
40 
41  clusPhi->SetStats( 0 );
42  clusPhi->SetFillColor( kBlue );
43  c1->cd( 2 );
44  clusPhi->Draw();
45  }
46 
47  if( clusXYLow ){
48 
49  clusXYLow->SetStats( 0 );
50  c1->cd( 3 );
51  clusXYLow->Draw( "colz" );
52  }
53 
54  if( clusXYHigh ){
55 
56  clusXYHigh->SetStats( 0 );
57  c1->cd( 4 );
58  clusXYHigh->Draw( "colz" );
59  }
60 
61 }
Double_t c1[2][NMODULES]
Definition: tw_corr.C:68
TDirectory * dir
Definition: bcal_hist_eff.C:31