From 1604f8a1dc5005a4fc1a187c85f3f41627f912cb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Oct 2023 19:23:40 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- macros/REST_CreateHisto.C | 56 +++++++++++++++++++-------------------- scripts/launchBsub.py | 1 - scripts/vars.py | 1 - 3 files changed, 28 insertions(+), 30 deletions(-) diff --git a/macros/REST_CreateHisto.C b/macros/REST_CreateHisto.C index 91159d22b..dc299dc16 100644 --- a/macros/REST_CreateHisto.C +++ b/macros/REST_CreateHisto.C @@ -63,33 +63,33 @@ Int_t REST_CreateHisto(string varName, string rootFileName, TString histoName, i return 0; }; - // - // class REST_CreateHisto :public TRestTask { - // public: - // ClassDef(REST_CreateHisto, 1); - // - // REST_CreateHisto() { fNRequiredArgument = 3; } - // ~REST_CreateHisto() {} - // - // TString varName=""; - // TString rootFileName=""; - // TString histoName=""; - // int startVal = 0; - // int endVal = 1000; - // int bins = 1000; - // Double_t normFactor = 1; - // - // void RunTask(TRestManager*mgr) - // { - // REST_CreateHisto(varName, - // rootFileName, - // histoName, - // startVal, - // endVal, - // bins, - // normFactor); - // } - // - //}; +// +// class REST_CreateHisto :public TRestTask { +// public: +// ClassDef(REST_CreateHisto, 1); +// +// REST_CreateHisto() { fNRequiredArgument = 3; } +// ~REST_CreateHisto() {} +// +// TString varName=""; +// TString rootFileName=""; +// TString histoName=""; +// int startVal = 0; +// int endVal = 1000; +// int bins = 1000; +// Double_t normFactor = 1; +// +// void RunTask(TRestManager*mgr) +// { +// REST_CreateHisto(varName, +// rootFileName, +// histoName, +// startVal, +// endVal, +// bins, +// normFactor); +// } +// +//}; #endif diff --git a/scripts/launchBsub.py b/scripts/launchBsub.py index 556620c84..fdbf4aa18 100644 --- a/scripts/launchBsub.py +++ b/scripts/launchBsub.py @@ -54,7 +54,6 @@ cont = 0 for command in lines: - rpt = repeat while rpt > 0: f = open("/tmp/suehrjksui", "w") diff --git a/scripts/vars.py b/scripts/vars.py index bbd0017d0..a73b469a3 100644 --- a/scripts/vars.py +++ b/scripts/vars.py @@ -155,7 +155,6 @@ def checkinstalled(name): def initvar(): - print("processors in cpu : ", cpu_count()) opt["Make_Threads"] = str(cpu_count() / 2) if int(opt["Make_Threads"]) > 8: