Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2248 commits
Select commit Hold shift + click to select a range
9a0f34c
Merge pull request #661 from osbornjd/clusterv
osbornjd Aug 4, 2023
9e58a2f
add missing include
pinkenburg Aug 4, 2023
e660e78
Merge pull request #662 from pinkenburg/fix-Trkr_TruthTables
pinkenburg Aug 4, 2023
aa6018d
Option in driving macro to do track matching w/ clusters
david-stewart Aug 9, 2023
5829b20
Update for better user usage of flags to match tracks.
david-stewart Aug 9, 2023
cc1e3b4
Merge pull request #663 from david-stewart/track_matching
osbornjd Aug 10, 2023
068159f
remove commented out includes to de-confues grep
pinkenburg Aug 10, 2023
9094655
Merge pull request #664 from pinkenburg/remove-commented-out-includes
pinkenburg Aug 10, 2023
48d6ae2
removing position dept correction file call
Aug 12, 2023
93dc5bc
Merge pull request #666 from bseidlit/devPosCor2
pinkenburg Aug 13, 2023
e0be19d
Merge branch 'master' of github.com:sPHENIX-Collaboration/macros into…
osbornjd Aug 15, 2023
f02dd6f
adapt cosmic macro to new scheme
osbornjd Aug 15, 2023
a9eec5f
Merge pull request #667 from osbornjd/cosmics
osbornjd Aug 15, 2023
d97ab98
renamed BbcReconstruction to BbcReco
mchiu-bnl Aug 16, 2023
7b73f7e
Merge pull request #668 from mchiu-bnl/mbd
pinkenburg Aug 17, 2023
3ffcee3
update cosmics macro to work with const field
osbornjd Aug 24, 2023
d21df95
clang-format
osbornjd Aug 24, 2023
a1392c0
Merge pull request #669 from osbornjd/const_field
osbornjd Aug 24, 2023
e4cce59
update main tracking macro
osbornjd Aug 24, 2023
dfc9715
Merge pull request #670 from osbornjd/const_field
osbornjd Aug 25, 2023
7e76058
add eventcombiner
pinkenburg Aug 29, 2023
e22f25d
Merge pull request #671 from pinkenburg/eventcombiner
pinkenburg Aug 29, 2023
51b8fb4
updated cosmics macro
osbornjd Sep 18, 2023
a1a78d9
Merge pull request #675 from osbornjd/cosmics
osbornjd Sep 18, 2023
f1727e4
update InttProduction with latest macro/script
pinkenburg Sep 23, 2023
731d67d
Merge pull request #676 from pinkenburg/update-intt-prod
pinkenburg Sep 23, 2023
068ccfd
remove obsolete intt file lists
pinkenburg Sep 23, 2023
3362d78
Merge pull request #677 from pinkenburg/remove-inttlists
pinkenburg Sep 23, 2023
6482dba
Add Tpc Combiner macro
pinkenburg Oct 4, 2023
7d8c9b5
Merge pull request #678 from pinkenburg/tpc-combine
pinkenburg Oct 4, 2023
9ff8834
ycm adding macros and script for MvtxProduction
Oct 4, 2023
ee38996
ycm register MVTX streaming input
Oct 4, 2023
f89e40a
Merge pull request #679 from ycorrales/master
pinkenburg Oct 6, 2023
43b92ab
add two new required entries
pinkenburg Oct 12, 2023
21bd9c9
Merge pull request #680 from pinkenburg/fix-cdbjson
pinkenburg Oct 12, 2023
2ed3dbc
Initial commit of pre-QM production macro
Oct 12, 2023
4945e41
Merge pull request #681 from ahodges21/master
pinkenburg Oct 12, 2023
3e18469
add delete functions to CDBUtils.C
pinkenburg Oct 13, 2023
72cd4d9
Merge pull request #682 from pinkenburg/cdbutils-2
pinkenburg Oct 13, 2023
6571486
Bad local code removal
Oct 17, 2023
7552c37
Merge branch 'sPHENIX-Collaboration:master' into master
ahodges21 Oct 17, 2023
c3cc9ba
use intt pool input
pinkenburg Oct 17, 2023
ee0c110
Merge pull request #683 from pinkenburg/intt-pool
pinkenburg Oct 17, 2023
c8e8936
Added CDB interface for add calorimeter geometry node
Oct 17, 2023
57a7e51
Merge branch 'sPHENIX-Collaboration:master' into master
ahodges21 Oct 17, 2023
2414d77
Merge pull request #684 from ahodges21/master
bseidlit Oct 17, 2023
e284768
add zdc calib towers to production macro
eumaka Oct 18, 2023
b3c0939
Merge pull request #686 from eumaka/patch-5
bseidlit Oct 19, 2023
37b7960
changed bbc names to mbd names
mchiu-bnl Oct 24, 2023
9933853
changed bbc names to mbd names
mchiu-bnl Oct 24, 2023
b42d70e
changed bbc names to mbd names
mchiu-bnl Oct 24, 2023
c3dca6c
adding calo production macro with HCals EMCal and ZDC
Oct 24, 2023
f8f372e
Merge pull request #688 from bseidlit/master
pinkenburg Oct 24, 2023
38be383
Merge branch 'sPHENIX-Collaboration:master' into mbd
mchiu-bnl Oct 24, 2023
b4cc0d8
check for runnumber arg
pinkenburg Oct 24, 2023
c126694
check for runnumber arg
pinkenburg Oct 24, 2023
0f3d7d3
use tpc pool input mgr
pinkenburg Oct 24, 2023
c6cd1a5
Merge pull request #689 from pinkenburg/tpc-combiner
pinkenburg Oct 24, 2023
434339b
Merge branch 'sPHENIX-Collaboration:master' into mbd
mchiu-bnl Oct 25, 2023
24ece53
removed G4_Bbc
mchiu-bnl Oct 25, 2023
4cb01ab
removed G4_Bbc
mchiu-bnl Oct 25, 2023
25be526
change names from bbc to mbd
mchiu-bnl Oct 25, 2023
48ea7a9
name switch
mchiu-bnl Oct 25, 2023
2ce9b1d
use utility to parse filename for run number/segment, create proper o…
pinkenburg Oct 25, 2023
5532e63
Merge pull request #690 from pinkenburg/fix-year1-macro
pinkenburg Oct 25, 2023
c8bd549
set cdb verbosity to 1, and move it to the cdb part of the macro
pinkenburg Oct 26, 2023
dfe51c4
Merge pull request #691 from pinkenburg/cdb-verbosity
pinkenburg Oct 26, 2023
65c7040
Merge pull request #687 from mchiu-bnl/mbd
osbornjd Oct 26, 2023
5449b3f
Added BBC/MBD reconstruction
mchiu-bnl Oct 26, 2023
b14e86f
Merge pull request #692 from mchiu-bnl/mbd
pinkenburg Oct 26, 2023
699d76a
set cdb tag to 2023p002
pinkenburg Oct 26, 2023
8eb7a1a
Merge pull request #693 from pinkenburg/cdb-tag
pinkenburg Oct 26, 2023
faf7620
rename Intt() function to Intt_Sim to avoid clash with Intt namespace
pinkenburg Oct 27, 2023
43e1855
rename Intt() function to Intt_Sim to avoid clash with Intt namespace
pinkenburg Oct 27, 2023
80c9e50
Merge pull request #695 from pinkenburg/rename-intt
pinkenburg Oct 27, 2023
ffcd0c7
Revert "Rename intt"
pinkenburg Oct 27, 2023
a1ca84b
Merge pull request #696 from sPHENIX-Collaboration/revert-695-rename-…
pinkenburg Oct 27, 2023
658df9f
Reflect new location for `qautils/QAHistManagerDef.h`
blackcathj Oct 29, 2023
2ca01d8
Merge pull request #698 from sPHENIX-Collaboration/QAHistManagerDef-n…
blackcathj Oct 29, 2023
d7be80b
adjust Fun4All_Year1.C for new tower builder
pinkenburg Oct 31, 2023
5db22c9
clang-format
pinkenburg Oct 31, 2023
54269f5
Merge pull request #699 from pinkenburg/fix-year1
pinkenburg Oct 31, 2023
6136dbb
set global tag to 2023p003
pinkenburg Oct 31, 2023
82c2b68
Merge pull request #700 from pinkenburg/gt-2023p003
pinkenburg Oct 31, 2023
b971740
use libmbd instead of libmbd_io
pinkenburg Nov 1, 2023
b8d7284
Merge pull request #701 from pinkenburg/fix-mbd
pinkenburg Nov 1, 2023
b4bf28a
add loading of libmbd.so to G4_Mbd.C
pinkenburg Nov 1, 2023
83dbe7d
Merge pull request #702 from pinkenburg/fix-mbd-again
pinkenburg Nov 1, 2023
da68452
add global vertex to Fun4All_Year1.C
eumaka Nov 3, 2023
a7667b9
Merge pull request #703 from eumaka/patch-6
bseidlit Nov 3, 2023
ddd3f42
add streaming combiner
pinkenburg Nov 6, 2023
e02cd2b
Merge pull request #704 from pinkenburg/add-streaming
pinkenburg Nov 6, 2023
041b18c
use pool input mgr for mvtx
pinkenburg Nov 6, 2023
e4e164d
ycm lowering verbosity and change output file name
Nov 7, 2023
5f802fd
Merge pull request #705 from ycorrales/master
pinkenburg Nov 8, 2023
ccd694b
add hijing and beam diamond options
pinkenburg Nov 8, 2023
97cb87a
add hijing flipper
pinkenburg Nov 8, 2023
dea9ff7
Merge branch 'master' into add-hijingflipper
pinkenburg Nov 8, 2023
c7fe768
Merge pull request #706 from pinkenburg/add-hijingflipper
pinkenburg Nov 8, 2023
da3f473
add mvtx
pinkenburg Nov 8, 2023
c0578e9
Merge pull request #707 from pinkenburg/add-mvtx-stream
pinkenburg Nov 8, 2023
c5d8c4e
add hitset unpacker macro for cosmics
osbornjd Nov 8, 2023
bc07a0c
Merge pull request #708 from osbornjd/trk_hitunpack
osbornjd Nov 8, 2023
5c0364e
changing number of samples used for EMCal signal extraction
Nov 10, 2023
ff5af8b
Merge pull request #709 from bseidlit/master
bseidlit Nov 10, 2023
9de1020
added calo status setters
Nov 11, 2023
8ffc352
Merge pull request #710 from bseidlit/master
bseidlit Nov 11, 2023
8e5d528
add clustering
osbornjd Nov 13, 2023
d082ed5
Merge pull request #711 from osbornjd/trk_hitunpack
osbornjd Nov 13, 2023
702ff41
update macro to build tracks
osbornjd Nov 14, 2023
15932d3
use filelist
osbornjd Nov 14, 2023
e23e21c
Merge pull request #713 from osbornjd/trk_hitunpack
osbornjd Nov 14, 2023
f7812e0
remove filelist
osbornjd Nov 15, 2023
481c7c8
Merge pull request #714 from osbornjd/trk_hitunpack
osbornjd Nov 15, 2023
717038f
Remove setting of INTT offsetphi from macro. Default is properly set …
adfrawley Nov 15, 2023
578634d
Enable per-module time tracking
blackcathj Nov 15, 2023
1ec4285
Merge pull request #715 from sPHENIX-Collaboration/blackcathj-unpack-…
osbornjd Nov 15, 2023
de05493
Merge pull request #716 from adfrawley/intt_macros_default
adfrawley Nov 16, 2023
f537691
add header reco to Fun4All_Year1.C
pinkenburg Nov 16, 2023
4f722dd
Merge pull request #717 from pinkenburg/add-headreco
pinkenburg Nov 16, 2023
2ae40f9
update cdb tag to 2023p004
pinkenburg Nov 18, 2023
cc3a4a2
Merge pull request #718 from pinkenburg/2023p004
pinkenburg Nov 18, 2023
18f87fa
adding zero supressed calo nodes and switching to towerinfov3 to add …
Nov 18, 2023
97f19bf
Merge pull request #719 from bseidlit/master
bseidlit Nov 19, 2023
6925c08
move se->registerSubsystem(clusterCorrection)
pinkenburg Nov 19, 2023
b107da8
Merge pull request #720 from pinkenburg/reshuffle-year1
pinkenburg Nov 19, 2023
d89a49c
update unpacker to only create output hitset dst
osbornjd Nov 21, 2023
1912802
strip nodes
osbornjd Nov 21, 2023
9bd8985
remove stripping of mvtx event header
osbornjd Nov 21, 2023
f142afb
iwyu
osbornjd Nov 21, 2023
373c51d
load g4dst.so to resolve all objects on the DST
pinkenburg Nov 22, 2023
0bd4120
Merge pull request #721 from osbornjd/update_tracking
blackcathj Nov 23, 2023
d572073
new macros for fall23 production based calibrations
jtaou Nov 23, 2023
9702ed7
Merge branch 'frantz_nov23_1' of github.com:jtaou/macros into frantz_…
jtaou Nov 23, 2023
6650c00
Merge pull request #722 from jtaou/frantz_nov23_1
bseidlit Nov 25, 2023
8f16403
adding little macros to help transform calibarations
Nov 25, 2023
6b328b2
Merge pull request #723 from bseidlit/master
bseidlit Nov 25, 2023
819db9a
Update rings_do_eta_fit2_emc.C
jtaou Nov 25, 2023
51cedc6
Merge pull request #724 from jtaou/frantz_nov23_1
pinkenburg Nov 26, 2023
6351aa4
finishing up calibration management for tower slope step, pulls down …
Nov 27, 2023
f6e216a
Merge pull request #725 from bseidlit/master
bseidlit Nov 27, 2023
45a1329
first pi0 macros for nov23 calib
jtaou Nov 27, 2023
00c8f57
Merge pull request #726 from jtaou/frantz_nov23_2
bseidlit Nov 27, 2023
80d47ab
added cosmic muon generator
Shuonli Nov 27, 2023
5bc6555
Merge pull request #727 from Shuonli/cosmics
pinkenburg Nov 28, 2023
5e48f7d
adding timing cuts config in macro
Nov 29, 2023
31cc021
Merge pull request #728 from bseidlit/master
bseidlit Nov 29, 2023
e148ce3
update cosmics reco
osbornjd Nov 30, 2023
2f3fa60
Merge pull request #729 from osbornjd/cosmic_development
osbornjd Nov 30, 2023
f239f10
emphasize dependence of SvtxEvaluator on global reco
Dec 5, 2023
6e0f831
Merge pull request #730 from petermic/master
osbornjd Dec 5, 2023
b7f9295
adding semi-parallel macro set and run script for full automated EMCa…
Dec 8, 2023
439ce39
Update Fun4All_EMCal.C
pinkenburg Dec 8, 2023
53644c3
Merge pull request #731 from bseidlit/master
pinkenburg Dec 8, 2023
39f4339
fixing oth iteration bug (no inputdata.txt)
Dec 9, 2023
5625df0
Merge branch 'master' of github.com:bseidlit/macros
Dec 9, 2023
cab7ee9
fix order of global_reco
osbornjd Dec 26, 2023
3c6c058
Merge pull request #732 from osbornjd/glb_reco
osbornjd Dec 26, 2023
39eac27
Merge branch 'master' of github.com:sPHENIX-Collaboration/macros into…
osbornjd Dec 27, 2023
341f741
Merge branch 'sPHENIX-Collaboration:master' into master
bseidlit Dec 27, 2023
eae6044
Merge pull request #733 from bseidlit/master
bseidlit Dec 27, 2023
64a7327
iterative silicon seeding works
osbornjd Dec 29, 2023
6f9795d
clang-format
osbornjd Dec 29, 2023
ca8a7c1
add intt runnumbers
Jan 2, 2024
f4abef5
Merge pull request #734 from danjlis/addINTTList
pinkenburg Jan 2, 2024
420f5e7
adding calo validation plotting macro in a random spot. Will need ed…
Jan 2, 2024
60f2bad
Merge pull request #735 from bseidlit/master
pinkenburg Jan 2, 2024
67e8564
update iterative seeding
osbornjd Jan 2, 2024
d075e5c
runlists for preliminary calibration and some small additions
Jan 2, 2024
104e806
Merge pull request #736 from bseidlit/master
bseidlit Jan 2, 2024
63a705e
fix verbosity and map name
osbornjd Jan 2, 2024
0e0c448
Merge pull request #737 from osbornjd/iterative_siliconseeding
osbornjd Jan 3, 2024
ac5d3d3
move converter
osbornjd Jan 3, 2024
7bf508e
adding a little plotting code
Jan 3, 2024
463eb1d
Merge pull request #739 from bseidlit/master
bseidlit Jan 3, 2024
f6d5184
Merge pull request #738 from osbornjd/converter
osbornjd Jan 3, 2024
8a368dd
add setter for extended readout for tpot
osbornjd Jan 4, 2024
a889052
fix tpc readout time setting also
osbornjd Jan 5, 2024
bb760ca
add CDBUtils.C to common macros
pinkenburg Jan 5, 2024
65f3570
Merge pull request #741 from pinkenburg/add-cdbutils
pinkenburg Jan 5, 2024
35c3c21
propagate globel support and absorber enable
pinkenburg Jan 8, 2024
7afabf6
Merge pull request #742 from pinkenburg/fix-trkrsims
pinkenburg Jan 8, 2024
09ee3e2
change tpc to modify streaming time
osbornjd Jan 9, 2024
57640d1
Merge pull request #740 from osbornjd/tpot_streaming
osbornjd Jan 10, 2024
4d865ef
djl -- got rid of verbosity
Jan 11, 2024
100b142
Merge pull request #743 from danjlis/year1_centrality
pinkenburg Jan 11, 2024
bf4ff0e
adding calo validation pkg to yea1 macro and a new root file output f…
Jan 11, 2024
d4b30d1
Merge pull request #744 from bseidlit/master
bseidlit Jan 11, 2024
6bcf7b8
add option for reaction plane angle afterburner
Shuonli Jan 12, 2024
e838f68
Merge pull request #745 from Shuonli/master
pinkenburg Jan 12, 2024
3529024
add bco range to intt
pinkenburg Jan 17, 2024
7c8338d
add bco range to intt
pinkenburg Jan 17, 2024
45053c6
Merge pull request #746 from pinkenburg/intt-bco
pinkenburg Jan 17, 2024
acabbb4
Add absorberactive setting for mvtx
pinkenburg Jan 22, 2024
fd1abe9
Merge pull request #747 from pinkenburg/mvtx-absorber
pinkenburg Jan 22, 2024
fa232be
update cosmic macros with new filepath
osbornjd Jan 23, 2024
c67fd26
Merge pull request #748 from osbornjd/update_cosmic_macros
osbornjd Jan 23, 2024
69a4247
update to new cosmic seeding scheme
osbornjd Jan 26, 2024
9de58ba
clang-format
osbornjd Jan 26, 2024
5e566e8
Merge pull request #749 from osbornjd/cosmic_development
osbornjd Jan 26, 2024
accb5a1
adding 2023 emcal tracking macros and project
Jan 29, 2024
2690f35
Merge pull request #750 from bseidlit/devTS
bseidlit Jan 29, 2024
9b0698d
add prelim hot map
osbornjd Feb 7, 2024
e1bf3eb
Merge pull request #751 from osbornjd/intt_hot_map
osbornjd Feb 7, 2024
da418bd
implement mvtx support
pinkenburg Feb 7, 2024
5723f54
Merge pull request #752 from pinkenburg/mvtx-support
pinkenburg Feb 7, 2024
21719f6
djl -- fixed order of MBC and CentralityReco modules
Feb 9, 2024
07fd868
Merge pull request #753 from danjlis/year1_centrality
pinkenburg Feb 9, 2024
93ce919
Add enabling of support structure hits for micromegas
pinkenburg Feb 9, 2024
6552465
Merge pull request #754 from pinkenburg/micromegas-support
pinkenburg Feb 9, 2024
41a97bb
EMCal calib update, run lsts, and procedure
Feb 19, 2024
58ba2ec
Merge branch 'master' of github.com:bseidlit/macros into devTS
Feb 20, 2024
adfd3df
Merge pull request #755 from bseidlit/devTS
bseidlit Feb 20, 2024
57f7a08
update to latest production
osbornjd Feb 20, 2024
cdeb377
Merge pull request #756 from osbornjd/cosmic_development
osbornjd Feb 20, 2024
1624032
add nonzero field option and update macro
osbornjd Feb 22, 2024
d79d054
clang-format
osbornjd Feb 22, 2024
7a68fe3
Merge pull request #757 from osbornjd/cosmics
osbornjd Feb 23, 2024
641f5a3
add qa modules
osbornjd Feb 24, 2024
de91580
Merge pull request #758 from osbornjd/updateMacro
osbornjd Feb 24, 2024
3a1bd98
use InputManagerType enum for subsystems
pinkenburg Feb 28, 2024
4bd5bf3
use InputManagerType enum for subsystems
pinkenburg Feb 28, 2024
e5df834
add Fun4All_Tpot_Combiner.C
pinkenburg Feb 28, 2024
299e828
use InputManagerType enum for subsystems
pinkenburg Feb 28, 2024
712574f
use InputManagerType enum for subsystems
pinkenburg Feb 28, 2024
875e53c
add Fun4All_Gl1_Combiner.C
pinkenburg Feb 28, 2024
fdd34c0
Merge pull request #759 from pinkenburg/inputmgr-enum
pinkenburg Feb 28, 2024
08daa4f
CD: Made INTT combiner work standalone
cdean-github Mar 2, 2024
2f4db3b
Merge pull request #760 from cdean-github/master
pinkenburg Mar 5, 2024
97d2c27
add hit unpackers and update tpc drift velocity
osbornjd Mar 5, 2024
868bc74
clang format
osbornjd Mar 5, 2024
c7a0da8
Merge pull request #761 from osbornjd/update_hitunpacking
osbornjd Mar 5, 2024
10b58b1
Add preliminary distortion correction for pp mode. Add flags for CA s…
adfrawley Mar 7, 2024
25f8dcb
update cosmic seeding
osbornjd Mar 7, 2024
dec5d99
Added DISTORTIONS_USE_PHI_AS_RADIANS flag to define distortion map fo…
hupereir Mar 7, 2024
6d5bf06
use G4TPC::DISTORTIONS_USE_PHI_AS_RADIANS
hupereir Mar 7, 2024
db77418
use G4TPC::DISTORTIONS_USE_PHI_AS_RADIANS
hupereir Mar 7, 2024
fd496f4
use G4TPC::DISTORTIONS_USE_PHI_AS_RADIANS
hupereir Mar 7, 2024
3261969
use G4TPC::DISTORTIONS_USE_PHI_AS_RADIANS
hupereir Mar 7, 2024
31acbf1
Merge pull request #764 from hupereir/distortion_flags
osbornjd Mar 7, 2024
b0fd6cb
turn on cluster mover in actsFit
hupereir Mar 7, 2024
c8e0e62
Add preliminary distortion correction module to Trkr_Reco.
adfrawley Mar 8, 2024
ffd905e
Merge branch 'master' of https://github.com/sPHENIX-Collaboration/mac…
adfrawley Mar 8, 2024
b21e343
Fixed verbosity setting.
adfrawley Mar 8, 2024
328954d
Merge pull request #762 from osbornjd/cosmic_seeding
osbornjd Mar 8, 2024
f685e78
Merge pull request #765 from hupereir/truth-reco
osbornjd Mar 8, 2024
19c6a57
Merge pull request #766 from adfrawley/pp_distortion_corrections
osbornjd Mar 8, 2024
fe5f147
read gdml from cdb, make old ring optional (default on)
pinkenburg Mar 8, 2024
673df9e
Merge pull request #767 from pinkenburg/read-gdml-cdb
pinkenburg Mar 8, 2024
f1c3531
merge with master
osbornjd Mar 8, 2024
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
90 changes: 90 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
Language: Cpp
# BasedOnStyle: sphenix
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: true
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: true
ColumnLimit: 0
CommentPragmas: '^ IWYU pragma:'
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: true
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
IncludeCategories:
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
IndentCaseLabels: false
IndentWidth: 2
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: false
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SpaceAfterCStyleCast: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Auto
TabWidth: 8
UseTab: Never
...

