1mm scintillating fibre tracker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.5 KiB

3 years ago
  1. {
  2. gROOT->Reset();
  3. gROOT->Reset();
  4. gStyle.SetStripDecimals(0);
  5. gStyle.SetPadLeftMargin(.15);
  6. gStyle.SetPadRightMargin(.05);
  7. gStyle.SetPadBottomMargin(.15);
  8. gStyle->SetOptStat(1);
  9. gStyle->SetOptFit(0);
  10. gStyle->SetOptTitle(1);
  11. TCanvas * c1 = new TCanvas("c1","multipads",800,800);
  12. gStyle->SetPadBorderMode(0);
  13. gStyle->SetFrameBorderMode(0);
  14. Float_t small = 1e-5;
  15. c1->Divide(1,3,small,small);
  16. TFile *_file0 = TFile::Open("Sept142015/outFile_5layer_0.275mm.root");
  17. TH1F *h1 = new TH1F("h1","5 layer 0.275mm",200,0.4,1.4);
  18. h1->GetYaxis()->SetRangeUser(0,5500);
  19. TFile *_file1 = TFile::Open("Sept142015/outFile_6layer_0.275mm.root");
  20. TH1F *h2 = new TH1F("h2","6 layer 0.275mm",200,0.4,1.4);
  21. h2->GetYaxis()->SetRangeUser(0,5500);
  22. TFile *_file2 = TFile::Open("Sept142015/outFile_7layer_0.300mm.root");
  23. TH1F *h3 = new TH1F("h3","7 layer 0.300mm",200,0.4,1.4);
  24. h3->GetYaxis()->SetRangeUser(0,5500);
  25. TFile *_file3 = TFile::Open("Sept142015/outFile_7layer_0.325mm.root");
  26. TH1F *h4 = new TH1F("h4","7 layer 0.325mm",200,0.4,1.4);
  27. h4->GetYaxis()->SetRangeUser(0,5500);
  28. TFile *_file4 = TFile::Open("Sept142015/outFile_8layer_0.350mm.root");
  29. TH1F *h5 = new TH1F("h5","8 layer 0.350mm",200,0.4,1.4);
  30. h5->GetYaxis()->SetRangeUser(0,5500);
  31. TFile *_file5 = TFile::Open("Sept142015/outFile_8layer_0.375mm.root");
  32. TH1F *h6 = new TH1F("h6","8 layer 0.375mm",200,0.4,1.4);
  33. h6->GetYaxis()->SetRangeUser(0,5500);
  34. _file0->cd();
  35. EnergyTrack->Project("h1","trackL");
  36. _file1->cd();
  37. EnergyTrack->Project("h2","trackL");
  38. _file2->cd();
  39. EnergyTrack->Project("h3","trackL");
  40. _file3->cd();
  41. EnergyTrack->Project("h4","trackL");
  42. _file4->cd();
  43. EnergyTrack->Project("h5","trackL");
  44. _file5->cd();
  45. EnergyTrack->Project("h6","trackL");
  46. c1->cd(1);
  47. gPad->SetBottomMargin(small);
  48. _file0->cd();
  49. h1->Draw();
  50. c1->cd(2);
  51. gPad->SetTopMargin(small);
  52. gPad->SetBottomMargin(small);
  53. h2->Draw();
  54. c1->cd(3);
  55. gPad->SetTopMargin(small);
  56. h3->Draw();
  57. TCanvas * c2 = new TCanvas("c2","multipads",800,800);
  58. gStyle->SetPadBorderMode(0);
  59. gStyle->SetFrameBorderMode(0);
  60. Float_t small = 1e-5;
  61. c2->Divide(1,3,small,small);
  62. c2->cd(1);
  63. gPad->SetTopMargin(small);
  64. gPad->SetBottomMargin(small);
  65. h4->Draw();
  66. c2->cd(2);
  67. gPad->SetTopMargin(small);
  68. gPad->SetBottomMargin(small);
  69. h5->Draw();
  70. c2->cd(3);
  71. gPad->SetTopMargin(small);
  72. gPad->SetTickx();
  73. h6->Draw();
  74. }