Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1179 commits
Select commit Hold shift + click to select a range
d3cc8c1
fixed compilation.
hupereir Jun 17, 2026
4d58b6b
fixed error code.
hupereir Jun 17, 2026
89f9db0
Put struct in the header for other classes
osbornjd Jun 17, 2026
8336d13
Switch propagator call back to template with forced surface reached
osbornjd Jun 17, 2026
4d307f8
Fixed compilation: typename alias has been removed from header.
hupereir Jun 17, 2026
e0f8445
move Aborter back to local definition. On agreement with Joe
hupereir Jun 17, 2026
2bd713a
removed error message.
hupereir Jun 17, 2026
35be54c
Allow to specify cluster map name.
hupereir Jun 17, 2026
ee62be6
removed unneeded svtx_seed_map and seed_map_name
hupereir Jun 17, 2026
c905662
removed _tpc_seed and _si_seed members. They are not necessary
hupereir Jun 17, 2026
4a72ab9
removed _svtx_track and m_event.
hupereir Jun 17, 2026
ad6f6d0
removed trivial destructor
hupereir Jun 17, 2026
400a237
Added PHTrackTrackSeed module, which resynchronize seed from TrackSee…
hupereir Jun 17, 2026
3dd3460
added the possibility to ignore micromegas clusters when comparing tr…
hupereir Jun 17, 2026
82a21d5
Fixed typo
hupereir Jun 17, 2026
c00aec6
check seed index validity before inserting as a good match. This prev…
hupereir Jun 17, 2026
2702e5f
Merge pull request #4306 from hupereir/track_trackseed_synchronization
osbornjd Jun 18, 2026
21f9fed
Merge pull request #4305 from hupereir/acts-propagator-update
osbornjd Jun 18, 2026
ea9058b
added printing seed statistics for PHSeedPruner
hupereir Sep 22, 2025
bc5af2c
added high pt cut, disabled by default.
hupereir Jun 16, 2026
c872f84
removed using namespace std
hupereir Jun 18, 2026
8550c30
Option for v5 vs v6.
Jun 19, 2026
d8866f9
Implements the ability to tilt the TPC envelope in sPHENIX, and attem…
adfrawley Jun 20, 2026
165b1f3
Merge branch 'master' of https://github.com/sPHENIX-Collaboration/cor…
adfrawley Jun 20, 2026
51170d0
replace bizarre value limits by clamp
pinkenburg Jun 20, 2026
1c7b3bb
simplify overriding of calib and field names
pinkenburg Jun 20, 2026
5925529
cleanup override url for data calib
pinkenburg Jun 20, 2026
34ed7c7
cleanup override url for mc calib
pinkenburg Jun 20, 2026
4df2b54
cleanup override url for time calib
pinkenburg Jun 21, 2026
6cfd063
iwyu
pinkenburg Jun 21, 2026
450f84b
fix valgrind leaks, listen to the rabbit
pinkenburg Jun 21, 2026
264fce4
promote NoRunTTree() method to input mgr base class
pinkenburg Jun 21, 2026
044b3e3
Merge pull request #4309 from pinkenburg/waveform-fitting-cleanup
pinkenburg Jun 21, 2026
bf0556b
Merge pull request #4310 from pinkenburg/disable-runnoderead
pinkenburg Jun 21, 2026
aeb7495
trigger jenkins
osbornjd Jun 22, 2026
31e892a
put the debug flag into the data struct
osbornjd Jun 22, 2026
4f21774
add the functions to the base class
osbornjd Jun 22, 2026
e08f803
fix compilation
osbornjd Jun 22, 2026
dd0c6b9
add truth track fitter
yuxdPKU Jun 22, 2026
b907bb5
all of the member variables should now be the correct type
osbornjd Jun 22, 2026
2505444
Update offline/packages/trackreco/PHTrackPruner.cc
hupereir Jun 22, 2026
2f80ad0
try to make everything consistent
osbornjd Jun 22, 2026
dc21c7e
fix rabbit suggestions
osbornjd Jun 22, 2026
2a78951
add crossing to ntp_gtrack
osbornjd Jun 22, 2026
638d7c5
CaloTowerStatus: Z-Score Patch
Steepspace Jun 22, 2026
5e25f6c
clang-tidy
osbornjd Jun 23, 2026
7aef973
make base class and derived classes consistent
osbornjd Jun 23, 2026
3854e03
resolve some clang-tidy issues
osbornjd Jun 23, 2026
bdf6a58
store truth id in truth track seeds
yuxdPKU Jun 23, 2026
e7236e6
Merge pull request #4313 from osbornjd/crossing_eval
osbornjd Jun 23, 2026
38b5c30
Merge pull request #4311 from hupereir/trackpruner-update
osbornjd Jun 23, 2026
edbd44e
fix more inconsistencies and make mixs chars and phi and tbin lo/hi u…
osbornjd Jun 23, 2026
10d5b52
add crossing into vertex tuples
osbornjd Jun 23, 2026
497ed8d
change instantiation from 0s to max or quiet nan
osbornjd Jun 23, 2026
5e357d8
change to char
osbornjd Jun 23, 2026
efd853d
simplify truth id handling in truth fitter
yuxdPKU Jun 24, 2026
524797a
Merge branch 'sPHENIX-Collaboration:master' into feature/truth-track-…
yuxdPKU Jun 24, 2026
cebff85
Merge pull request #4312 from osbornjd/branch
pinkenburg Jun 24, 2026
62cc591
Revert "feat: implement v6 option in tpc clusterizer"
osbornjd Jun 24, 2026
3fd5b69
Merge pull request #4316 from sPHENIX-Collaboration/revert-4312-branch
osbornjd Jun 24, 2026
95f03f6
replace boolean by direct comparison
pinkenburg Jun 24, 2026
802edc3
Merge pull request #4314 from Steepspace/CaloTowerStatus
pinkenburg Jun 24, 2026
3e03d3b
Separate luminosity calculation into its own Subsys reco module (Stre…
dillfitz Jun 24, 2026
1ecfb4b
Read output of StreamingBcoReco into StreamingLumiReco rather than ou…
dillfitz Jun 25, 2026
54554dd
min pt cut set to 0.2 by default.
hupereir Jun 16, 2026
a547e64
added negative and positive charge-separated matrix containers.
hupereir Jun 22, 2026
913c0b2
added accessor to all entries in container.
hupereir Jun 23, 2026
54e9407
Added charge-dependent matrix containers.
hupereir Jun 23, 2026
efe5881
added some debug output
hupereir Jun 23, 2026
c7d6d62
fixed writing charge dependent matrices to output.
hupereir Jun 23, 2026
008bfe7
restored original name
hupereir Jun 23, 2026
4d747f2
add option to ignore edge clusters, as per Christof's suggestion.
hupereir Jun 25, 2026
d42c687
address clang-tidy warnings in truth fitter
yuxdPKU Jun 25, 2026
ad6119f
Merge pull request #4315 from yuxdPKU/feature/truth-track-fitter
osbornjd Jun 25, 2026
58c5b37
Trying again!
Jun 12, 2026
52ecbba
Option for v5 vs v6.
Jun 19, 2026
bb8523a
put the debug flag into the data struct
osbornjd Jun 22, 2026
960d626
add the functions to the base class
osbornjd Jun 22, 2026
ad85069
all of the member variables should now be the correct type
osbornjd Jun 22, 2026
8255740
try to make everything consistent
osbornjd Jun 22, 2026
e23cdf1
fix rabbit suggestions
osbornjd Jun 22, 2026
b3c34e8
make base class and derived classes consistent
osbornjd Jun 23, 2026
4c39ed8
resolve some clang-tidy issues
osbornjd Jun 23, 2026
c3b466d
fix more inconsistencies and make mixs chars and phi and tbin lo/hi u…
osbornjd Jun 23, 2026
33e4134
change instantiation from 0s to max or quiet nan
osbornjd Jun 23, 2026
8ad4113
change to char
osbornjd Jun 23, 2026
c0388d0
restores clustering performance
osbornjd Jun 25, 2026
81cccb7
clang-tidy
hupereir Jun 25, 2026
a9a5359
Implemented coderabbit suggestions. TpcClusterMover initialization, a…
adfrawley Jun 25, 2026
f28f854
Merge branch 'tpc_tilt_simulation2' of github.com:adfrawley/coresoftw…
adfrawley Jun 25, 2026
a4e04a8
use /B for flag instead of /C
osbornjd Jun 25, 2026
7ef1f2b
Merge pull request #4318 from hupereir/track-based-distortions-update
osbornjd Jun 25, 2026
d838577
Merge pull request #4319 from osbornjd/v6impl
osbornjd Jun 25, 2026
d97ac63
Fix screwd up file. Implement coderabbit suggestions. Leave -4 mrad t…
adfrawley Jun 25, 2026
45967b3
Modify check of surface vectors to use radii instead of layer from vo…
adfrawley Jun 25, 2026
4d022db
Merge branch 'master' of https://github.com/sPHENIX-Collaboration/cor…
adfrawley Jun 25, 2026
b810603
Fixed the nedge logic.
Jun 25, 2026
c89585e
Merge pull request #4320 from Ishangoel11/branch
osbornjd Jun 26, 2026
275ed89
Set default TPC tilt angles all to zero after testing.
adfrawley Jun 26, 2026
7f16408
PHGarfield updates for variable electric field and CDB interface.
tkhemmick Jun 26, 2026
7395a6f
fix crash is input file contains no data events
pinkenburg Jun 26, 2026
9171015
check for runnumber flag and do not call EndRun if it does not exist
pinkenburg Jun 26, 2026
4b72c34
clang-tidy fixes
osbornjd Jun 26, 2026
7c2cf32
remove dep on libboost_filesystem.so
pinkenburg Jun 26, 2026
7437470
clear fitter cache to get rid of possible leaks
pinkenburg Jun 26, 2026
dcde384
fix memory leak in CaloTowerBuilder
pinkenburg Jun 26, 2026
682d834
Merge pull request #4321 from tkhemmick/PHGarfield
pinkenburg Jun 27, 2026
565853f
Merge pull request #4322 from pinkenburg/fix-combiner-crash
pinkenburg Jun 27, 2026
0e361eb
Merge pull request #4308 from adfrawley/tpc_tilt_simulation2
osbornjd Jun 27, 2026
7b251ee
Merge pull request #4323 from pinkenburg/fix-valgrind
pinkenburg Jun 27, 2026
0fa4abb
Remove InitRun from StreamingBcoReco
dillfitz Jun 27, 2026
807e1cd
Add functions for the inclusive correction for the INTT carry-over hi…
Jun 29, 2026
9752d75
Merge pull request #4317 from dillfitz/refactor-streaming-lumi
osbornjd Jun 29, 2026
88b9a6c
added method to dump mbd calibs to disk
mchiu-bnl Jun 29, 2026
f9e2535
fixed rabbit complaints
mchiu-bnl Jun 29, 2026
d0130af
fixed rabbit complaints
mchiu-bnl Jun 29, 2026
721cd5a
first version of waveform vector storage
pinkenburg Jun 30, 2026
5f02ced
first version of waveform vector storage for sims
pinkenburg Jun 30, 2026
47b495c
remove obsolete m_pedestalsamples, set default samples to 12
pinkenburg Jun 30, 2026
b1bc5fb
add truth crossing number
osbornjd Jun 30, 2026
31638d5
initialize variables to invalid, not to the CEMC, remove unused m_run…
pinkenburg Jun 30, 2026
574ea90
Properly copy and add sPHENIX primary particles for pileup vertices
hrjheng Jun 30, 2026
7a552c3
Merge pull request #4326 from osbornjd/evaluator_dev
osbornjd Jun 30, 2026
d226e3f
Merge branch 'sPHENIX-Collaboration:master' into sphenixprimary_pileup
hrjheng Jun 30, 2026
50920ff
add zero field line projections
osbornjd Jun 30, 2026
f167aa9
snapshot
pinkenburg Jun 30, 2026
6cba011
EMCal SiPM Occupancy
Jun 30, 2026
2e25565
Merge pull request #4328 from osbornjd/silseed_zf
osbornjd Jul 1, 2026
a009ee5
hide verbosity
osbornjd Jul 1, 2026
d033233
Merge pull request #4330 from osbornjd/verbosity
osbornjd Jul 1, 2026
f880553
photon statistics
Jul 2, 2026
a3d2215
Validate INTT streaming configuration setters
Jul 2, 2026
c49adec
update for SetInttResetFphxBcoVec
Jul 2, 2026
82305e6
Merge pull request #4327 from hrjheng/sphenixprimary_pileup
pinkenburg Jul 2, 2026
6c938c3
Merge pull request #4325 from mchiu-bnl/mbd
pinkenburg Jul 2, 2026
16b22d3
Merge branch 'master' into waveform-vector
pinkenburg Jul 2, 2026
0ba7377
do not produce streamers for virtual base classes (ClassDefOverride = 0)
pinkenburg Jul 2, 2026
444f03b
cleanup of CaloWaveformSim.cc
pinkenburg Jul 2, 2026
c32cbc8
fix clang-tidy
osbornjd Jul 2, 2026
64b9eac
remove old crud, replace Clear() by Reset() for Simv3, implement rabb…
pinkenburg Jul 2, 2026
9164997
tidy
Jul 2, 2026
cae53b4
Merge pull request #4331 from pinkenburg/waveform-vector
pinkenburg Jul 2, 2026
a79db3c
Merge pull request #4324 from ChengWeiShih/InttStreamingDuplication_CW
osbornjd Jul 2, 2026
e58b940
CD: New KFP methods for variable calculation
cdean-github Jul 2, 2026
3eafa37
Merge pull request #4329 from bseidlit/sipmOcc
bseidlit Jul 2, 2026
6f8ee41
CD: Patched DCA calculation in KFParticle
cdean-github Jul 2, 2026
bdedb9e
Update offline/packages/KFParticle_sPHENIX/KFParticle_eventReconstruc…
cdean-github Jul 2, 2026
d712e8a
Update offline/packages/KFParticle_sPHENIX/KFParticle_Tools.cc
cdean-github Jul 2, 2026
881bc72
CD: CPP check suggestions
cdean-github Jul 2, 2026
4104405
Merge branch 'master' of github.com:cdean-github/coresoftware
cdean-github Jul 2, 2026
3160f52
Update CaloStatusSkimmer.cc
nk7252 Jul 3, 2026
d16b8f8
Update CaloStatusSkimmer.cc
nk7252 Jul 3, 2026
2b2daff
use common encode/decode in base class, replace Clear() by Reset()
pinkenburg Jul 3, 2026
a747607
Merge branch 'master' into fix-towerinfo
pinkenburg Jul 3, 2026
9207f2f
Merge pull request #4333 from nk7252/turn-of-abort-for-missing-sEPD-t…
pinkenburg Jul 3, 2026
7036b8e
use common get_channel, add TowerInfov5 for variable size waveform sa…
pinkenburg Jul 3, 2026
093ddb3
include what you use
pinkenburg Jul 3, 2026
622223b
clang-format
pinkenburg Jul 3, 2026
c85cd80
include what you use
pinkenburg Jul 3, 2026
6269cc5
fixthe copy ctors to make deep copies
pinkenburg Jul 3, 2026
67e7fbf
fix clang-tidy
pinkenburg Jul 3, 2026
b6f5891
Merge pull request #4334 from pinkenburg/fix-towerinfo
pinkenburg Jul 4, 2026
4f13e96
CD: Trying to make Jenkins happy
cdean-github Jul 7, 2026
6616fbb
Start implementing specifying the (local) alignment parameter file.
hupereir Jul 7, 2026
af2a2a9
Make sure that alignmentParamsFile is not an empty string before open…
hupereir Jul 8, 2026
6616e60
Improves diagnostic output to the log file, showing what TPC position…
adfrawley Jul 8, 2026
3c1c131
Merge branch 'master' of https://github.com/sPHENIX-Collaboration/cor…
adfrawley Jul 8, 2026
80c0403
Merge pull request #4335 from hupereir/local_alignment_params_file
osbornjd Jul 8, 2026
8548efc
Merge branch 'master' into tilt_tests
osbornjd Jul 9, 2026
5ea833f
fix uninitialized var use, removenot needed casts
pinkenburg Jul 9, 2026
f805801
Copy data MBD PMT container for data embeding
Jul 9, 2026
a9ca7eb
Merge pull request #4336 from adfrawley/tilt_tests
osbornjd Jul 9, 2026
867a5e5
Merge pull request #4338 from bseidlit/sipmOcc
bseidlit Jul 9, 2026
d46d136
Merge pull request #4337 from pinkenburg/fix-uspin
pinkenburg Jul 9, 2026
60ef640
fix another source of uninit vars
pinkenburg Jul 10, 2026
aade988
Merge pull request #4339 from pinkenburg/fix-uspin-2
pinkenburg Jul 10, 2026
fe708c0
set aveform to zero if pedestal is zero (dead channel)
pinkenburg Jul 10, 2026
222baa7
Add TrkrHitv3 for INTT BCO payload
Jul 10, 2026
5149307
Changed laserClusters to store hitsetkey, hitkey, and adc for hits ra…
bkimelman Jul 10, 2026
e711842
commit of lam fits as is, no updated for new clusters yet
bkimelman Jul 10, 2026
8f07569
Adding new parameters to evaluator.
Jul 10, 2026
b83b7b5
Adding new parameters to evaluator.
Jul 10, 2026
d810113
Adding v6 parameters also.
Jul 10, 2026
0fb9f6b
propagate single zero samples properly
pinkenburg Jul 13, 2026
c31a3b7
fix typo
pinkenburg Jul 13, 2026
533edc4
comment better
pinkenburg Jul 13, 2026
5cb9b53
Merge pull request #4340 from pinkenburg/fix-g4waveform
pinkenburg Jul 14, 2026
dba3586
add truth hit interpolation in truth fitter
yuxdPKU Jul 14, 2026
6e2a2b9
Input gl1rawhitdst for luminosity calculation instead of gl1 raw data…
dillfitz Jul 14, 2026
b2a4bcb
Add collision time to vtx ntuple
pinkenburg Jul 14, 2026
bba93d2
make enum explicit, do not rely on order
pinkenburg Jul 14, 2026
c17bebe
Merge pull request #4344 from Ishangoel11/branch
osbornjd Jul 14, 2026
ae287ca
default value of getFPHXBCO changes to max()
Jul 14, 2026
07f96cf
Fix clangtidy errors
dillfitz Jul 14, 2026
544e355
Merge pull request #4347 from pinkenburg/small-fixes
pinkenburg Jul 14, 2026
2523ff4
hide truth interpolation data members
yuxdPKU Jul 15, 2026
b49afae
Merge pull request #4345 from yuxdPKU/feature/truth-track-fitter
osbornjd Jul 15, 2026
69c551d
Merge pull request #4342 from ChengWeiShih/CarryOverHitStream
osbornjd Jul 15, 2026
cba2740
Merge pull request #4346 from dillfitz/use-gl1rawhit-dst
osbornjd Jul 15, 2026
3eb8ee6
Micromegas and Silicon side drift calibration QA modules with coderab…
Jul 14, 2026
e12f3dc
Vector size allocation fix
Jul 15, 2026
9c9f4a3
CD: Jenkins complaint
cdean-github Jul 16, 2026
5c96389
allow truth seeding of secondary particles
yuxdPKU Jul 17, 2026
f205ad6
allow disabling the Acts material map
yuxdPKU Jul 17, 2026
4ea03ae
fix clang-tidy
osbornjd Jul 17, 2026
aef5f19
Merge pull request #4349 from yuxdPKU/feature/truth-track-fitter
osbornjd Jul 20, 2026
e52324e
Merge remote-tracking branch 'upstream/master' into laserCluster_hitC…
bkimelman Jul 20, 2026
ad1c3c7
Added helper class for new modified version of laser clusters and imp…
bkimelman Jul 20, 2026
b3c5669
Fixes from Coderabbit
bkimelman Jul 20, 2026
efa5e4b
TPOT and Silicon side subsysreco modules for drift velocity calibrations
Jul 20, 2026
8fc060d
moved into calib
Jul 20, 2026
f3e7ccf
Unit correction and clang-format
Jul 21, 2026
fb735ed
add charged geantino ionization module
Jul 21, 2026
c7e46c6
update PHG4GeantinoIonization
Jul 21, 2026
b3bf24a
ACTS fitter fix for an empty material map
Jul 21, 2026
42f0426
Relax missing tower handling in CaloStatusSkimmer
nk7252 Jul 21, 2026
0e1300e
Merge pull request #4348 from badesayki/drift
pinkenburg Jul 21, 2026
76103a1
clang-tidy fixes
bkimelman Jul 21, 2026
8a69fcb
Implemented CodeRabbit suggestion
Jul 21, 2026
53ad128
Removed unnecessary calls to Acts and Tpc geometry
bkimelman Jul 21, 2026
1074d31
clang-tidy errors
Jul 21, 2026
696164e
more clang-tidy errors
Jul 21, 2026
0fe9dc0
updated MB classifier for O+O and species dependence
Jul 21, 2026
b072706
Merge pull request #4353 from nk7252/correct-calostatusskimmer-couts
pinkenburg Jul 22, 2026
c39c322
make some functions virtual to inherit
hahahachiya Jul 22, 2026
a4a536d
read TPC gas fractions from geometry
Jul 22, 2026
b84e8b0
load serialized TPC geometry for geantino ionization
Jul 22, 2026
aaeddcd
suppress clang-tidy warning
pinkenburg Jul 22, 2026
1a787d9
fix GetNode method + Centrality Reco Reset
Jul 22, 2026
8bc5f37
Merge branch 'sPHENIX-Collaboration:master' into master
pjwinnetou Jul 22, 2026
491b524
auto generate pcm files from ROOTDICTS
pinkenburg Jul 22, 2026
5c5c1f7
Merge pull request #4351 from badesayki/subsysrecos
pinkenburg Jul 22, 2026
577e633
additional clang-tidy fixes
bkimelman Jul 22, 2026
f124eca
revert surface lookup
osbornjd Jul 22, 2026
bfcf5b4
Generate TFile name which makes TFile binary reproducible
pinkenburg Jul 22, 2026
940f159
create binary identical TFiles for identical content in PHTFileServer
pinkenburg Jul 22, 2026
61820f8
create binary identical TFiles for identical content in CDB objects
pinkenburg Jul 22, 2026
e350b46
create binary identical TFiles for identical content in PdbParameterM…
pinkenburg Jul 22, 2026
5290637
create binary identical TFiles for identical content in PHParameter
pinkenburg Jul 22, 2026
29102d1
add missing include
pinkenburg Jul 22, 2026
211848c
use proper include guard
osbornjd Jul 22, 2026
7aef5cd
a better fix which properly handles approach surfaces
osbornjd Jul 22, 2026
919887e
Merge pull request #4357 from pinkenburg/reproducible-tfiles
pinkenburg Jul 22, 2026
f6ae650
clang-tidy
osbornjd Jul 23, 2026
0838ee3
Merge pull request #4356 from hahahachiya/master
osbornjd Jul 23, 2026
33e5d53
Merge pull request #4352 from yuxdPKU/geantino-ionization
osbornjd Jul 23, 2026
d1f6f59
Merge pull request #4350 from bkimelman/laserCluster_hitChange
osbornjd Jul 23, 2026
51e02ff
Merge pull request #4332 from cdean-github/master
osbornjd Jul 23, 2026
87658d9
Merge branch 'sPHENIX-Collaboration:master' into master
pjwinnetou Jul 23, 2026
de59c12
remove redundant explicit Reset in CentralityReco::process_event
Jul 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
142 changes: 142 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
tone_instructions: >-
Be respectful, concise, and educational. Assume physicist contributors. Prioritize correctness and
safety. Ignore purely stylistic issues and Minor/Trivial/Info items.
reviews:
high_level_summary_instructions: >-
Write a concise PR summary for a scientific collaboration.

Include:

- Motivation / context

- Key changes (bullets)

- Potential risk areas (IO format changes, reconstruction behavior changes, thread-safety,
performance)

- Possible future improvements


Add an emphasis that AI can make mistakes and use best judgment when reading
estimate_code_review_effort: false
suggested_labels: false
suggested_reviewers: false
in_progress_fortune: false
poem: false
enable_prompt_for_ai_agents: false
path_filters:
- '!**/build/**'
- '!**/install/**'
- '!**/*.root'
- '!**/*.pdf'
- '!**/*.png'
- '!**/*.jpg'
- '!**/*.gif'
- '!**/*.zip'
- '!**/*.tar.gz'
- '!**/*.so'
- '!**/*.dylib'
- '!**/*.a'
- '!**/*.o'
path_instructions:
- path: '**/*.{h,hpp,hxx,hh}'
instructions: >-
Focus on API clarity/stability, ownership semantics (RAII), and avoiding raw new/delete.

If interfaces change, ask for compatibility notes and any needed downstream updates.


Only raise Critical or Major findings. Do not post minor style, formatting, naming, or
“nice-to-have” refactors.
- path: '**/*.{cc,cpp,cxx,c}'
instructions: >-
Prioritize correctness, memory safety, error handling, and thread-safety.

Flag hidden global state, non-const singletons, and unclear lifetime assumptions.


Only raise Critical or Major findings. Do not post minor style, formatting, naming, or
“nice-to-have” refactors.
- path: '**/*.C'
instructions: Do NOT review these files
- path: '**/CMakeLists.txt'
instructions: |
Check for modern CMake target usage, correct scoping, and avoiding global flags.
auto_review:
ignore_title_keywords:
- WIP
- DRAFT
- DO NOT MERGE
- RFC
finishing_touches:
unit_tests:
enabled: false
pre_merge_checks:
docstrings:
mode: 'off'
title:
mode: 'off'
description:
mode: 'off'
issue_assessment:
mode: 'off'
custom_checks:
- mode: 'off'
name: Test plan present
instructions: >
Check that the PR description includes a "Testing" or "Test Plan" section with at least
one bullet.

Accept: unit test, integration test, or example macro/validation command.
- mode: 'off'
name: Physics/reco impact noted (if applicable)
instructions: >
If the PR changes reconstruction outputs, calibration constants, or simulation behavior,

ensure the description states expected analysis impact and whether reprocessing is
required.
tools:
swiftlint:
enabled: false
phpstan:
enabled: false
phpmd:
enabled: false
golangci-lint:
enabled: false
detekt:
enabled: false
pmd:
enabled: false
chat:
art: false
integrations:
jira:
usage: disabled
linear:
usage: disabled
knowledge_base:
code_guidelines:
filePatterns:
- CONTRIBUTING.md
- docs/**
- .github/*.md
learnings:
scope: global
jira:
usage: disabled
code_generation:
docstrings:
path_instructions:
- path: '**/*.{h,hpp,hh,hxx,cc,cpp,cxx,C}'
instructions: >-
Use Doxygen-style documentation, Link to example caller function if available. ONLY add
docstrings where none exist. Do NOT modify, rewrite, or reformat any existing
docstrings/comments. If a function already has a docstring (even if incomplete), leave it
unchanged.
issue_enrichment:
planning:
enabled: false
auto_planning:
enabled: false
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
Loading