84 TFile* oldFile = gFile;
85 TDirectory* oldDir = gDirectory;
87 vector<TH1*> hPtCut, hTtCut;
91 for (
unsigned int i = 0; i <
fMeanFiles.size(); i++) {
92 TFile* f =
new TFile(
fMeanFiles[i].c_str(),
"READ");
93 LOG_IF(fatal, !f) <<
"Could not open file " <<
fMeanFiles[i].c_str();
95 hPtCut[i] = f->Get<TH1D>(
"fh_bg_minv_ptcut")->Clone();
96 LOG_IF(fatal, !hPtCut[i]) <<
"Could not get histogram " << hPtCut[i]->GetName() <<
"from file "
98 hPtCut[i]->Rebin(nRebin);
99 hPtCut[i]->SetMinimum(1e-6);
101 hTtCut[i] = f->Get<TH1D>(
"fh_bg_minv_ttcut")->Clone();
102 LOG_IF(fatal, !hTtCut[i]) <<
"Could not get histogram " << hTtCut[i]->GetName() <<
"from file "
104 hTtCut[i]->Rebin(nRebin);
105 hPtCut[i]->SetMinimum(1e-6);
108 fHM[0]->CreateCanvas(
"lmvm_study_minv_bg_ttcut",
"lmvm_study_minv_bg_ttcut", 600, 600);
111 fHM[0]->CreateCanvas(
"lmvm_study_minv_bg_ptcut",
"lmvm_study_minv_bg_ptcut", 600, 600);
void DrawH1(TH1 *hist, HistScale logx, HistScale logy, const string &drawOpt, Int_t color, Int_t lineWidth, Int_t lineStyle, Int_t markerSize, Int_t markerStyle)
void DrawFromFile(const std::vector< std::string > &fileNames, const std::vector< std::string > &fileNamesMean, const std::vector< std::string > &studyNames, const std::string &outputDir="")
Implement functionality of drawing histograms in the macro from the specified files,...