Skip to content

Commit 5059de6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b44dc30 commit 5059de6

12 files changed

Lines changed: 46 additions & 56 deletions

File tree

macros/REST_CreateHisto.C

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -63,33 +63,33 @@ Int_t REST_CreateHisto(string varName, string rootFileName, TString histoName, i
6363
return 0;
6464
};
6565

66-
//
67-
// class REST_CreateHisto :public TRestTask {
68-
// public:
69-
// ClassDef(REST_CreateHisto, 1);
70-
//
71-
// REST_CreateHisto() { fNRequiredArgument = 3; }
72-
// ~REST_CreateHisto() {}
73-
//
74-
// TString varName="";
75-
// TString rootFileName="";
76-
// TString histoName="";
77-
// int startVal = 0;
78-
// int endVal = 1000;
79-
// int bins = 1000;
80-
// Double_t normFactor = 1;
81-
//
82-
// void RunTask(TRestManager*mgr)
83-
// {
84-
// REST_CreateHisto(varName,
85-
// rootFileName,
86-
// histoName,
87-
// startVal,
88-
// endVal,
89-
// bins,
90-
// normFactor);
91-
// }
92-
//
93-
//};
66+
//
67+
// class REST_CreateHisto :public TRestTask {
68+
// public:
69+
// ClassDef(REST_CreateHisto, 1);
70+
//
71+
// REST_CreateHisto() { fNRequiredArgument = 3; }
72+
// ~REST_CreateHisto() {}
73+
//
74+
// TString varName="";
75+
// TString rootFileName="";
76+
// TString histoName="";
77+
// int startVal = 0;
78+
// int endVal = 1000;
79+
// int bins = 1000;
80+
// Double_t normFactor = 1;
81+
//
82+
// void RunTask(TRestManager*mgr)
83+
// {
84+
// REST_CreateHisto(varName,
85+
// rootFileName,
86+
// histoName,
87+
// startVal,
88+
// endVal,
89+
// bins,
90+
// normFactor);
91+
// }
92+
//
93+
//};
9494

9595
#endif

macros/REST_RefitGainMap.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class GainMapRefitter {
104104
// Class that inherits from TFitEditor to be able to access the protected methods of TFitEditor
105105
class TFitEditor2 : public TFitEditor {
106106
public:
107-
TFitEditor2(TVirtualPad* pad, TObject* obj) : TFitEditor(pad, obj){};
107+
TFitEditor2(TVirtualPad* pad, TObject* obj) : TFitEditor(pad, obj) {};
108108
virtual ~TFitEditor2() {}
109109

110110
// making public the protected method GetFitObjectListOfFunctions()

pull-submodules.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ def print_help():
6969

7070
if sys.argv[x + 1] == "--lfna":
7171
lfna = True
72-
print(
73-
"""\
72+
print("""\
7473
Adding submodules from lfna repositories.
7574
Be aware that you should add your local system public ssh to your GitLab and/or GitHub account!
7675
It is usually placed at ~/.ssh/id_rsa.pub.
@@ -80,21 +79,18 @@ def print_help():
8079
Once you do that, only repositories where you have access rights will be pulled.
8180
8281
If no password is requested everything went fine!
83-
"""
84-
)
82+
""")
8583

8684
if sys.argv[x + 1] == "--sjtu":
8785
sjtu = True
8886
print(
8987
"Adding submodules from sjtu repositories. You may be asked to enter password for it."
9088
)
9189
if sys.argv[x + 1].find("--latest") >= 0:
92-
print(
93-
"""\
90+
print("""\
9491
Pulling latest submodules from their git repository, instead of the version recorded by REST.
9592
This may cause the submodules to be uncompilable.
96-
"""
97-
)
93+
""")
9894
latest = True
9995
if sys.argv[x + 1].find("--latest:") >= 0:
10096
fbName = sys.argv[x + 1][9:]
@@ -128,12 +124,10 @@ def main():
128124
# --recursive'.format(PROJECT_ROOT))
129125

130126
if force and not dontask:
131-
answer = input(
132-
"""\
127+
answer = input("""\
133128
This will override local changes on the files. And will bring your local repository to a clean state
134129
Are you sure to proceed? (y/n)
135-
"""
136-
)
130+
""")
137131
if answer != "y":
138132
sys.exit(0)
139133

scripts/generateVersionHeader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
p = subprocess.Popen(
5454
["git branch"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True
5555
)
56-
(out, err) = p.communicate()
56+
out, err = p.communicate()
5757

5858
if len(str(err)) > 3:
5959
print(

scripts/installAllTags.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
# You might need to add some environment definitions needed to build REST
2626
os.environ["GARFIELD_HOME"] = "/programas/garfield"
27-
os.environ[
28-
"LD_LIBRARY_PATH"
29-
] = "/programas/root34.32/root/lib:/programas/geant4.10.02.p02-install/lib::/programas/garfield/lib"
27+
os.environ["LD_LIBRARY_PATH"] = (
28+
"/programas/root34.32/root/lib:/programas/geant4.10.02.p02-install/lib::/programas/garfield/lib"
29+
)
3030
os.environ["PATH"] = os.environ["PATH"] + ":/programas/root34.32/root/bin/"
3131
# ===================================================
3232

scripts/scriptsGUI.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import vars
1212
import subprocess
1313

14-
1514
version = "0.2"
1615

1716
vars.initvar()

scripts/vars.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import platform
77
import subprocess
88

9-
109
opt = {
1110
"Install_Path": os.environ["HOME"] + "/REST_Install",
1211
"Source_Path": os.path.abspath(".") + "/../",

source/framework/analysis/inc/TRestDataSetGainMap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,12 @@ class TRestDataSetGainMap : public TRestMetadata {
283283
void Initialize();
284284

285285
Module() {}
286-
Module(const TRestDataSetGainMap& parent) : p(&parent){};
286+
Module(const TRestDataSetGainMap& parent) : p(&parent) {};
287287
Module(const TRestDataSetGainMap& parent, const Int_t planeId, const Int_t moduleId) : p(&parent) {
288288
SetPlaneId(planeId);
289289
SetModuleId(moduleId);
290290
};
291-
~Module(){};
291+
~Module() {};
292292
};
293293
};
294294
#endif

source/framework/core/inc/TRestTask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class TRestTask : public TRestMetadata {
5656

5757
// Constructor & Destructor
5858
TRestTask();
59-
~TRestTask(){};
59+
~TRestTask() {};
6060

6161
ClassDefOverride(TRestTask, 1);
6262
};

source/framework/core/inc/TRestThread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class TRestThread {
7373

7474
// Constructor & Destructor
7575
TRestThread() { Initialize(); }
76-
~TRestThread(){};
76+
~TRestThread() {};
7777
};
7878

7979
#endif

0 commit comments

Comments
 (0)