Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
559 commits
Select commit Hold shift + click to select a range
3d74e87
thanks for coderabbits help
bogui56 Feb 13, 2026
0ae0e70
more rabbits
bogui56 Feb 13, 2026
ee1177c
and another rabbit
bogui56 Feb 13, 2026
e18101b
now to jenkins
bogui56 Feb 13, 2026
e11adf0
jenkins 2
bogui56 Feb 13, 2026
4c4088d
clang 1
bogui56 Feb 13, 2026
0a41d07
do not reference data for qa filling
osbornjd Feb 13, 2026
7255ce1
Merge pull request #4177 from osbornjd/tpc_segfault
osbornjd Feb 14, 2026
f03fde5
Finally fixed the bugs.
Feb 15, 2026
70b8bd9
changed running ped to 8 samples, added ped study, handle contaminati…
mchiu-bnl Feb 15, 2026
a07fca0
check we don't underflow the sample number
mchiu-bnl Feb 15, 2026
4c4fdf4
Minor fix.
Feb 15, 2026
9f22933
Merge pull request #4178 from mchiu-bnl/mbd
pinkenburg Feb 15, 2026
28b0d95
add 12 GeV jets to CreateFileList.pl
pinkenburg Feb 16, 2026
b0c00c6
Merge pull request #4179 from pinkenburg/add-12GeV
pinkenburg Feb 16, 2026
c700d69
QVecDefs - Update Centrality Binning
Steepspace Feb 17, 2026
388a36b
add method to get MbdEvent, bypass calibration existence check during…
mchiu-bnl Feb 17, 2026
0fdd99a
Merge pull request #4175 from Ishangoel11/master
osbornjd Feb 17, 2026
1a5eddd
Merge pull request #4176 from bogui56/master
osbornjd Feb 17, 2026
09e8817
Adding exit for missing calibrations
Feb 17, 2026
762be3d
Merge pull request #4181 from bseidlit/master
pinkenburg Feb 18, 2026
f464d02
Merge pull request #4180 from mchiu-bnl/mbd
pinkenburg Feb 18, 2026
ccc8498
inital commit of calostatusskimmer
nk7252 Feb 18, 2026
0a29355
CaloTowerStatus - Add inputNode Option
Steepspace Feb 18, 2026
95d0247
residual calculator compiles
osbornjd Feb 18, 2026
e13a266
Added toggles for storting CM phi distortions as r*dPhi vs dPhi (defa…
bkimelman Feb 18, 2026
e6f71b2
Merge remote-tracking branch 'upstream/master' into laserClusterTuning
bkimelman Feb 18, 2026
5951a0e
Added lamination fitting cc that was missed in previous commit
bkimelman Feb 18, 2026
347fb4f
fix stupid bug
osbornjd Feb 18, 2026
d98db22
consolidate
osbornjd Feb 18, 2026
5e828de
clang-format
osbornjd Feb 18, 2026
806959a
Moved filtering sourcelinks to a separate methods, so that one can re…
hupereir Feb 18, 2026
42a15a9
Update CaloTowerBuilder.cc
nk7252 Feb 18, 2026
9d02849
Add additional compiler warnings for g++
pinkenburg Feb 18, 2026
c0b2905
remove skip channels in empty packet loop, and clang-format
nk7252 Feb 19, 2026
8a18f61
clang-format for the skimmer module
nk7252 Feb 19, 2026
9d40705
Merge pull request #4186 from hupereir/acts_fitter_sourcelink_filter
osbornjd Feb 19, 2026
008a012
clag-tidy fixes
bkimelman Feb 19, 2026
3ec981b
Added toggle to save all lamination fitting histograms to file if des…
bkimelman Feb 19, 2026
0eafbd4
Changed to range-based loop
bkimelman Feb 19, 2026
fedd13a
add back the channel skip
nk7252 Feb 19, 2026
459341a
one more attempt at fixing formatting....
nk7252 Feb 20, 2026
376ab12
add verbosity to skimmer, and fix comments/formatting
nk7252 Feb 20, 2026
24b7292
code rabbit fixes
nk7252 Feb 20, 2026
d489ba9
Merge pull request #4183 from Steepspace/CaloTowerStatus-feat
bseidlit Feb 20, 2026
ce14510
clang-tidy
osbornjd Feb 20, 2026
3a04b62
clang-format
osbornjd Feb 20, 2026
ecddd62
When disabling Micromegas clusters from fit, use acts to propagate th…
hupereir Feb 20, 2026
46fc8ad
use our standard compiler flags
pinkenburg Feb 20, 2026
bd14497
use our standard compiler flags
pinkenburg Feb 20, 2026
739117b
use -isystem instead of -I for include paths
pinkenburg Feb 20, 2026
bf4806d
use -isystem instead of -I for include paths
pinkenburg Feb 20, 2026
b776eb1
Merge pull request #4187 from pinkenburg/fix-createsubsys-script
pinkenburg Feb 20, 2026
a139a42
Update offline/packages/trackreco/PHActsTrkFitter.cc
hupereir Feb 20, 2026
2a43e6f
make it compile
pinkenburg Feb 20, 2026
ecb09d3
fixed comments
hupereir Feb 20, 2026
3e526f3
clang-tidy
hupereir Feb 20, 2026
7dcddfc
small cosmetic changes
pinkenburg Feb 21, 2026
7d79c3a
fix clang-tidy
pinkenburg Feb 21, 2026
c93920c
remove unused version includes
pinkenburg Feb 21, 2026
0fbb5c6
Merge pull request #4106 from Steepspace/sEPD-Calib-Gen
pinkenburg Feb 22, 2026
9b361cd
return all residuals and let user look up from a struct
osbornjd Feb 23, 2026
0d62d25
clang-format
osbornjd Feb 23, 2026
cf5bfc4
switching to use isGood tower flag
vbailey2 Feb 23, 2026
a8aa647
fix typo
vbailey2 Feb 23, 2026
4790cc5
Merge pull request #4188 from hupereir/extrapolation_to_tpot
osbornjd Feb 23, 2026
2e8d3aa
Merge branch 'master' into residual_calc
osbornjd Feb 23, 2026
1b27a27
Fix clang-tidy issues, set threshold for ZDC and sEPD
nk7252 Feb 23, 2026
edbc188
no need for checking cdbttree file, uniq ptr with root object can cau…
pinkenburg Feb 23, 2026
934e70d
use consistent initialization
pinkenburg Feb 23, 2026
714018b
remove redundant use of uniq_ptrs
pinkenburg Feb 23, 2026
66b8be6
minor cosmetics
pinkenburg Feb 23, 2026
876b96f
fix lib dependencies
pinkenburg Feb 23, 2026
d15f94c
Merge branch 'sPHENIX-Collaboration:master' into master
nk7252 Feb 23, 2026
28b6193
added missing const from header declaration.
hupereir Feb 23, 2026
55e6407
Merge pull request #4190 from hupereir/trackanalysisutils_hotfix
pinkenburg Feb 24, 2026
37a596e
Merge branch 'master' into sEPD-Calib
pinkenburg Feb 24, 2026
de0549b
Merge branch 'master' into residual_calc
osbornjd Feb 24, 2026
4c9182c
Merge pull request #4189 from vbailey2/goodtower
pinkenburg Feb 24, 2026
2be79f2
Merge pull request #4184 from bkimelman/laserClusterTuning
osbornjd Feb 24, 2026
eacfe9c
Merge branch 'sPHENIX-Collaboration:master' into master
nk7252 Feb 24, 2026
a6fe39b
resolve conflicts, clang-tidy and format again
osbornjd Feb 24, 2026
84ed824
another conflict
osbornjd Feb 24, 2026
14bcd4a
Merge pull request #4182 from nk7252/master
pinkenburg Feb 24, 2026
96bcb9e
Merge pull request #4127 from Steepspace/sEPD-Calib
pinkenburg Feb 24, 2026
becbe38
Diagnostics added.
adfrawley Feb 24, 2026
e9f85e6
add default to not abort when abort enabled but only fail MBD cut
jnclement Feb 24, 2026
4955f45
add MB to Detroit to make clear these are MinBias
pinkenburg Feb 24, 2026
e862f39
Merge pull request #4191 from pinkenburg/CreateFileList-fix
pinkenburg Feb 24, 2026
fe2ed2b
Merge pull request #4185 from osbornjd/residual_calc
osbornjd Feb 25, 2026
e04bec1
Update waveform fitting to return fit status and towerinfo objects to…
emclaughlin2 Feb 25, 2026
8df2094
Further updates: add fitstatus setter to process data in calotowerbui…
emclaughlin2 Feb 25, 2026
8af5039
Change to correct index mapping when setting FitStatus flag for use i…
emclaughlin2 Feb 25, 2026
bab80cb
Add protections for null value returned from fit result
emclaughlin2 Feb 25, 2026
f71dca3
Fix fit result extraction for template fit and recovery template fit
emclaughlin2 Feb 25, 2026
c1bb2fe
use calib name from DB
jnclement Feb 25, 2026
829371c
Merge branch 'sPHENIX-Collaboration:master' into tCutOHFracCorrection
jnclement Feb 25, 2026
b23636f
Merge pull request #4192 from emclaughlin2/master
pinkenburg Feb 26, 2026
47d12f1
Implement suggested fixes from coderabbit and Chris for timing cut mo…
jnclement Feb 26, 2026
d21fa42
Merge branch 'tCutOHFracCorrection' of github.com:jnclement/coresoftw…
jnclement Feb 26, 2026
7f2886a
Return NAN for TrackSeed calls to get seed indices
rosstom2232 Feb 26, 2026
f5df20f
CaloTowerStatus - Remove Remnants of Timing Status
Steepspace Feb 26, 2026
d619a97
Turn skimming on by default
nk7252 Feb 26, 2026
4b73dff
Using max unsigned int instead of NAN
rosstom2232 Feb 26, 2026
31c5c2a
fix dphi calculation, guard against memory leaks and nullptr dereference
jnclement Feb 27, 2026
35f1556
added get_pederr(), etc
mchiu-bnl Feb 27, 2026
6a1c33e
Merge pull request #4195 from Steepspace/CaloTowerStatus
pinkenburg Feb 27, 2026
37ff672
add cluster map name setter
osbornjd Feb 27, 2026
454b7b8
Merge pull request #4194 from rosstom2232/TPOTQA
osbornjd Feb 27, 2026
5ca6985
fixes bounds for histogram
osbornjd Feb 27, 2026
221c2f2
Merge pull request #4197 from mchiu-bnl/mbd
pinkenburg Feb 27, 2026
74aacf8
do away with bools
nk7252 Feb 27, 2026
78b66ee
Merge pull request #4199 from osbornjd/qa
osbornjd Feb 27, 2026
3312c7a
Merge pull request #4198 from osbornjd/clustermap_tpotmatch
osbornjd Feb 27, 2026
e7eb4c1
EventPlaneReco - Adjust Centrality Binning
Steepspace Feb 27, 2026
afb23ff
EventPlaneReco - Adjust var naming
Steepspace Feb 27, 2026
d906123
More nullptr guards and explicit treatment of NaN cases for Timingcut…
jnclement Feb 27, 2026
f00f62a
Cleanup - Replace EventPlaneReco with EventPlaneRecov2
Steepspace Feb 27, 2026
110759d
Merge pull request #4196 from nk7252/skim_on_by_default
bseidlit Feb 28, 2026
47961e5
changing majic param, will improve code later
Mar 2, 2026
90cd02f
Merge pull request #4201 from bseidlit/master
bseidlit Mar 2, 2026
ea25352
Merge branch 'master' of https://github.com/sPHENIX-Collaboration/cor…
adfrawley Mar 2, 2026
5f88c00
Remove diagnostic outputs
adfrawley Mar 2, 2026
a9e4984
Merge branch 'master' of https://github.com/sPHENIX-Collaboration/cor…
adfrawley Mar 2, 2026
37a1689
added fit info
mchiu-bnl Mar 2, 2026
6e6503f
added info on waveform fit to RawHit output object, added refits to w…
mchiu-bnl Mar 2, 2026
4a0fe1f
remove smart pointer in Timingcut module, make destructor safely dele…
jnclement Mar 2, 2026
979697c
rabbit fixes
mchiu-bnl Mar 3, 2026
7ef781f
Merge pull request #4203 from mchiu-bnl/mbd
pinkenburg Mar 3, 2026
fd065aa
Merge pull request #4193 from jnclement/tCutOHFracCorrection
pinkenburg Mar 3, 2026
04ac52f
suppress verbosity
osbornjd Mar 3, 2026
5f13771
EventPlaneReco: Implement trigonometry cache for Q-vector calculation
Steepspace Feb 28, 2026
4a6fc72
Cleanup includes
Steepspace Mar 1, 2026
e294d88
Skip Q Vec Calib for (≥80% centrality)
Steepspace Mar 1, 2026
f84a5ad
Guard channel loop against trig-cache bounds
Steepspace Mar 1, 2026
f0d5a45
Propagate CreateNodes failure from Init.
Steepspace Mar 1, 2026
af96639
EventPlaneReco - Output Node Name Flexibility
Steepspace Mar 2, 2026
8820137
clang-tidy fixes
Steepspace Mar 3, 2026
5108c85
allow integer node names upon creation
pinkenburg Mar 3, 2026
9c38595
keep single packets (for zdc raw data
pinkenburg Mar 3, 2026
d271e6e
thanks rabbit
pinkenburg Mar 3, 2026
c5e7144
fix clang-tidy
pinkenburg Mar 3, 2026
32077aa
Merge pull request #4206 from pinkenburg/keep-single-packets
pinkenburg Mar 4, 2026
9a58c6c
fix clang-tidy warnings
osbornjd Mar 4, 2026
13fede1
Merge pull request #4205 from osbornjd/suppress_verbosity
osbornjd Mar 4, 2026
01ba052
added functionality to reject particles from hadron decays + speed up…
Mar 4, 2026
a41f4ee
JetCalib Constituents
bkimelman Mar 5, 2026
10e5cb0
Merge pull request #4202 from adfrawley/different_masses_kshort
osbornjd Mar 5, 2026
645cbf2
revert ntuple contents to float
osbornjd Mar 5, 2026
6ff05b1
Implement some coderabbit suggestions.
adfrawley Mar 5, 2026
90580de
Merge branch 'master' of https://github.com/sPHENIX-Collaboration/cor…
adfrawley Mar 5, 2026
d30868b
Merge pull request #4207 from pjwinnetou/master
pinkenburg Mar 5, 2026
28a3206
Merge pull request #4208 from bkimelman/master
pinkenburg Mar 5, 2026
cb3801b
Merge pull request #4209 from adfrawley/different_masses_kshort
osbornjd Mar 5, 2026
378a198
clang-tidy
osbornjd Mar 5, 2026
629b415
implement dummy get_chi2ndf, get_fitinfo
mchiu-bnl Mar 5, 2026
75e6c8f
Merge pull request #4174 from LukeKyle/ClusFix
osbornjd Mar 5, 2026
693abaa
limit number of times virtual function spits out warning
mchiu-bnl Mar 5, 2026
9bb7aac
Merge pull request #4210 from mchiu-bnl/mbd
pinkenburg Mar 6, 2026
a15f76e
Kshort and KFP updates
cdean-github Mar 6, 2026
add82a1
Eventplaneinfo - order (int -> unsigned int)
Steepspace Mar 9, 2026
dee334d
syncing mod works
pinkenburg Mar 9, 2026
68be6e0
CD: KshortReco CodeRabbit suggestions
cdean-github Mar 10, 2026
b0fe363
Update offline/packages/HFTrackEfficiency/HFTrackEfficiency.cc
cdean-github Mar 10, 2026
b401831
revert IO object to float
osbornjd Mar 10, 2026
fab7806
Merge pull request #4213 from osbornjd/revert_float_to_double
osbornjd Mar 10, 2026
523a1b0
Merge pull request #4200 from Steepspace/sEPD-EventPlaneInfo
pinkenburg Mar 10, 2026
f73307c
bcolumicount functional
pinkenburg Mar 10, 2026
ac9de81
add event number to bco info
pinkenburg Mar 10, 2026
20be461
cleanup
pinkenburg Mar 10, 2026
a95c3e8
include what you use
pinkenburg Mar 10, 2026
b4ff724
Merge branch 'master' into bcolumicount
pinkenburg Mar 10, 2026
dbd254b
add bcolumicount_io to lib dep of g4dst
pinkenburg Mar 10, 2026
56be163
fix Reset and hex output
pinkenburg Mar 10, 2026
ecbd781
delete cloned objects
pinkenburg Mar 10, 2026
21724b0
Update the way how we load the INTT DAC values, it was from CDB. Now …
Mar 11, 2026
9ea5a99
Merge pull request #4214 from pinkenburg/bcolumicount
pinkenburg Mar 11, 2026
42ed1e5
Update the way how we load the INTT DAC values, for mass production,…
Mar 11, 2026
967e396
Merge branch 'sPHENIX-Collaboration:master' into ForDACMap
ChengWeiShih Mar 11, 2026
d4df9c5
Merge branch 'ForDACMap' of https://github.com/ChengWeiShih/sPH_cores…
Mar 11, 2026
9f3e5f0
revert the modification on the InttOdbcQuery
Mar 11, 2026
ea20744
add laser cluster alignment
devloom Mar 11, 2026
e4e8392
clean up
devloom Mar 11, 2026
d106696
rabbit suggestions
devloom Mar 11, 2026
65e3ae2
Implement BCO matching and move cout statements under verbosity
Mughal789 Mar 11, 2026
960d444
Implement BCO matching and move cout statements under verbosity
Mughal789 Mar 11, 2026
1bda690
Reset cached previous-event state on run change or invalid event to a…
Mughal789 Mar 11, 2026
5e6433b
fix max logic
devloom Mar 11, 2026
de9a107
free memory
devloom Mar 11, 2026
0d1b523
Update the way how we load the INTT DAC values, for mass production, …
Mar 12, 2026
bd8068e
CD: Jenkins requests
cdean-github Mar 12, 2026
8ed52b3
Update offline/packages/KFParticle_sPHENIX/KFParticle_sPHENIX.h
Mughal789 Mar 12, 2026
b26fd44
fix missing GL1 fallback in KFParticle_nTuple fillBranch
Mughal789 Mar 12, 2026
5865742
empty commit
devloom Mar 12, 2026
00bd415
Add null check for DBInterface::instance()->getStatement()
Mar 13, 2026
be7309c
Have an universal way to check the DAC-value vector.
Mar 13, 2026
3745b3f
To check if the row is not found in the table
Mar 13, 2026
0297177
Merge pull request #4216 from devloom/devloom-alignlaserclusters
osbornjd Mar 13, 2026
92ff610
Fix uint64_t initialization
Mughal789 Mar 13, 2026
ef8b389
fix clang-tidy
pinkenburg Mar 13, 2026
5a9c3c9
cosmetics update
Mar 14, 2026
25a33bb
Merge pull request #4218 from Mughal789/master
pinkenburg Mar 14, 2026
4105056
Merge pull request #4219 from ChengWeiShih/ForDACMap
pinkenburg Mar 14, 2026
2cec1df
fix clang-tidy
pinkenburg Mar 16, 2026
c7440ec
make listPayloadIOVs useful
pinkenburg Mar 16, 2026
193a51c
Add subtracted iso
Mar 16, 2026
8cfb347
Add subtracted iso
Mar 16, 2026
dc59e15
Merge pull request #4211 from cdean-github/master
pinkenburg Mar 16, 2026
7cb76f9
fix cppcheck
pinkenburg Mar 17, 2026
b6159de
add new herwig and double interactions
pinkenburg Mar 17, 2026
51677ab
Merge pull request #4222 from pinkenburg/add-new-types
pinkenburg Mar 17, 2026
63192a8
Update GlobalVertexv3.cc
nk7252 Mar 17, 2026
1643e87
fix memory leak at exit, use uniq_ptr
pinkenburg Mar 17, 2026
31baa72
change first OO run from 82374 to 82388 after trigger was finalized
pinkenburg Mar 17, 2026
103b747
Merge pull request #4221 from pjwinnetou/master
pinkenburg Mar 17, 2026
fbdf9c6
use constexpr instead of static const
pinkenburg Mar 17, 2026
6a8cc05
fixes
pinkenburg Mar 17, 2026
54589d3
Add a function to universally mask the INTT chip
Mar 18, 2026
af360c1
Merge pull request #4224 from pinkenburg/adjust-oo-begin-run
pinkenburg Mar 18, 2026
dc4b7a8
Merge pull request #4223 from nk7252/fix-globalvertex-get_z
pinkenburg Mar 18, 2026
1c348ed
Merge pull request #4225 from ChengWeiShih/ForDACMap
osbornjd Mar 18, 2026
1900964
empty commit to trigger jenkins
pinkenburg Mar 18, 2026
d3f5d82
Merge pull request #4220 from pinkenburg/cdbutils-1
pinkenburg Mar 18, 2026
ce2fb5e
CaloCDB: Migrate FilterDatasets from CDBUtils to CDBInterface
Steepspace Mar 18, 2026
265c26e
add fee masking to tpc time builder
osbornjd Mar 18, 2026
6f1a2fc
remove debug statements
osbornjd Mar 18, 2026
57e77e0
clang-format
osbornjd Mar 18, 2026
ef21e3f
refactor everything into the time frame builder
osbornjd Mar 18, 2026
9b0ab1c
remove unnecessary function
osbornjd Mar 18, 2026
f947ccd
clang-format
osbornjd Mar 18, 2026
ed2c67b
cleanup
pinkenburg Mar 18, 2026
cea59d0
trigger jenkins
osbornjd Mar 19, 2026
cb7d1b5
Merge pull request #4226 from Steepspace/CaloCDB
pinkenburg Mar 19, 2026
7c6b32f
Merge pull request #4227 from osbornjd/timeframebuilder_badfees
osbornjd Mar 19, 2026
d30a8d5
CaloCDB: Refactor header installation in Makefile.am
Steepspace Mar 19, 2026
7cda38a
Merge pull request #4228 from Steepspace/CaloCDB
pinkenburg Mar 19, 2026
8aedf7b
Add get_position to truthvertex
nk7252 Mar 20, 2026
c996608
Update offline/packages/globalvertex/TruthVertex_v1.h
nk7252 Mar 20, 2026
25804ae
add flag for double interaction samples
pinkenburg Mar 20, 2026
e4802c5
add oo embedded files
pinkenburg Mar 20, 2026
c9a8fdf
Merge pull request #4230 from pinkenburg/double-interactions
pinkenburg Mar 20, 2026
5f94b58
Merge pull request #4229 from nk7252/add-Get_position-to-truthvertex
pinkenburg Mar 20, 2026
2686fe3
DecayFinder search fix
hrjheng Mar 23, 2026
de78126
remove comment
hrjheng Mar 23, 2026
e4ba985
CD: Added new brnanches to HFTrackEfficiency and patched bug
cdean-github Mar 23, 2026
0743fbe
Merge branch 'master' of github.com:cdean-github/coresoftware
cdean-github Mar 23, 2026
a4380b3
Merge pull request #4232 from cdean-github/master
osbornjd Mar 24, 2026
fbace92
Merge pull request #4231 from hrjheng/DecayFinder
osbornjd Mar 24, 2026
02337fe
safeguard of calling ZDC tower nodes when not using zdc info
Mar 25, 2026
32f9724
fixed m_useZDC option
Mar 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions .github/workflows/fix-eof-newline-coderabbit-docstrings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: Fix missing final newline (CodeRabbit docstring PRs)

on:
pull_request_target:
types: [opened, synchronize, reopened]

permissions:
contents: write
pull-requests: read

jobs:
fix_eof_newline:
runs-on: ubuntu-latest
steps:
- name: Guard - only CodeRabbit docstring PRs from same repo
id: guard
shell: bash
run: |
set -euo pipefail

AUTHOR='${{ github.event.pull_request.user.login }}'
BASE_REPO='${{ github.event.pull_request.base.repo.full_name }}'
HEAD_REPO='${{ github.event.pull_request.head.repo.full_name }}'
TITLE='${{ github.event.pull_request.title }}'

if [[ "$AUTHOR" != "coderabbitai[bot]" ]]; then
echo "run=false" >> "$GITHUB_OUTPUT"
exit 0
fi

# Safety: only push to branches within the same repo
if [[ "$BASE_REPO" != "$HEAD_REPO" ]]; then
echo "run=false" >> "$GITHUB_OUTPUT"
exit 0
fi

# only run for docstring PRs
if ! echo "$TITLE" | grep -qi "docstring"; then
echo "run=false" >> "$GITHUB_OUTPUT"
exit 0
fi

echo "run=true" >> "$GITHUB_OUTPUT"

- name: Checkout PR head
if: steps.guard.outputs.run == 'true'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0

- name: Append final newline when missing (changed files only)
if: steps.guard.outputs.run == 'true'
shell: bash
run: |
set -euo pipefail

BASE_SHA="${{ github.event.pull_request.base.sha }}"
HEAD_SHA="${{ github.event.pull_request.head.sha }}"

files=$(git diff --name-only "$BASE_SHA" "$HEAD_SHA" -- \
'*.C' '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' || true)

if [[ -z "${files}" ]]; then
echo "No relevant files changed."
exit 0
fi

changed=0
for f in $files; do
[[ -f "$f" ]] || continue

# For non-empty files: ensure last byte is '\n'
if [[ -s "$f" ]]; then
last_byte="$(tail -c 1 "$f" || true)"
if [[ "$last_byte" != $'\n' ]]; then
printf '\n' >> "$f"
echo "Fixed EOF newline: $f"
changed=1
fi
fi
done

if [[ "$changed" -eq 0 ]]; then
echo "All files already end with a newline."
exit 0
fi

git status --porcelain
git add -A

git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

git commit -m "Fix missing final newline in docstring PR"

- name: Push fix commit back to PR branch
if: steps.guard.outputs.run == 'true'
shell: bash
run: |
set -euo pipefail
# If no commit was created, pushing will fail; so only push if HEAD is ahead.
if git rev-parse HEAD~1 >/dev/null 2>&1; then
git push origin "HEAD:${{ github.event.pull_request.head.ref }}"
fi
11 changes: 9 additions & 2 deletions calibrations/calorimeter/calo_cdb/CaloCDB-FilterDatasets.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "filter-datasets.h"
#include "FilterDatasets.h"

#include <phool/recoConsts.h>

#include <iostream>
#include <string>
#include <vector>

int main(int argc, const char* const argv[])
{
Expand All @@ -17,7 +21,7 @@ int main(int argc, const char* const argv[])

const std::string& input_csv = args[1];
std::string output_dir_path = ".";
Bool_t debug = false;
bool debug = false;

if (args.size() >= 3)
{
Expand All @@ -28,6 +32,9 @@ int main(int argc, const char* const argv[])
debug = std::stoi(args[3]);
}

recoConsts* rc = recoConsts::instance();
rc->set_StringFlag("CDB_GLOBALTAG", "newcdbtag");

FilterDatasets filter(debug);
filter.process(input_csv, output_dir_path);

Expand Down
3 changes: 2 additions & 1 deletion calibrations/calorimeter/calo_cdb/CaloCDB-GenStatus.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "genStatus.h"
#include "GenStatus.h"

#include <iostream>
#include <string>
#include <vector>

int main(int argc, const char* const argv[])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@

#include "filter-datasets.h"
#include "FilterDatasets.h"

// -- My Utils --
#include "myUtils.h"

// c++ includes --
// sPHENIX includes --
#include <ffamodules/CDBInterface.h>
#include <phool/recoConsts.h>

#include <RtypesCore.h>
#include <filesystem>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>

FilterDatasets::FilterDatasets(Bool_t debug)
: m_debug(debug)
Expand All @@ -30,21 +34,12 @@ void FilterDatasets::readRunInfo(const std::string &line)

std::string FilterDatasets::getCalibration(const std::string &pl_type, uint64_t iov)
{
if (!uti)
{
uti = std::make_unique<CDBUtils>();
}
return uti->getUrl(pl_type, iov);
}
recoConsts *rc = recoConsts::instance();
// Update the global timestamp flag for the current run in the loop
rc->set_uint64Flag("TIMESTAMP", iov);

int FilterDatasets::setGlobalTag(const std::string &tagname)
{
if (!uti)
{
uti = std::make_unique<CDBUtils>();
}
int iret = uti->setGlobalTag(tagname);
return iret;
// Fetch the calibration URL via CDBInterface
return CDBInterface::instance()->getUrl(pl_type);
}

void FilterDatasets::analyze(const std::string &input, const std::string &outputDir)
Expand Down Expand Up @@ -142,8 +137,6 @@ void FilterDatasets::process(const std::string &input, const std::string &output
std::cout << "Debug: " << ((m_debug) ? "True" : "False") << std::endl;
std::cout << "#############################" << std::endl;

setGlobalTag("newcdbtag");

std::filesystem::path input_filepath_obj(input);
if (!myUtils::readCSV(input_filepath_obj, [this](const std::string &line)
{ this->readRunInfo(line); }))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
#ifndef CALOCDB_FILTERDATASETS_H
#define CALOCDB_FILTERDATASETS_H

// -- sPHENIX includes --
#include <sphenixnpc/CDBUtils.h>

// -- ROOT includes --
#include <RtypesCore.h>

// -- c++ includes --
#include <map>
#include <memory>
#include <cstdint>
#include <string>
#include <utility>
#include <vector>

class FilterDatasets
{
public:
explicit FilterDatasets(Bool_t debug = false);
explicit FilterDatasets(bool debug = false);

void process(const std::string &input, const std::string &output = ".");

Expand All @@ -26,7 +19,6 @@ class FilterDatasets
void readRunInfo(const std::string &line);

std::string getCalibration(const std::string &pl_type, uint64_t iov);
int setGlobalTag(const std::string &tagname);

std::vector<std::pair<std::string, std::string>> m_runInfo;
std::map<std::string, int> m_ctr;
Expand All @@ -36,9 +28,7 @@ class FilterDatasets
, "CEMC_hotTowers_fracBadChi2", "HCALIN_hotTowers_fracBadChi2", "HCALOUT_hotTowers_fracBadChi2"
, "CEMC_ZSCrossCalib", "HCALIN_ZSCrossCalib", "HCALOUT_ZSCrossCalib"};

Bool_t m_debug;

std::unique_ptr<CDBUtils> uti{nullptr};
bool m_debug;
};

#endif
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "genStatus.h"
#include "GenStatus.h"

#include "geometry_constants.h"

Expand All @@ -15,7 +15,6 @@
// c++ includes --
#include <filesystem>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>

Expand Down
15 changes: 10 additions & 5 deletions calibrations/calorimeter/calo_cdb/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@ AM_LDFLAGS = \
-L$(OFFLINE_MAIN)/lib64 \
`root-config --libs`

# Headers installed for use in macros and by other packages
pkginclude_HEADERS = \
genStatus.h \
filter-datasets.h \
geometry_constants.h \
GenStatus.h \
geometry_constants.h

# Headers used only for building this library and its binaries
noinst_HEADERS = \
FilterDatasets.h \
myUtils.h

lib_LTLIBRARIES = \
libcalo_cdb.la

libcalo_cdb_la_SOURCES = \
genStatus.cc \
filter-datasets.cc \
GenStatus.cc \
FilterDatasets.cc \
myUtils.cc

libcalo_cdb_la_LIBADD = \
Expand All @@ -35,6 +39,7 @@ libcalo_cdb_la_LIBADD = \
-lcalo_io \
-lcdbobjects \
-lsphenixnpc \
-lffamodules \
-lemcNoisyTowerFinder

CaloCDB_GenStatus_SOURCES = CaloCDB-GenStatus.cc
Expand Down
3 changes: 3 additions & 0 deletions calibrations/calorimeter/calo_cdb/myUtils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
// root includes --
#include <TF1.h>
#include <TFitResult.h>
#include <TH1.h>
#include <TMath.h>

// c++ includes --
#include <memory>
#include <sstream>

TFitResultPtr myUtils::doGausFit(TH1 *hist, Double_t start, Double_t end, const std::string &name)
{
Expand Down
7 changes: 4 additions & 3 deletions calibrations/calorimeter/calo_cdb/myUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
#define CALOCDB_MYUTILS_H

// ROOT includes --
#include <RtypesCore.h>
#include <TFitResultPtr.h>
#include <TH1.h>

// -- c++ includes --
#include <concepts>
#include <filesystem>
#include <fstream>
#include <functional>
#include <iostream>
#include <string>
#include <vector>

class TH1;

template <typename Func>
concept InvocableWithString = std::invocable<Func, const std::string&>;

Expand All @@ -39,7 +40,7 @@ class myUtils
* @return true if the file was successfully opened and read, false otherwise.
*/
template <InvocableWithString Callable> // Using the more general concept for wider applicability
static Bool_t readCSV(const std::filesystem::path& filePath, Callable lineHandler, Bool_t skipHeader = true)
static bool readCSV(const std::filesystem::path& filePath, Callable lineHandler, bool skipHeader = true)
{
std::ifstream file(filePath);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
#include "OnCal.h"
#include "CalReco.h"

#include <fun4all/SubsysReco.h> // for SubsysReco

#include <phool/phool.h> // for PHWHERE

#include <iostream>

OnCal::OnCal(const std::string &Name)
CalReco::CalReco(const std::string &Name)
: SubsysReco(Name)
{
}

int OnCal::process_event(PHCompositeNode * /*topNode*/)
int CalReco::process_event(PHCompositeNode * /*topNode*/)
{
std::cout << "process_event(PHCompositeNode *topNode) not implemented by daughter class: " << Name() << std::endl;
return -1;
}

int OnCal::End(PHCompositeNode * /*topNode*/)
int CalReco::End(PHCompositeNode * /*topNode*/)
{
std::cout << "EndOfAnalysis not implemented by subsystem!" << std::endl;
std::cout << "Use this signal for computing your calibrations and commit." << std::endl;
Expand All @@ -26,7 +26,7 @@ int OnCal::End(PHCompositeNode * /*topNode*/)
return 0;
}

void OnCal::AddComment(const std::string &adcom)
void CalReco::AddComment(const std::string &adcom)
{
if (m_Comment.empty())
{
Expand All @@ -40,7 +40,7 @@ void OnCal::AddComment(const std::string &adcom)
return;
}

int OnCal::CopyTables(const int /*FromRun*/, const int /*ToRun*/, const int /*commit*/) const
int CalReco::CopyTables(const int /*FromRun*/, const int /*ToRun*/, const int /*commit*/) const
{
std::cout << PHWHERE << " CopyTables not implemented" << std::endl
<< "this calibrator cannot copy its own tables" << std::endl;
Expand Down
Loading