18 #include <TProfile2D.h> 54 max[0] = h0->GetMaximum();
55 max[1] = h1->GetMaximum();
56 max[2] = h2->GetMaximum();
57 max[3] = h3->GetMaximum();
74 double const fdmcg100 = 1;
77 TFile *fmc_gain100 =
new TFile(
"FD_WCellResponse_mcg100.root");
78 TH2D *hfdmc_gain100_PECorrWX1 = (TH2D*)fmc_gain100->Get(
"hPECorrCellPlaneX");
79 TH2D *hfdmc_gain100_PECorrWY1 = (TH2D*)fmc_gain100->Get(
"hPECorrCellPlaneY");
89 TCanvas *cFDMC_PlaneCellX_mcg100 =
new TCanvas(
"cFDMC_PlaneCellX",
"cFDMC_PlaneCellX", 700, 500);
90 cFDMC_PlaneCellX_mcg100->SetRightMargin(0.15);
91 hfdmc_gain100_PECorrWX1->GetXaxis()->SetTitle(
"W, x-view (cm)");
92 hfdmc_gain100_PECorrWX1->GetYaxis()->SetTitle(
"Cell");
93 hfdmc_gain100_PECorrWX1->GetZaxis()->SetRangeUser(0,80);
94 hfdmc_gain100_PECorrWX1->GetZaxis()->SetTitle(
"PECorr/cm");
96 hfdmc_gain100_PECorrWX1->Draw(
"colz");
100 cFDMC_PlaneCellX_mcg100 ->
Print(
"cFDmcgain100_WCellPECorrX.pdf");
101 cFDMC_PlaneCellX_mcg100 ->
Print(
"cFDmcgain100_WCellPECorrX.png");
double GetHistMax(TH1 *h0, TH1 *h1, TH1 *h2, TH1 *h3)
void CenterTitles(TH1 *h)
void Print(std::string prefix, std::string name, std::string suffix="")
T max(sqlite3 *const db, std::string const &table_name, std::string const &column_name)