8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,11 @@ tmtags

# For rubinius:
*.rbc

# root/G4 output files
*.root
*.macro

# valgrind
*.valgrind
*.log
153 changes: 153 additions & 0 deletions CDBTest/CDBUtils.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
#ifndef TESTCDBGLOBALTAGS_C
#define TESTCDBGLOBALTAGS_C

#include <sphenixnpc/CDBUtils.h>
#include <sphenixnpc/SphenixClient.h>

#include <phool/recoConsts.h>

R__LOAD_LIBRARY(libsphenixnpc.so)
R__LOAD_LIBRARY(libphool.so)

CDBUtils *uti = nullptr;

CDBUtils *getCDBUtils()
{
return uti;
}

void listGlobalTags()
{
if (!uti) uti = new CDBUtils();
uti->listGlobalTags();
return;
}

void listPayloadTypes()
{
if (!uti) uti = new CDBUtils();
uti->listPayloadTypes();
return;
}

void listPayloadIOVs(uint64_t iov)
{
if (!uti) uti = new CDBUtils();
uti->listPayloadIOVs(iov);
return;
}

void createGlobalTag(const std::string &tagname)
{
if (!uti) uti = new CDBUtils();
uti->createGlobalTag(tagname);
return;
}

void deleteGlobalTag(const std::string &tagname)
{
if (!uti) uti = new CDBUtils();
uti->deleteGlobalTag(tagname);
return;
}

