From 61e58300c4505ae878da3fc6b1db296d22af7059 Mon Sep 17 00:00:00 2001 From: Norbert Herrmann <n.herrmann@physi.uni-heidelberg.de> Date: Wed, 14 Apr 2021 10:18:51 +0200 Subject: [PATCH] add option for digi rates --- macro/beamtime/pl_all_CluRateRatio.C | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/macro/beamtime/pl_all_CluRateRatio.C b/macro/beamtime/pl_all_CluRateRatio.C index 925ea19a5d..4852362c69 100644 --- a/macro/beamtime/pl_all_CluRateRatio.C +++ b/macro/beamtime/pl_all_CluRateRatio.C @@ -50,6 +50,7 @@ void pl_all_CluRateRatio(Int_t iRef = 500, Int_t iNSt = 3, Double_t Tstart = 0., switch (iMode) { case 0: hname = Form("cl_SmT%01d_sm%03d_rpc%03d_rate", iSmType, iSm, iRp); break; case 1: hname = Form("cl_SmT%01d_sm%03d_rpc%03d_rate10s", iSmType, iSm, iRp); break; + case 2: hname = Form("cl_SmT%01d_sm%03d_rpc%03d_digirate", iSmType, iSm, iRp); break; } h = (TH1*) gROOT->FindObjectAny(hname); if (h != NULL) { @@ -101,6 +102,7 @@ void pl_all_CluRateRatio(Int_t iRef = 500, Int_t iNSt = 3, Double_t Tstart = 0., switch (iMode) { case 0: hname = Form("cl_SmT%01d_sm%03d_rpc%03d_rate", iSmType, iSm, iRp); break; case 1: hname = Form("cl_SmT%01d_sm%03d_rpc%03d_rate10s", iSmType, iSm, iRp); break; + case 2: hname = Form("cl_SmT%01d_sm%03d_rpc%03d_digirate", iSmType, iSm, iRp); break; } h = (TH1*) gROOT->FindObjectAny(hname); if (h != NULL) { @@ -145,6 +147,7 @@ void pl_all_CluRateRatio(Int_t iRef = 500, Int_t iNSt = 3, Double_t Tstart = 0., switch (iMode) { case 0: hname = Form("cl_SmT%01d_sm%03d_rpc%03d_rate", iSmType, iSm, iRp); break; case 1: hname = Form("cl_SmT%01d_sm%03d_rpc%03d_rate10s", iSmType, iSm, iRp); break; + case 2: hname = Form("cl_SmT%01d_sm%03d_rpc%03d_digirate", iSmType, iSm, iRp); break; } h = (TH1*) gROOT->FindObjectAny(hname); if (h != NULL) { @@ -188,6 +191,7 @@ void pl_all_CluRateRatio(Int_t iRef = 500, Int_t iNSt = 3, Double_t Tstart = 0., } if (iSt == 0) { hRat->SetMinimum(1.E-2); + hRat->SetMaximum(2.); hRat->Draw("L E"); hRat->GetXaxis()->SetRangeUser(Tstart, Tend); } @@ -198,7 +202,7 @@ void pl_all_CluRateRatio(Int_t iRef = 500, Int_t iNSt = 3, Double_t Tstart = 0., if (iCol == 5) iCol++; // skip yellow //h->UseCurrentStyle(); - gPad->SetLogy(); + //gPad->SetLogy(); } else { cout << "Histogram " << hname << " not existing. " << endl; -- GitLab