28 gStyle->SetOptFit(0000);
29 gStyle->SetOptStat(0000);
30 gStyle->SetPadLeftMargin(0.20);
31 gStyle->SetPadRightMargin(0.05);
32 gStyle->SetPadTopMargin(0.1);
33 gStyle->SetPadBottomMargin(0.15);
36 std::cout <<
"Opening file: " << inFile << std::endl;
37 TFile*
file = TFile::Open(inFile.c_str(),
"read");
40 std::vector<std::string> paramNames
41 = {
"d0",
"z0",
"phi",
"theta",
"qop",
"t"};
43 map<string, TH1F*> res;
44 map<string, TH1F*> pull;
47 for (
const auto& par: paramNames) {
49 res[par] = (TH1F*) file->Get(Form(
"res_%s", par.c_str()));
51 pull[par] = (TH1F*) file->Get(Form(
"pull_%s", par.c_str()));
60 TCanvas*
c1 =
new TCanvas(
"c1",
"c1", 1200, 800);
62 for (
size_t ipar = 0; ipar < paramNames.size(); ipar++) {
64 res[paramNames.at(ipar)]->Draw(
"");
68 TCanvas*
c2 =
new TCanvas(
"c2",
"c2", 1200, 800);
70 for (
size_t ipar = 0; ipar < paramNames.size(); ipar++) {
72 pull[paramNames.at(ipar)]->Draw(
"");
80 hist->GetXaxis()->SetTitleSize(0.05);
81 hist->GetYaxis()->SetTitleSize(0.05);
82 hist->GetXaxis()->SetLabelSize(0.05);
83 hist->GetYaxis()->SetLabelSize(0.05);
84 hist->GetXaxis()->SetTitleOffset(1.);
85 hist->GetYaxis()->SetTitleOffset(1.8);
86 hist->GetXaxis()->SetNdivisions(505);
87 hist->SetMarkerStyle(20);
88 hist->SetMarkerSize(0.8);
89 hist->SetLineWidth(2);
91 hist->SetLineColor(1);
92 hist->SetMarkerColor(
color);