diff --git a/subsystems/intt/INTTChipDrawer.cc b/subsystems/intt/INTTChipDrawer.cc index c5e6339..aad3248 100644 --- a/subsystems/intt/INTTChipDrawer.cc +++ b/subsystems/intt/INTTChipDrawer.cc @@ -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(file1->Get("hist_reference")); + hist2 = dynamic_cast(file2->Get("hist_reference")); } INTTChipDrawer::~INTTChipDrawer() @@ -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 @@ -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(); diff --git a/subsystems/intt/INTTChipDrawer.h b/subsystems/intt/INTTChipDrawer.h index 33cb0c8..204cbef 100644 --- a/subsystems/intt/INTTChipDrawer.h +++ b/subsystems/intt/INTTChipDrawer.h @@ -2,6 +2,8 @@ #define INTT_CHIP_DRAWER_H #include +#include +#include class TPad; @@ -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