Skip to content

Commit 20c1494

Browse files
authored
Include PWG code in name of executable (#7392)
1 parent de92475 commit 20c1494

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

scripts/datamodel-doc/ALICEO2includeFile.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ def printHTML(self):
675675
dmnames = np.unique(dmnames)
676676
for dmname in dmnames:
677677
print("")
678-
print("##", dmname)
678+
print("##", 'PWG-'+dmname)
679679

680680
inds = [i for i, x in enumerate(CERsPWG) if x[4] == dmname]
681681
CER2u = [CERsPWG[i] for i in inds]
@@ -1002,7 +1002,11 @@ def addRelations(self, fileName, ptype, dmname):
10021002
idef = [ind for ind, x in enumerate(
10031003
content[0]) if x.txt == self.CEdeclarationString]
10041004
for ind in idef:
1005-
ename = self.exePreamble + content[0][ind+2].txt
1005+
# PWG needs extra treatment
1006+
if ptype == "PWG":
1007+
ename = self.exePreamble + dmname.lower() + "-" + content[0][ind+2].txt
1008+
else:
1009+
ename = self.exePreamble + content[0][ind+2].txt
10061010
cname = content[0][ind+4].txt
10071011
if len(cname.split(".")) < 2:
10081012
cname += ".cxx"

scripts/datamodel-doc/inputCard.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
</DataModel>
136136

137137

138-
<DataModel type="PWG" name="PWGCF">
138+
<DataModel type="PWG" name="CF">
139139
<!-- where to get the extra header files from -->
140140
<headerFiles>
141141
<!-- relative to O2general/mainDir/O2Physicslocal -->
@@ -177,7 +177,7 @@
177177
</DataModel>
178178

179179

180-
<DataModel type="PWG" name="PWGDQ">
180+
<DataModel type="PWG" name="DQ">
181181
<!-- where to get the extra header files from -->
182182
<headerFiles>
183183
<!-- relative to O2general/mainDir/O2Physicslocal -->
@@ -219,7 +219,7 @@
219219
</DataModel>
220220

221221

222-
<DataModel type="PWG" name="PWGHF">
222+
<DataModel type="PWG" name="HF">
223223
<!-- where to get the extra header files from -->
224224
<headerFiles>
225225
<!-- relative to O2general/mainDir/O2Physicslocal -->
@@ -261,7 +261,7 @@
261261
</DataModel>
262262

263263

264-
<DataModel type="PWG" name="PWGJE">
264+
<DataModel type="PWG" name="JE">
265265
<!-- where to get the extra header files from -->
266266
<headerFiles>
267267
<!-- relative to O2general/mainDir/O2Physicslocal -->

0 commit comments

Comments
 (0)