Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions subsystems/intt/INTTChipDrawer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
INTTChipDrawer::INTTChipDrawer(std::string const& name)
: SingleCanvasDrawer(name)
{
histprefix = "h_InttClusterQA_";
histprefix = "h_InttClusterQA_";
file1 = TFile::Open("templete_file/physics_daq30_templete.root", "READ");
file2 = TFile::Open("templete_file/physics_daq35_templete.root", "READ");
hist1 = dynamic_cast<TH1F*>(file1->Get("hist_reference"));
hist2 = dynamic_cast<TH1F*>(file2->Get("hist_reference"));
}

INTTChipDrawer::~INTTChipDrawer()
Expand Down Expand Up @@ -98,6 +102,15 @@ int INTTChipDrawer::DrawCanvas()
h_clusSize->SetYTitle("Normalized Entries");
h_clusSize->Scale(1./h_clusSize->Integral());
h_clusSize->DrawCopy();
if(cl->RunNumber()<49753){
hist1->SetMarkerStyle(0);
hist1->Draw("HIST E SAME");
hist1->SetLineColor(kRed);
}else{
hist2->SetMarkerStyle(0);
hist2->Draw("HIST E SAME");
hist2->SetLineColor(kRed);
}
gPad->SetRightMargin(0.15);
}
else
Expand All @@ -113,7 +126,7 @@ int INTTChipDrawer::DrawCanvas()
PrintRun.SetTextAlign(23); // center/top alignment
std::ostringstream runnostream1;
std::string runstring1;
// runnostream1 << Name() << "_intt Info Run " << cl->RunNumber();
//runnostream1 << Name() << "_intt Info Run " << cl->RunNumber();
runnostream1 << "INTTQA_intt Info Run " << cl->RunNumber();
runstring1 = runnostream1.str();
transparent->cd();
Expand Down
7 changes: 7 additions & 0 deletions subsystems/intt/INTTChipDrawer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#define INTT_CHIP_DRAWER_H

#include <qahtml/SingleCanvasDrawer.h>
#include <TFile.h>
#include<TH1F.h>

class TPad;

Expand All @@ -23,6 +25,11 @@ class INTTChipDrawer : public SingleCanvasDrawer
TPad *transparent{nullptr};
TPad *Pad[4]{nullptr};
const char* histprefix;

TFile* file1;
TFile* file2;
TH1F* hist1;
TH1F* hist2;
};

#endif//INTT_CHIP_DRAWER_H