void lockGlobalTag(const std::string &tagname)
{
if (!uti) uti = new CDBUtils();
uti->lockGlobalTag(tagname);
return;
}

void unlockGlobalTag(const std::string &tagname)
{
if (!uti) uti = new CDBUtils();
uti->unlockGlobalTag(tagname);
return;
}

int setGlobalTag(const std::string &tagname)
{
if (!uti) uti = new CDBUtils();
int iret = uti->setGlobalTag(tagname);
return iret;
}

int cloneGlobalTag(const std::string &source, const std::string &target)
{
if (!uti) uti = new CDBUtils();
int iret = uti->cloneGlobalTag(source, target);
return iret;
}


int createPayloadType(const std::string &pt)
{
if (!uti) uti = new CDBUtils();
int iret = uti->createPayloadType(pt);
return iret;
}

int insertPayload(const std::string &pl_type, const std::string &file_url, uint64_t iov_start)
{
if (!uti) uti = new CDBUtils();
if (uti->isGlobalTagSet())
{
uti->insertPayload(pl_type,file_url,iov_start);
}
return 0;
}

int insertPayload(const std::string &pl_type, const std::string &file_url, uint64_t iov_start, uint64_t iov_end)
{
if (!uti) uti = new CDBUtils();
if (uti->isGlobalTagSet())
{
uti->insertPayload(pl_type,file_url,iov_start,iov_end);
}
return 0;
}

