Skip to content

Commit ca2f87b

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

8 files changed

Lines changed: 44 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_ListMacros.C

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ Int_t REST_ListMacros() {
2121
vector<string> main_files = TRestTools::GetFilesMatchingPattern(macrosPath + "/REST_*.C");
2222
for (int m = 0; m < main_files.size(); m++) {
2323
cout << " ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
24-
cout << " ++ "
25-
<< " Macro : " << TRestTools::SeparatePathAndName(main_files[m]).second << endl;
24+
cout << " ++ " << " Macro : " << TRestTools::SeparatePathAndName(main_files[m]).second << endl;
2625
std::ifstream t(main_files[m]);
2726
std::string str((std::istreambuf_iterator<char>(t)), std::istreambuf_iterator<char>());
2827

@@ -44,8 +43,7 @@ Int_t REST_ListMacros() {
4443

4544
for (int m = 0; m < files.size(); m++) {
4645
cout << " ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
47-
cout << " ++ "
48-
<< " Macro : " << TRestTools::SeparatePathAndName(files[m]).second << endl;
46+
cout << " ++ " << " Macro : " << TRestTools::SeparatePathAndName(files[m]).second << endl;
4947
std::ifstream t(files[m]);
5048
std::string str((std::istreambuf_iterator<char>(t)), std::istreambuf_iterator<char>());
5149

macros/REST_MakeProcess.C

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,12 @@ Int_t REST_MakeProcess(TString name, TString inputevent = "TRestEvent", TString
100100
headerfile << "private:" << endl;
101101

102102
if (inputevent == outputevent) {
103-
headerfile << " "
104-
<< "/// A pointer to the specific " << inputevent << " input event" << endl;
103+
headerfile << " " << "/// A pointer to the specific " << inputevent << " input event" << endl;
105104
headerfile << " " << inputevent << "* " << inputeventname << "; //!" << endl;
106105
} else {
107-
headerfile << " "
108-
<< "/// A pointer to the specific " << inputevent << " input event" << endl;
106+
headerfile << " " << "/// A pointer to the specific " << inputevent << " input event" << endl;
109107
headerfile << " " << inputevent << "* " << inputeventname << "; //!" << endl;
110-
headerfile << " "
111-
<< "/// A pointer to the specific " << outputevent << " output event" << endl;
108+
headerfile << " " << "/// A pointer to the specific " << outputevent << " output event" << endl;
112109
headerfile << " " << outputevent << "* " << outputeventname << "; //!" << endl;
113110
}
114111

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

source/framework/core/src/TRestMesh.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ Int_t TRestMesh::GetNodeX(TVector3 v, Bool_t relative) {
195195

196196
if (posInside.Mag() > fNetSizeX) {
197197
cout << "REST WARNING (TRestMesh) : Relative position (" << posInside.X() << ", " << posInside.Y()
198-
<< ", " << posInside.Z() << ")"
199-
<< ") outside boundaries. Setting it to : " << fNodesX - 1 << endl;
198+
<< ", " << posInside.Z() << ")" << ") outside boundaries. Setting it to : " << fNodesX - 1
199+
<< endl;
200200
return fNodesX - 1;
201201
}
202202

source/framework/core/src/TRestMessenger.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,8 @@ void TRestMessenger::PrintMetadata() {
352352
TRestMetadata::PrintMetadata();
353353

354354
if (IsConnected()) {
355-
RESTMetadata << "Connected : "
356-
<< " (token: " << fPoolToken << ", shmid: " << fShmId << ", source: " << fPoolSource
357-
<< ")" << RESTendl;
355+
RESTMetadata << "Connected : " << " (token: " << fPoolToken << ", shmid: " << fShmId
356+
<< ", source: " << fPoolSource << ")" << RESTendl;
358357
} else {
359358
RESTMetadata << "Not Connected" << RESTendl;
360359
}

source/framework/core/src/TRestProcessRunner.cxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,7 @@ void TRestProcessRunner::RunProcess() {
487487
}
488488

489489
if (fProcStatus != kIgnore && Console::kbhit())
490-
while (getchar() != '\n')
491-
; // clear buffer
490+
while (getchar() != '\n'); // clear buffer
492491

493492
RESTEssential << "Waiting for processes to finish ..." << RESTendl;
494493

@@ -592,8 +591,7 @@ void TRestProcessRunner::PauseMenu() {
592591
Console::CursorUp(1);
593592
int c = Console::Read();
594593
if (c != '\n')
595-
while (Console::Read() != '\n')
596-
;
594+
while (Console::Read() != '\n');
597595
TRestStringOutput::REST_Verbose_Level l;
598596
if (c == '0' || c == 's') {
599597
l = TRestStringOutput::REST_Verbose_Level::REST_Silent;

source/framework/core/src/TRestTask.cxx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ TRestTask::TRestTask(TString TaskString, REST_TASKMODE mode) {
104104
string name;
105105
string call;
106106
if (Split(cmd, "->").size() != 2) {
107-
RESTWarning << "command"
108-
<< " \"" << cmd << "\" "
109-
<< "is illegal!" << RESTendl;
107+
RESTWarning << "command" << " \"" << cmd << "\" " << "is illegal!" << RESTendl;
110108
fMode = TASK_ERROR;
111109
return;
112110
} else {
@@ -117,9 +115,7 @@ TRestTask::TRestTask(TString TaskString, REST_TASKMODE mode) {
117115
int p1 = call.find_first_of("(");
118116
int p2 = call.find_last_of(")");
119117
if (p1 == -1 || p2 == -1 || p1 >= p2) {
120-
RESTWarning << "command"
121-
<< " \"" << cmd << "\" "
122-
<< "is illegal!" << RESTendl;
118+
RESTWarning << "command" << " \"" << cmd << "\" " << "is illegal!" << RESTendl;
123119
fMode = TASK_ERROR;
124120
return;
125121
}

0 commit comments

Comments
 (0)