Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ccal_cluster_space.C
Go to the documentation of this file.
1 // hnamepath: /ccal/clus2GMass
2 // hnamepath: /ccal/clusPhi
3 // hnamepath: /ccal/clusXYHigh
4 // hnamepath: /ccal/clusOccEmax
5 
6 {
7  TDirectory *dir = (TDirectory*)gDirectory->FindObjectAny("ccal");
8  if(dir) dir->cd();
9 
10  TH1I* clus2GMass = (TH1I*)gDirectory->FindObjectAny( "clus2GMass" );
11  TH1I* clusPhi = (TH1I*)gDirectory->FindObjectAny( "clusPhi" );
12  TH1I* clusXYHigh = (TH1I*)gDirectory->FindObjectAny( "clusXYHigh" );
13  TH1I* clusOccEmax = (TH1I*)gDirectory->FindObjectAny( "clusOccEmax" );
14 
15  if(gPad == NULL){
16 
17  TCanvas *c1 = new TCanvas( "c1", "CCAL Monitor", 800, 800 );
18  c1->cd(0);
19  c1->Draw();
20  c1->Update();
21  }
22 
23  if( !gPad ) return;
24  TCanvas* c1 = gPad->GetCanvas();
25  c1->Divide( 2, 2 );
26 
27  if( clus2GMass ){
28 
29  clus2GMass->SetStats( 0 );
30  clus2GMass->SetFillColor( kBlue );
31  c1->cd( 1 );
32  clus2GMass->GetXaxis()->SetRangeUser(0,0.5);
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( clusXYHigh ){
48 
49  clusXYHigh->SetStats( 0 );
50  TPad *p3 = (TPad*)c1->cd( 3 );
51  p3->SetLogz();
52  //c1->cd( 3 );
53  clusXYHigh->Draw( "colz" );
54  }
55 
56  if( clusOccEmax ){
57 
58  clusOccEmax->SetStats( 0 );
59  clusOccEmax->SetTitle("CCAL Occup. for (E_{max} > 3 GeV) & (E_{cluster}-E_{max} < 1 GeV)");
60  c1->cd( 4 );
61  clusOccEmax->Draw( "colz" );
62  }
63 
64 }
Double_t c1[2][NMODULES]
Definition: tw_corr.C:68
TDirectory * dir
Definition: bcal_hist_eff.C:31