std::string getCalibration(const std::string &pl_type, uint64_t iov)
{
if (!uti) uti = new CDBUtils();
return uti->getUrl(pl_type,iov);
}

void clearCache()
{
if (!uti) uti = new CDBUtils();
return uti->clearCache();
}

void Verbosity(int verb)
{
if (!uti) uti = new CDBUtils();
return uti->Verbosity(verb);
}

int deletePayloadIOV(const std::string& pl_type, uint64_t iov_start)
{
if (!uti) uti = new CDBUtils();
return uti->deletePayloadIOV(pl_type,iov_start);
}

int deletePayloadIOV(const std::string& pl_type, uint64_t iov_start, uint64_t iov_end)
{
if (!uti) uti = new CDBUtils();
return uti->deletePayloadIOV(pl_type,iov_start, iov_end);
}

void TestCDBInsert()
{
recoConsts *rc = recoConsts::instance();
// please choose a unique name, if it is your username it's easier to see who created it
rc->set_StringFlag("CDB_GLOBALTAG","pinkenbu");
SphenixClient *cdb = new SphenixClient(rc->get_StringFlag("CDB_GLOBALTAG"));
cdb->createPayloadType("TestBeginValidity");
cout << cdb->insertPayload("TestBeginValidity","test.root",10) << endl;
cdb->createPayloadType("TestBeingEndValidity");
cdb->insertPayload("TestBeingEndValidity","test.root",10,20);
return;
}

