-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from rest-for-physics/lobis-pre-commit
Implement pre-commit checks and format files
- Loading branch information
Showing
25 changed files
with
302 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# https://cmake-format.readthedocs.io/en/latest/configuration.html | ||
|
||
format: | ||
tab_size: 4 | ||
separate_ctrl_name_with_space: true | ||
separate_fn_name_with_space: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-yaml | ||
- id: check-xml | ||
- id: requirements-txt-fixer | ||
- id: end-of-file-fixer | ||
exclude: external/.*$ | ||
- id: mixed-line-ending | ||
exclude: external/.*$ | ||
- id: trailing-whitespace | ||
exclude: external/.*$ | ||
|
||
- repo: https://github.com/pre-commit/mirrors-clang-format | ||
rev: v15.0.6 | ||
hooks: | ||
- id: clang-format | ||
exclude: external/.*$ | ||
|
||
- repo: https://github.com/cheshirekow/cmake-format-precommit | ||
rev: v0.6.13 | ||
hooks: | ||
- id: cmake-format | ||
additional_dependencies: [ pyyaml ] | ||
# - id: cmake-lint | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.12.0 | ||
hooks: | ||
- id: black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> | ||
|
||
<TRestManager name="TDS" title="Reading TDS rawdata" verboseLevel="info" > | ||
|
||
<TRestRun name="TDSRun" title="Reading a TDS Scope file" verboseLevel="silent"> | ||
<parameter name="experimentName" value="GEMMM"/> | ||
<parameter name="runNumber" value="preserve"/> | ||
<parameter name="runTag" value="preserve"/> | ||
<parameter name="runType" value="TDS"/> | ||
<parameter name="runDescription" value=""/> | ||
<parameter name="user" value="${USER}"/> | ||
<parameter name="verboseLevel" value="0"/> | ||
<parameter name="overwrite" value="on" /> | ||
<parameter name="outputFileName" value="R[fRunNumber]_[fRunType]_[fParentRunNumber].root" /> | ||
<parameter name="readOnly" value="false" /> | ||
<parameter name="inputFormat" value="GEMMM[fRunNumber].raw.[fParentRunNumber]" /> | ||
</TRestRun> | ||
|
||
<TRestProcessRunner name="Processor" verboseLevel="info"> | ||
<parameter name="eventsToProcess" value="0" /> | ||
<parameter name="threadNumber" value="1"/> | ||
|
||
<parameter name="inputAnalysisStorage" value="on"/> | ||
<parameter name="inputEventStorage" value="on"/> | ||
<parameter name="outputEventStorage" value="on"/> | ||
|
||
<addProcess type="TRestRawTDSToSignalProcess" name="tdsRaw" value="ON" electronics="TDS"/> | ||
|
||
</TRestProcessRunner> | ||
|
||
<addTask command="Processor->RunProcess()" value="ON"/> | ||
|
||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<TRestManager name="TDS" title="Reading TDS rawdata" verboseLevel="info"> | ||
<TRestRun name="TDSRun" title="Reading a TDS Scope file" verboseLevel="silent"> | ||
<parameter name="experimentName" value="GEMMM"/> | ||
<parameter name="runNumber" value="preserve"/> | ||
<parameter name="runTag" value="preserve"/> | ||
<parameter name="runType" value="TDS"/> | ||
<parameter name="runDescription" value=""/> | ||
<parameter name="user" value="${USER}"/> | ||
<parameter name="verboseLevel" value="0"/> | ||
<parameter name="overwrite" value="on"/> | ||
<parameter name="outputFileName" value="R[fRunNumber]_[fRunType]_[fParentRunNumber].root"/> | ||
<parameter name="readOnly" value="false"/> | ||
<parameter name="inputFormat" value="GEMMM[fRunNumber].raw.[fParentRunNumber]"/> | ||
</TRestRun> | ||
<TRestProcessRunner name="Processor" verboseLevel="info"> | ||
<parameter name="eventsToProcess" value="0"/> | ||
<parameter name="threadNumber" value="1"/> | ||
<parameter name="inputAnalysisStorage" value="on"/> | ||
<parameter name="inputEventStorage" value="on"/> | ||
<parameter name="outputEventStorage" value="on"/> | ||
<addProcess type="TRestRawTDSToSignalProcess" name="tdsRaw" value="ON" electronics="TDS"/> | ||
</TRestProcessRunner> | ||
<addTask command="Processor->RunProcess()" value="ON"/> | ||
</TRestManager> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,4 +106,3 @@ if [ "-" = "$1" ] ; then | |
}"' '"${file}"' | ||
done | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,4 +52,3 @@ fi | |
git reset HEAD --hard | ||
|
||
exit 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,49 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> | ||
|
||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<TRestManager> | ||
|
||
<globals> | ||
<parameter name="mainDataPath" value="." /> | ||
|
||
</globals> | ||
|
||
|
||
<TRestRun name="VetoTest9Units" title="IAXO D0 Muon Veto Test" verboseLevel="silent"> | ||
<parameter name="experimentName" value="IAXOD0"/> | ||
<parameter name="runNumber" value="preserve"/> | ||
<parameter name="runTag" value="preserve"/> | ||
<parameter name="runType" value="VetoValidation"/> | ||
<parameter name="runDescription" value=""/> | ||
<parameter name="user" value="${USER}"/> | ||
<parameter name="verboseLevel" value="0"/> | ||
<parameter name="overwrite" value="off" /> | ||
|
||
<parameter name="inputFormat" value="R[fRunNumber]_[fRunTag]-[fParentRunNumber].aqs"/> | ||
<parameter name="outputFileName" value="R[fRunNumber]_output.root" /> | ||
|
||
<parameter name="readOnly" value="false" /> | ||
|
||
</TRestRun> | ||
|
||
<TRestProcessRunner name="RawSignals" title="Raw processing and analysis" verboseLevel="info"> | ||
|
||
<parameter name="firstEntry" value="0" /> | ||
<parameter name="lastEntry" value="0" /> | ||
<parameter name="eventsToProcess" value="50" /> | ||
|
||
<addProcess type="TRestRawMultiFEMINOSToSignalProcess" name="virtualDAQ" value="ON" verboseLevel="silent"> | ||
<parameter name="pedScript" value="ped"/> | ||
<parameter name="runScript" value="run"/> | ||
<parameter name="electronics" value="TCMFeminos"/> | ||
<parameter name="fileFormat" value="SJTU" /> | ||
</addProcess> | ||
|
||
<addProcess type="TRestRawVetoAnalysisProcess" name="veto" value="ON"> | ||
<parameter name="baseLineRange" value="(10,100)"/> | ||
<parameter name="range" value="(10,500)"/> | ||
<parameter name="observable" value="all"/> | ||
|
||
<vetoGroup name="top" signalIDs="4688,4705,4728,4744"/> | ||
<vetoGroup name="bottom" signalIDs="4647,4620,4637,4668"/> | ||
<vetoGroup name="back" signalIDs="4676,4612,4672"/> | ||
<vetoGroup name="right" signalIDs="4849,4620,4637,4668"/> | ||
</addProcess> | ||
|
||
</TRestProcessRunner> | ||
|
||
<addTask type="processEvents" value="ON" /> | ||
|
||
<TRestRawVetoAnalysisProcess name="veto" value="ON"> | ||
<parameter name="baseLineRange" value="(10,100)"/> | ||
<parameter name="range" value="(10,500)"/> | ||
<parameter name="observable" value="all"/> | ||
|
||
<vetoGroup name="top" signalIDs="4688,4705,4728,4744"/> | ||
<vetoGroup name="bottom" signalIDs="4647,4620,4637,4668"/> | ||
<vetoGroup name="back" signalIDs="4676,4612,4672"/> | ||
<vetoGroup name="right" signalIDs="4849,4620,4637,4668"/> | ||
</TRestRawVetoAnalysisProcess> | ||
|
||
<globals> | ||
<parameter name="mainDataPath" value="."/> | ||
</globals> | ||
<TRestRun name="VetoTest9Units" title="IAXO D0 Muon Veto Test" verboseLevel="silent"> | ||
<parameter name="experimentName" value="IAXOD0"/> | ||
<parameter name="runNumber" value="preserve"/> | ||
<parameter name="runTag" value="preserve"/> | ||
<parameter name="runType" value="VetoValidation"/> | ||
<parameter name="runDescription" value=""/> | ||
<parameter name="user" value="${USER}"/> | ||
<parameter name="verboseLevel" value="0"/> | ||
<parameter name="overwrite" value="off"/> | ||
<parameter name="inputFormat" value="R[fRunNumber]_[fRunTag]-[fParentRunNumber].aqs"/> | ||
<parameter name="outputFileName" value="R[fRunNumber]_output.root"/> | ||
<parameter name="readOnly" value="false"/> | ||
</TRestRun> | ||
<TRestProcessRunner name="RawSignals" title="Raw processing and analysis" verboseLevel="info"> | ||
<parameter name="firstEntry" value="0"/> | ||
<parameter name="lastEntry" value="0"/> | ||
<parameter name="eventsToProcess" value="50"/> | ||
<addProcess type="TRestRawMultiFEMINOSToSignalProcess" name="virtualDAQ" value="ON" verboseLevel="silent"> | ||
<parameter name="pedScript" value="ped"/> | ||
<parameter name="runScript" value="run"/> | ||
<parameter name="electronics" value="TCMFeminos"/> | ||
<parameter name="fileFormat" value="SJTU"/> | ||
</addProcess> | ||
<addProcess type="TRestRawVetoAnalysisProcess" name="veto" value="ON"> | ||
<parameter name="baseLineRange" value="(10,100)"/> | ||
<parameter name="range" value="(10,500)"/> | ||
<parameter name="observable" value="all"/> | ||
<vetoGroup name="top" signalIDs="4688,4705,4728,4744"/> | ||
<vetoGroup name="bottom" signalIDs="4647,4620,4637,4668"/> | ||
<vetoGroup name="back" signalIDs="4676,4612,4672"/> | ||
<vetoGroup name="right" signalIDs="4849,4620,4637,4668"/> | ||
</addProcess> | ||
</TRestProcessRunner> | ||
<addTask type="processEvents" value="ON"/> | ||
<TRestRawVetoAnalysisProcess name="veto" value="ON"> | ||
<parameter name="baseLineRange" value="(10,100)"/> | ||
<parameter name="range" value="(10,500)"/> | ||
<parameter name="observable" value="all"/> | ||
<vetoGroup name="top" signalIDs="4688,4705,4728,4744"/> | ||
<vetoGroup name="bottom" signalIDs="4647,4620,4637,4668"/> | ||
<vetoGroup name="back" signalIDs="4676,4612,4672"/> | ||
<vetoGroup name="right" signalIDs="4849,4620,4637,4668"/> | ||
</TRestRawVetoAnalysisProcess> | ||
</TRestManager> |
Oops, something went wrong.