#endif
23 changes: 23 additions & 0 deletions CDBTest/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Setup:

modify mycdb.json, replace /sphenix/user/pinkenbu/cdbtest/ by an area you can write to (make sure it exists). Leave the other fields in the read_dir_list unchanged - in case your tests need other existing calibrations. The master copy of this is $NOPAYLOADCLIENT_CONF in case there are updates I forgot to merge with mycdb.json

set NOPAYLOADCLIENT_CONF to this file (if you stay in this dir you don't need the full path):

setenv NOPAYLOADCLIENT_CONF mycdb.json
or when using bash
export NOPAYLOADCLIENT_CONF=mycdb.json

TestCDBTTree.C creates a small CDBTTree object and writes it to test.root

TestCDBHistos.C creates a few histograms and writes them to test.root

Do not mix CDBTTree and CDBHistos, you can only save only one or the other (likely, have't tried that)


TestCDBInsert.C inserts test.root into the cdb using your configuration. Modify this macro to use your own global tag. The macro will give errors when you run it multiple times because the global tag and the payload type exist now. Don't worry about those.

TestCDBRead.C reads the file back from the cdb trying different time stamps. The limited validity range does not work yet

CDBUtils.C gives you some utilities to interact with the CDB (create global tags and payloads, set global tags, list tags and payloads etc.)

40 changes: 40 additions & 0 deletions CDBTest/TestCDBHistos.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#include <cdbobjects/CDBHistos.h>

R__LOAD_LIBRARY(libcdbobjects.so)

void TestCDBHistos(const std::string &fname = "testhistos.root")
{
CDBHistos *cdbhistos = new CDBHistos(fname);
TH1 *h1 = new TH1F("h1","best 1d ever",100,0,1);
cdbhistos->registerHisto(h1);
TH2 *h2 = new TH2F("h2","best 2d ever",100,0,1,100,1,2);
cdbhistos->registerHisto(h2);
TH3 *h3 = new TH3F("h3","best 3d ever",100,0,1,100,1,2,100,2,3);
cdbhistos->registerHisto(h3);
TProfile *tp = new TProfile("tp","best tprofile ever",100,0,1,-10,10);
cdbhistos->registerHisto(tp);
for (int i = 0; i<100; i++)
{
h1->Fill(i/100.);
h2->Fill(i/100.,1+i/100.);
h3->Fill(i/100.,1+i/100.,2+i/100.,1.);
tp->Fill(i/100.,1+i/100.);
}
cdbhistos->WriteCDBHistos();
delete cdbhistos;
}

CDBHistos *TestWrite(const std::string &fname = "testhistos.root")
{
CDBHistos *cdbhistos = new CDBHistos(fname);
return cdbhistos;
}

CDBHistos *Read(const std::string &fname = "testhistos.root")
{
CDBHistos *cdbhistos = new CDBHistos(fname);
cdbhistos->LoadCalibrations();
cdbhistos->Print();
cdbhistos->getHisto("h1")->Draw();
return cdbhistos;
}
28 changes: 28 additions & 0 deletions CDBTest/TestCDBInsert.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#ifndef TESTCDBINSERT_C
#define TESTCDBINSERT_C

#include <sphenixnpc/CDBUtils.h>

#include <phool/recoConsts.h>

R__LOAD_LIBRARY(libsphenixnpc.so)
R__LOAD_LIBRARY(libphool.so)

// if you get errors like
// Error inserting payload test.root, msg: "DataBaseException: Global Tag is locked."
// use CDBUtils to unlock your global tag (unlockGlobalTag("<global tag>")

void TestCDBInsert()
{
recoConsts *rc = recoConsts::instance();
// please choose a unique name, if it is your username it's easier to see who created it
rc->set_StringFlag("CDB_GLOBALTAG","pinkenbu");
CDBUtils *cdb = new CDBUtils(rc->get_StringFlag("CDB_GLOBALTAG"));
cdb->createPayloadType("TestBeginValidity");
cdb->insertPayload("TestBeginValidity","test.root",10);
cdb->createPayloadType("TestBeginEndValidity");
cdb->insertPayload("TestBeginEndValidity","test.root",10,20);
return;
}

#endif
40 changes: 40 additions & 0 deletions CDBTest/TestCDBRead.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#ifndef TESTCDBREAD_C
#define TESTCDBREAD_C

#include <ffamodules/CDBInterface.h>

#include <phool/recoConsts.h>

R__LOAD_LIBRARY(libffamodules.so)
R__LOAD_LIBRARY(libphool.so)

void TestCDBRead()
{
recoConsts *rc = recoConsts::instance();
// please choose a unique name, if it is your username it's easier to see who created it
rc->set_StringFlag("CDB_GLOBALTAG","pinkenbu");
rc->set_uint64Flag("TIMESTAMP",6);
// 1000000 is the insert timestamp. Higher timestamps work, lower time stamps do not
CDBInterface *cdb = CDBInterface::instance();
cout << "using insert timestamp to retrieve no end time payload" << endl;
rc->set_uint64Flag("TIMESTAMP",10);
cout << cdb->getUrl("TestBeginValidity") << endl;
cout << "using larger timestamp to retrieve no end time payload" << endl;
rc->set_uint64Flag("TIMESTAMP",100);
cout << cdb->getUrl("TestBeginValidity") << endl;
cout << "using smaller timestamp to retrieve no end time payload" << endl;
rc->set_uint64Flag("TIMESTAMP",1);
cout << cdb->getUrl("TestBeginValidity") << endl;

cout << "using timestamp in range to retrieve calibration with end time" << endl;
rc->set_uint64Flag("TIMESTAMP",15);
cout << cdb->getUrl("TestBeginEndValidity") << endl;
cout << "using timestamp outside range to retrieve calibration with end time" << endl;
rc->set_uint64Flag("TIMESTAMP",25);
cout << cdb->getUrl("TestBeginEndValidity") << endl;
gSystem->Exit(0);
return;
}

#endif

Loading