Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# v01-30
* 2024-08-25 Andre Sailer ([PR#1317](https://github.com/aidasoft/dd4hep/pull/1317))
- DDSim: regexSD fix infinite loop, but change the interface from assignment to dictionary entries. Have to ensure only a single entry of a detector is given to the RegexSD
* 2024-08-15 Sanghyun Ko ([PR#1315](https://github.com/aidasoft/dd4hep/pull/1315))
- DDSim: prevent Geometry.regexSensitiveDetector from always throwing exception when called with argument.
* 2024-08-13 Andre Sailer ([PR#1312](https://github.com/aidasoft/dd4hep/pull/1312))
- GitlabCI: drop Flake check, since we have that on github as well
* 2024-08-12 Andre Sailer ([PR#1310](https://github.com/aidasoft/dd4hep/pull/1310))
- GitlabCI: Use an el9 container to build documentation for the webpage
* 2024-08-12 Andre Sailer ([PR#1309](https://github.com/aidasoft/dd4hep/pull/1309))
- CLICSiD AClick tests: avoid running in parallel, tests might break
* 2024-08-12 Andre Sailer ([PR#1308](https://github.com/aidasoft/dd4hep/pull/1308))
- Geant4RegexSensitivesConstruction: allow using regex that don't match the full volume path, reduce time by 40% or so
- DDSim: add interface for Geant4RegexSensitivesConstruction to geometry construction
* 2024-07-30 Leonhard Reichenbach ([PR#1303](https://github.com/aidasoft/dd4hep/pull/1303))
- Added a Geant4TVUserParticleHandler that can utilise an arbitrary tracking volume as introduced in https://github.com/AIDASoft/DD4hep/pull/384
* 2024-07-24 ybedfer ([PR#1294](https://github.com/aidasoft/dd4hep/pull/1294))
- Adding a "CylindricalGridPhiZ" segmentation class.
- N.B.: the class has a "radius" data member, registered by the constructors.
* 2024-07-22 Markus Frank ([PR#1301](https://github.com/aidasoft/dd4hep/pull/1301))
- See issue https://github.com/AIDASoft/DD4hep/issues/1292 and PR https://github.com/AIDASoft/DD4hep/pull/1293 , fix crash when action dictionary not hashable.
* 2024-07-22 Andre Sailer ([PR#1299](https://github.com/aidasoft/dd4hep/pull/1299))
- CI: use alma9 stack for python lint check
- CI: move key4hep stack to alma9
* 2024-07-22 Sanghyun Ko ([PR#1298](https://github.com/aidasoft/dd4hep/pull/1298))
- Geant4Converter: Improve lookup speed of `GeoHandler::i_collect` by using `std::set` instead of `std::find` (issue #1291)
* 2024-07-06 jmcarcell ([PR#1290](https://github.com/aidasoft/dd4hep/pull/1290))
- Add the missing header unistd.h in a file to find `::open` and `::close`
- Fix a few warnings about unused variables or shadowing
- Add .cache and compile_commands.json to .gitignore
* 2024-07-05 Markus Frank ([PR#1289](https://github.com/aidasoft/dd4hep/pull/1289))
* Add RegexSD example for illustration: See https://github.com/AIDASoft/DD4hep/pull/1288
* 2024-07-05 Markus Frank ([PR#1288](https://github.com/aidasoft/dd4hep/pull/1288))
- As reported in this issue https://github.com/AIDASoft/DD4hep/issues/1285 under certain circumstances the memory usage of DDG4 goes through the roof. This was traced back to the creation of excessive maps in the `Geant4VolumeManager`, if the number of sensitive pathes is very high like e.g. for straw detectors.
- To solve the problem, geometry constructors may not declare any sensitive volumes. Hence the `Geant4VolumeManager` will not be populated. To still make Geant4 functioning, the sensitive volumes may be declared a posterior after conversion using regular expressions as implemented in the class `Geant4RegexSensitivesConstruction`. This class is only an example how such functionality may be achieved: other solutions are possible as well. This functionality can be switched at the level of each subdetector participating in the experiment setup.
- To illustrate, an example detector `BoxOfStraws` was constructed with a flag in the xml description:
```
<detector id="1" name="BoxOfStrawsDet" type="DD4hep_BoxOfStraws" readout="BoxOfStrawsHits" vis="VisibleGreen" region="StrawRegion" limits="BoxOfStrawsLimitSet">
<box x="1*m" y="1*m" z="1000*mm" limits="BoxOfStrawsLimitSet" vis="VisibleRed"/>
<straw rmax="0.5*mm" y="1*m" thickness="0.1*mm" vis="VisibleBlue">
<material name="Iron"/>
</straw>
<gas vis="VisibleGreen">
<material name="Argon"/>
<non_sensitive/>
</gas>
<position x="0*m" y="0*m" z="0*m"/>
<rotation x="0" y="0" z="0"/>
</detector>
```
Change `<non_sensitive/>` to `<sensitive/>` and the different behavor of memory allocation when starting Geant4 can be observed.
The corresponding Geant4 python script can be found here:
```
<DD4hep>/examples/ClientTests/scripts/BoxOfStraws.py
```
The memory consumption differs then as follows (depending on the thickness of the straws, which determine the number of sensitive pathes):
```
With explicit sensitive volumes:
before Geant4VolumeManager: Virtual: 903.3m resident: 690.5m
after Geant4VolumeManager: Virtual: 1848.2m resident: 1.6g
With Sensitives matching regex and not sensitive volumes declared:
before Geant4VolumeManager: Virtual: 903.3m Resident: 690.6m
after Geant4VolumeManager: Virtual: 903.3m Resident: 690.6m
Simulating: Virtual: 903.5m Resident: 692.6m
```
Hence this is a possibility to significantly reduce memory consumption for highly granular subdetectors.
* 2024-07-01 Markus Frank ([PR#1287](https://github.com/aidasoft/dd4hep/pull/1287))
- As noted by Ben, the global alignment does not work in the presence of assemblies.
This PR together with https://github.com/root-project/root/pull/15905 fixes this deficiency.
- An example was added to convert a globally misaligned geometry to Geant4:
` $ python examples/AlignDet/scripts/AlephTPC.py -batch -events 5 -alignments examples/AlignDet/compact/AlephTPC_alignment.xml`
* 2024-07-01 jmcarcell ([PR#1286](https://github.com/aidasoft/dd4hep/pull/1286))
- Fix warnings related to unused variables and shadowing of already existing variables
- Don't use the deprecated `PySys_SetArgv`
* 2024-06-26 Andre Sailer ([PR#1284](https://github.com/aidasoft/dd4hep/pull/1284))
- DDG4.inputHandling: do not simulate rejectPDG particles even if they are called stable by the generator file, fixes #1282
* 2024-06-26 Andre Sailer ([PR#1283](https://github.com/aidasoft/dd4hep/pull/1283))
- DDSim: Do not check for existence of files behind a URL like root://, fixes #1281
* 2024-06-24 jmcarcell ([PR#1280](https://github.com/aidasoft/dd4hep/pull/1280))
- CMake: Allow finding version 1.0 (and newer) for podio
* 2024-06-21 Markus Frank ([PR#1279](https://github.com/aidasoft/dd4hep/pull/1279))
- The conquest against tainted variables in coverity
* 2024-06-20 Markus Frank ([PR#1278](https://github.com/aidasoft/dd4hep/pull/1278))
- Fight coverity tainted variables.
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
# v01-29
* 2024-06-06 Andre Sailer ([PR#1277](https://github.com/aidasoft/DD4hep/pull/1277))
- Geant4Converter: fix the order of the TGeoNode conversion to Geant4 volumes, using vector instead of set. Maybe fixes #1271
* 2024-05-26 Andre Sailer ([PR#1276](https://github.com/aidasoft/DD4hep/pull/1276))
- XMLElements: fix build when not using XercesC, failing to include header files
* 2024-05-23 Markus Frank ([PR#1275](https://github.com/aidasoft/DD4hep/pull/1275))
- The battle agains coverity
- The last defects I know how to solve. For the rest more expertise is required.
* 2024-05-23 MarkusFrankATcernch ([PR#1274](https://github.com/aidasoft/DD4hep/pull/1274))
- Allow coverity scans being started manually
* 2024-05-23 Markus Frank ([PR#1272](https://github.com/aidasoft/DD4hep/pull/1272))
- The battle agains coverity. Try to fix various defects.
* 2024-05-22 Markus Frank ([PR#1270](https://github.com/aidasoft/DD4hep/pull/1270))
- The battle agains coverity: Attack and reduce coverity errors
* 2024-05-22 Markus Frank ([PR#1269](https://github.com/aidasoft/DD4hep/pull/1269))
- Code maintenance: change quoted include statements to angular brackets in subpackage DDG4.
* 2024-05-22 Markus Frank ([PR#1268](https://github.com/aidasoft/DD4hep/pull/1268))
Code maintenance:
- change quoted include statements in DDCore to angular brackets
- Add the odd licence statement
- Remove obsolete file DD4hep/TGeoUnits.h: Take TGeoUnits from ROOT if needed.
This file dates back to the time TGeoUnits.h did not exist in ROOT.
* 2024-05-21 Markus Frank ([PR#1267](https://github.com/aidasoft/DD4hep/pull/1267))
- Try to eliminate more coverity code deficiencies
(See https://scan.coverity.com/projects/dd4hep?tab=overview)
* 2024-05-16 Andre Sailer ([PR#1266](https://github.com/aidasoft/DD4hep/pull/1266))
- DDSim: make setupUserFunction be documented in the steering file
- Fix random typos in comments and doxygen strings
- Geant4Handle: Fix error message when plugin casting did not succeed
* 2024-05-16 Markus Frank ([PR#1265](https://github.com/aidasoft/DD4hep/pull/1265))
- Fix some coverity problems
* 2024-05-16 tmadlener ([PR#1264](https://github.com/aidasoft/DD4hep/pull/1264))
- EDM4hepOUTPUT: Introduce pre-processor checks to transparently switch to the new `std::optional` return values of `podio::Frame::getParameter` (introduced with [AIDASoft/podio#580](https://github.com/AIDASoft/podio/pull/580))
* 2024-05-16 Thomas Latham ([PR#1263](https://github.com/aidasoft/DD4hep/pull/1263))
- Enhance handling of transformations in VolumeBuilder
* 2024-05-15 Markus Frank ([PR#1262](https://github.com/aidasoft/DD4hep/pull/1262))
- Add optional instantiation of the G4ScoringManager together with the G4RunManager.
The instantiation can be steered by option to the Geant4Kernel:
```
import DDG4
g4 = DDG4.Geant4()
g4.kernel().HaveScoringManager = True
```
For rational, please see issue: https://github.com/AIDASoft/DD4hep/issues/1261
* 2024-05-13 Alvaro Tolosa Delgado ([PR#1253](https://github.com/aidasoft/DD4hep/pull/1253))
- DDRec/DCH_info.h: Add data extension class for FCCee Drift Chamber. This class provides data storage and ancillary functionalities needed to build the geometry.
* 2024-05-10 Andre Sailer ([PR#1260](https://github.com/aidasoft/DD4hep/pull/1260))
- DDG4/DDSim: allow configuring of the unstable generator status codes with SIM.physics.alternativeDecayStatuses. This allows one to tweak which particles are passed to the Geant4 simulation. Fixes #1256
- DDG4: Geant4InputAction: move setting of generator status bits to a common place, reduce code duplication.
* 2024-05-07 Markus Frank ([PR#1259](https://github.com/aidasoft/DD4hep/pull/1259))
- Protect Geant4 Primary creation against negative masses.
- See issue https://github.com/AIDASoft/DD4hep/issues/1233 for a detailed discussion of the problem.
- Allow shapes to be defined recursively using shape creation plugin.
- Show how to properly use CAD shapes with a non-zero origin (Issue : https://github.com/AIDASoft/DD4hep/issues/1200)
examples/DDCAD/compact/DD4hep_Issue_1134_resolved.xml
Once the CAD shape (aka volume) is placed correctly into the origin of a mother mother, the mother can then be placed
rotated and shifted according to the the boxed mother's origin like any other volume.
* 2024-05-07 Andre Sailer ([PR#1258](https://github.com/aidasoft/DD4hep/pull/1258))
- DDSim: correct the number of events when running over all events (-1), fixes #1257
- GenerationActionInit: declare properties to access number of processed runs (numberOfRuns) and events (numberOfEVents)
- DDG4: decode or eval all properties out of str or cppyy.gbl.string types
* 2024-04-23 Andre Sailer ([PR#1255](https://github.com/aidasoft/DD4hep/pull/1255))
- Geant4GFlashShowerModel: remove wrong unit conversions from particleBound properties. Caused particle bounds to be off by 1e3 when GEANT_UNITS were enabled.
* 2024-04-22 tmadlener ([PR#1252](https://github.com/aidasoft/DD4hep/pull/1252))
- DDDigiEDM4hep: Switch to the correct podio pre-processor version checks for switching to the non-deprecated readers / writers. Also simplify this such that choosing which type(name) to use is handled in one place rather than several.
- Geant4Output2EDM4hep: Switch to a non-deprecated setter for setting the MCParticle for a SimTrackerHit once EDM4hep ships with it.
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
* 2024-04-19 Andre Sailer ([PR#1254](https://github.com/aidasoft/DD4hep/pull/1254))
- CMake: drop possible use of ROOT::PyROOT target, always use ROOT::ROOTTPython
- Python: remove the use of (dd)six, fix issues pointed out by new version of flake8
* 2024-04-18 Andre Sailer ([PR#1242](https://github.com/aidasoft/DD4hep/pull/1242))
- CI: change which LCG_releases/ROOT versions DD4hep is tested.
- Fix various issues with latest version of ROOT (6-32-patches, master) and cppyy in ROOT.
- :warning: : You may encounter issues with python setup complaining about mismatched types, strings, conversions
* 2024-04-04 Andre Sailer ([PR#1251](https://github.com/aidasoft/DD4hep/pull/1251))
- EDM4hepOutput: determine momentum vector type automagically. Make it work with any EDM4hep version correctly, fixes #1250
* 2024-04-02 Andre Sailer ([PR#1248](https://github.com/aidasoft/DD4hep/pull/1248))
- ddsim now exits with non-zero exit code when something went wrong during simulation
* 2024-04-02 Wouter Deconinck ([PR#1245](https://github.com/aidasoft/DD4hep/pull/1245))
- fix adding individual planes to existing Polycone
* 2024-03-26 Andre Sailer ([PR#1247](https://github.com/aidasoft/DD4hep/pull/1247))
- DDSim: add checks that input files and compact files exist before doing anything extensive and provide proper error message. Fixes #1246
* 2024-03-21 Markus Frank ([PR#1244](https://github.com/aidasoft/DD4hep/pull/1244))
* The build type flag was lost when including files from compact. This PR fixes this deficiency and ensures the flag propagation. Example: 'box_shape_build_type'
* 2024-03-20 Alvaro Tolosa Delgado ([PR#1243](https://github.com/aidasoft/DD4hep/pull/1243))
- Fixed TwistedTube when only half-length is provided, making the tube is symmetric along Z axis
* 2024-03-13 Andre Sailer ([PR#1241](https://github.com/aidasoft/DD4hep/pull/1241))
- CMake: dd4hep_add_dictionary: use temporary files to create dictionary to allow dependencies to use COMPILE_LANGUAGE, fixes #1239 . Add USE_COMMAND_TO_GENERATE option to fall back to previous implementation
- CMake: dd4hep_add_dictionary: remove duplicates from definition and include_directory options when calling rootcling
* 2024-02-29 Markus Frank ([PR#1238](https://github.com/aidasoft/DD4hep/pull/1238))
- Adapt documentation for Tube(...) constructor to reality.
See issue https://github.com/AIDASoft/DD4hep/issues/1236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
# v01-28
* 2024-02-19 Markus Frank ([PR#1228](https://github.com/aidasoft/dd4hep/pull/1228))
- Fix DD4hep_DetectorDump plugin to avoid crash if a DetElement placement is invalid,
which is not allowed, but also should not end up in a crash.
- Add test to check if DetElements have proper placement set using MiniTel example
(see examples/ClientTests/compact/MiniTel_err_place.xml) and
test MiniTel_check_missing_placements
- The fake DD4hep object TwistedTube did not correctly emulate the different constructors when converted
to Geant4. This should be fixed with this PR.
* 2024-02-16 Andre Sailer ([PR#1231](https://github.com/aidasoft/dd4hep/pull/1231))
- CMake: use the LCIO::lcio target instead of LCIO::LCIO
* 2024-02-15 Andre Sailer ([PR#1230](https://github.com/aidasoft/dd4hep/pull/1230))
- XML: add missing std:: when building with TinyXML
- DetectorSurfaces: silence printout when creating SurfaceList, fixes #1229
* 2024-02-13 Wouter Deconinck ([PR#1225](https://github.com/aidasoft/dd4hep/pull/1225))
- upgrade CI to checkout@v4, cvmfs@v4, upload-artifact@v4
* 2024-02-12 Alvaro Tolosa Delgado ([PR#1227](https://github.com/aidasoft/dd4hep/pull/1227))
- Twisted tube: twisted angle unit conversion now works properly
* 2024-02-12 Markus Frank ([PR#1226](https://github.com/aidasoft/dd4hep/pull/1226))
Multiple commits. Most important one (on user request):
- Implement CONST properties to optical sufaces. (Requires new release of ROOT)
See issue: https://github.com/AIDASoft/DD4hep/issues/1223
Otherwise:
- Remove support for very old versions of ROOT < 6.10.0
- Remove support for very old versions of ROOT < 6.26.0.
- Remove default use of std namespace from most implementation files.
* 2024-02-12 Wouter Deconinck ([PR#1218](https://github.com/aidasoft/dd4hep/pull/1218))
- add command line options to pass stepping (etc) action plugins to ddsim
* 2024-02-08 tmadlener ([PR#1219](https://github.com/aidasoft/dd4hep/pull/1219))
- Make the upcoming renaming of `edm4hep::TrackerHit` to `edm4hep::TrackerHit3D` (https://github.com/key4hep/EDM4hep/pull/252) transparent as far as DD4hep is concerned.
* 2024-02-07 jmcarcell ([PR#1221](https://github.com/aidasoft/dd4hep/pull/1221))
- Change ROOTFrame{Writer,Reader} to ROOT{Writer,Reader} following https://github.com/AIDASoft/podio/pull/549
* 2024-02-02 tmadlener ([PR#1198](https://github.com/aidasoft/dd4hep/pull/1198))
- Set the momenta of the `edm4hep::MCParticle` as double instead of float once it becomes possible.
* 2024-01-18 Markus Frank ([PR#1217](https://github.com/aidasoft/dd4hep/pull/1217))
- Enable energy deposit collection in FiberTubeCalorimeter example.
* 2024-01-18 Markus Frank ([PR#1216](https://github.com/aidasoft/dd4hep/pull/1216))
- Update FiberTubeCalorimeter example
- Fix overlapping volumes
* 2024-01-17 Markus Frank ([PR#1215](https://github.com/aidasoft/dd4hep/pull/1215))
- Fix creation of tessellated shapes from CAD files.
- Properly hand quadri-linear facets from CAD files.
- See also: https://github.com/root-project/root/pull/14327
- See also: https://github.com/AIDASoft/DD4hep/pull/1212
* 2024-01-16 Markus Frank ([PR#1214](https://github.com/aidasoft/dd4hep/pull/1214))
- Fix to MR https://github.com/AIDASoft/DD4hep/pull/1212
* 2024-01-15 Markus Frank ([PR#1213](https://github.com/aidasoft/dd4hep/pull/1213))
- Adapt material scan to be aware of the different compilation modes for TGeo units and Geant4 units.
See also issue https://github.com/AIDASoft/DD4hep/issues/1163.
* 2024-01-15 Andre Sailer ([PR#1212](https://github.com/aidasoft/dd4hep/pull/1212))
- Assimp: adapt to changes in TGeoTessellated for ROOT 6.32
- ShapeUtilities: adapt to changes in TGeoTessellated for ROOT 6.32
* 2024-01-12 Markus Frank ([PR#1211](https://github.com/aidasoft/dd4hep/pull/1211))
- Implement required chnges for new ROOT 6.31.X.
See issue https://github.com/AIDASoft/DD4hep/issues/1210 for details.
* 2024-01-08 Markus Frank ([PR#1209](https://github.com/aidasoft/dd4hep/pull/1209))
- Restore behavior of teveDisplay. See issue https://github.com/AIDASoft/DD4hep/issues/1208 for details.
* 2023-12-19 Andre Sailer ([PR#1206](https://github.com/aidasoft/dd4hep/pull/1206))
- CI: Coverity: use el9 based stack
# v01-27-02
* 2023-12-15 Andre Sailer ([PR#1205](https://github.com/aidasoft/dd4hep/pull/1205))
- Geant4PrimaryHandling: fix issue with multiple vertices in Geant4 GeneralParticleSource, fixes #1204
* 2023-12-14 Markus Frank ([PR#1201](https://github.com/aidasoft/dd4hep/pull/1201))
- Incorporate type fix from https://github.com/AIDASoft/DD4hep/pull/1172
- Propagate polish setting from ROOT surfaces to Geant4
- Improve debugging capabilities of detector checksums by improved dumping possibilities.
* 2023-12-14 Andre Sailer ([PR#1196](https://github.com/aidasoft/dd4hep/pull/1196))
- NestedBoxReflection_geo.cpp: use std::abs instead of abs
- HexGrid: use std::abs instead of abs
- DDSim: better logging of which sensitive detector is used when defaults are used
* 2023-12-14 Paul Gessinger ([PR#1195](https://github.com/aidasoft/dd4hep/pull/1195))
- Replace usage of the `imp` module that was removed in Python 3.12 with `importlib` and `types`.
* 2023-11-24 Andre Sailer ([PR#1192](https://github.com/aidasoft/dd4hep/pull/1192))
- DetectorChecksum: use fabs to check if values are 0.0, fixes #1188
# v01-27-01
* 2023-11-20 jmcarcell ([PR#1191](https://github.com/aidasoft/DD4hep/pull/1191))
- CMake: Add a check for the c++ standard that Geant4 was compiled with, and fail if it is
different from the one required for DD4hep.
* 2023-11-19 Wouter Deconinck ([PR#1190](https://github.com/aidasoft/DD4hep/pull/1190))
- Use TROOT::GetIconPath to find icons in DDEve
* 2023-11-17 Markus Frank ([PR#1187](https://github.com/aidasoft/DD4hep/pull/1187))
- Implement startup flags to set the visualization depth in teveDisplay like for geoDisplay.
See Issue: See deeper hierarchy in teveDisplay https://github.com/AIDASoft/DD4hep/issues/1186 for details.
* 2023-11-17 Dmitry Kalinkin ([PR#1184](https://github.com/aidasoft/DD4hep/pull/1184))
- Fixed runtime issues during initialization caused by incorrectly placed `DECLARE_SEGMENTATION` for CartesianGridXYStaggered and HexGrid.
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
# v01-27
* 2023-10-19 Alvaro Tolosa Delgado ([PR#1174](https://github.com/aidasoft/dd4hep/pull/1174))
- Geant4OpticalTracker: Kill optical photons (instead of all other particles) as soon they enter into a Optical Tracker sensitive detector
* 2023-10-19 Wouter Deconinck ([PR#1148](https://github.com/aidasoft/dd4hep/pull/1148))
- Allow several DDRec c'tors to work on `const Detector&` instead of `Detector&`
* 2023-10-18 Markus Frank ([PR#1181](https://github.com/aidasoft/dd4hep/pull/1181))
Allow for XML processing of files relative to xml tag location:
- For some tags the relative placement of include files was not possible.
This pull request is supposed to close these missing include features.
- See issue https://github.com/AIDASoft/DD4hep/issues/1180 for details)
- See the examples ClientTests: minitel_config_plugins_include_command_xml
with the compact file ClientTests/compact/IncludePlugins.xml for an example.
* 2023-10-17 Alvaro Tolosa Delgado ([PR#1179](https://github.com/aidasoft/dd4hep/pull/1179))
- DDSim: Corrected documentation of `--gun.energy`. This corresponds to the total energy including the mass of the particle
* 2023-10-11 Andre Sailer ([PR#1176](https://github.com/aidasoft/dd4hep/pull/1176))
- DDG4: G4VTouchable: for Geant4 11.1.ref09 cannot forward declare the class any more
* 2023-10-11 Markus Frank ([PR#1175](https://github.com/aidasoft/dd4hep/pull/1175))
- Handle request from issue 1166: Allow to load CAD files with relative path w/r to declaring xml file
- Add illustrating example: t_DDCAD_Check_Shape_RelativePath
* 2023-09-20 Dhevan Gangadharan ([PR#1170](https://github.com/aidasoft/dd4hep/pull/1170))
- Extend usage of dumpBfield to asymmetric X,Y,Z ranges.
* 2023-09-20 Sebouh Paul ([PR#1161](https://github.com/aidasoft/dd4hep/pull/1161))
- DDSegmentation: added segmentation HexGrid for hexagonal segmentation
- DDSegmentation: added CartesionGridXYStaggered for rectangular segmentation that can be staggered for every other layer
* 2023-09-19 Dmitry Kalinkin ([PR#1171](https://github.com/aidasoft/dd4hep/pull/1171))
* 2023-09-15 jmcarcell ([PR#1169](https://github.com/aidasoft/dd4hep/pull/1169))
- CMake: DDG4: Check if the CLHEP target exists before creating it in DD4hepBuild.cmake, since if it exists cmake will error.
* 2023-09-15 Wouter Deconinck ([PR#1168](https://github.com/aidasoft/dd4hep/pull/1168))
- ddsim: handle run header exception when the user has no username.
* 2023-08-31 Dmitry Kalinkin ([PR#1165](https://github.com/aidasoft/dd4hep/pull/1165))
- DDG4: HepMC3Input: Fix loading of run info for RootTree HepMC3 input format
* 2023-08-25 Andre Sailer ([PR#1162](https://github.com/aidasoft/dd4hep/pull/1162))
- DDEve Webdisplay: fix issue with ROOT master with RGeomViewer no longer being in the experimental namespace.
* 2023-08-24 Andre Sailer ([PR#1160](https://github.com/aidasoft/dd4hep/pull/1160))
- SiliconBlockGFlash: add maximal energy for using parametrisation, for electron and positron, fixes #1153
* 2023-08-24 Markus Frank ([PR#1155](https://github.com/aidasoft/dd4hep/pull/1155))
- Implement correct transparency handling of ROOT:
The transparency setting was connected to the material of the volume.
This led to the same transparency setting for all volumes of the same material.
It was not possible to change them at the level of the volume though
the API suggested so.
See: https://github.com/AIDASoft/DD4hep/issues/1117
See: https://github.com/root-project/root/pull/13402
- Add test examples/ClientTests/compact/visTestEx.xml and visTest.xml.
From the inversion of tubes with the same material, for ROOT >= 6.29
the correct transparency settings are shown, whereas for ROOT < 6.29
the transparency settings are the same for all volumes.
Also see scripts/visTest.C
* 2023-08-23 Ben Couturier ([PR#1159](https://github.com/aidasoft/dd4hep/pull/1159))
- Improved _getEnviron to deal with the case when multiple variables are to be evaluated in the string
* 2023-08-22 Dmitry Kalinkin ([PR#1158](https://github.com/aidasoft/dd4hep/pull/1158))
- DDSim: Fix reading HepMC3 input files via xrootd, fixes #1156
* 2023-08-22 Wouter Deconinck ([PR#1157](https://github.com/aidasoft/dd4hep/pull/1157))
- Geant4Output2EDM4hep: allow use of identical collection names across multiple detectors
* 2023-08-04 Andre Sailer ([PR#1152](https://github.com/aidasoft/dd4hep/pull/1152))
- CI: use clang16 for header guards check
* 2023-08-04 jmcarcell ([PR#1151](https://github.com/aidasoft/dd4hep/pull/1151))
- Limits object: fix string creation of Limit::toString, this will now also print the relevant "particles"
- Shapes: remove "move" from return of dimensions()
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
# v01-26
* 2023-07-24 Andre Sailer ([PR#1147](https://github.com/aidasoft/DD4hep/pull/1147))
- Add reading of HepMC3 run info and forwarding it to output files: fixes #1114. Reliably this will only work for HepMC3 >= 3.2.6.
* 2023-07-18 Markus Frank ([PR#1146](https://github.com/aidasoft/DD4hep/pull/1146))
- By default do not keep hash string for detector checksum to minimize resource usage.
As pointed out in Issue https://github.com/AIDASoft/DD4hep/issues/1143 keeping the hash string of detector
components is very often too resource/memory consuming. Hence keep the hashed strings only if requested
e.g. for debugging purposes. By default the hash strings are not kept.
This means the produces hash sums are NOT backwards compatible, because during the checksum creation the
hash strings from sub-components were used. These are now consequently replaced by the corresponding hash codes.
* 2023-07-18 Andre Sailer ([PR#1145](https://github.com/aidasoft/DD4hep/pull/1145))
- DDSim: ConfigHelper: prevent using unknown properties everywhere but in Meta, where we want to allow adding arbitrary information, fixes #1072
* 2023-07-17 Andre Sailer ([PR#1144](https://github.com/aidasoft/DD4hep/pull/1144))
- DDSim: change the default output file name on how DD4hep was built. Fixes #1101
- Add outputConfig.forceLCIO, outputConfig.forceEDM4HEP, outputConfig.forceDD4HEP switches to force a particular output plugin
- If LCIO was used, slcio is still the default
- If EDM4hep was used but not LCIO, EDM4hep is the default and used for all root output files.
- If neither LCIO or EDM4hep was used, then DD4hep's root output is used. Use the outputConfig.forceDD4HEP flag to use DD4hep's root output if EDM4hep is available as well
- DDSim: remove python2 legacy shims
- Geant4UIManager: fail when pre or post run commands are not successfully executed.
* 2023-07-14 Andre Sailer ([PR#1142](https://github.com/aidasoft/DD4hep/pull/1142))
- DDSim: add the possibility to configure execution of Geant4 UI commands during the different Geant4 UI phases (fixes #1010)
* 2023-07-13 Wouter Deconinck ([PR#1141](https://github.com/aidasoft/DD4hep/pull/1141))
- Support TGeoTessellated volumes in DetectorChecksum
* 2023-07-13 tmadlener ([PR#1140](https://github.com/aidasoft/DD4hep/pull/1140))
- Create a separate `metadata` Frame in the edm4hep output and put the `CellIDEncoding` strings there in order to follow the new convention for this introduced by key4hep/k4FWCore#100.
* 2023-06-24 Markus Frank ([PR#1139](https://github.com/aidasoft/DD4hep/pull/1139))
- Add test for issue #1134
* 2023-06-23 tmadlener ([PR#1138](https://github.com/aidasoft/DD4hep/pull/1138))
- Make the default return value of `DetElementCreator::process` non-zero to avoid erroneously raising an exception after finishing.
- Add a test case that checks that things work
* 2023-06-22 Markus Frank ([PR#1136](https://github.com/aidasoft/DD4hep/pull/1136))
- Adds missing parts to: https://github.com/AIDASoft/DD4hep/pull/1135
- Enable CLICSiD GDML exports and import tests and fix the broken import test.
* 2023-06-22 Andre Sailer ([PR#1133](https://github.com/aidasoft/DD4hep/pull/1133))
- DDSim: OutputConfig: correct the example to be valid python in all cases.
* 2023-06-21 tmadlener ([PR#1132](https://github.com/aidasoft/DD4hep/pull/1132))
- Add conversion from of `TGeoPara` to `G4Para`
* 2023-06-16 Markus Frank ([PR#1131](https://github.com/aidasoft/DD4hep/pull/1131))
- Fix compile error on MacOS
See issue https://github.com/AIDASoft/DD4hep/issues/1130
* 2023-06-14 Wouter Deconinck ([PR#1129](https://github.com/aidasoft/DD4hep/pull/1129))
- fix: exit(0) when --dumpParameter/dumpSteeringFile
* 2023-06-13 Markus Frank ([PR#1128](https://github.com/aidasoft/DD4hep/pull/1128))
- Move DDDigi edm4hep I/O to new frame writing.
- Improve DDG4 edm4hep I/O (remove debug statements)
- Protect DDDigi edm4hep output against races
- Fix some compiler warnings
* 2023-06-12 Wouter Deconinck ([PR#1108](https://github.com/aidasoft/DD4hep/pull/1108))
- Delay writing EDM4hep collections until `commit` at end of event, allowing for multiple collections with same name
* 2023-06-09 Markus Frank ([PR#1125](https://github.com/aidasoft/DD4hep/pull/1125))
- Define the CellID and the VolumeID data types of segmentations as uint64_t rather than signed integers.
Reasoning: Please see issue: 1090 (https://github.com/AIDASoft/DD4hep/issues/1090)
* 2023-06-09 tmadlener ([PR#1113](https://github.com/aidasoft/DD4hep/pull/1113))
- Remove the copy&past `DigiFrame.h` and use the upstream `podio/Frame.h` as all functionality is available from there.
- Increase the minimum podio version to 0.16.3
* 2023-06-09 tmadlener ([PR#1112](https://github.com/aidasoft/DD4hep/pull/1112))
- Use the templated `getMap` access functionality for `podio::GenericParameters` as the non-templated versions will be removed.
* 2023-06-08 Markus Frank ([PR#1126](https://github.com/aidasoft/DD4hep/pull/1126))
- Allow to user-set world material in compact description:
```
<world material="Steel235">
</world>
```
See issue https://github.com/AIDASoft/DD4hep/issues/1116 for details.
- Add test t_minitel_config_world_material illustrating the feature.
* 2023-06-02 tmadlener ([PR#1124](https://github.com/aidasoft/DD4hep/pull/1124))
- DDDigi: Make the `get{Value,}TypeName` calls work with the upcoming switch to `std::string_view` return types in podio.
* 2023-06-01 Andre Sailer ([PR#1123](https://github.com/aidasoft/DD4hep/pull/1123))
- Volumes.h: rearrange implementation of classes, fix needed for gcc13/root 6.28/04, c++20
* 2023-06-01 Juraj Smiesko ([PR#1122](https://github.com/aidasoft/DD4hep/pull/1122))
- ddsim: fix indentation from steeringfile produced by `ddsim --dumpSteeringFile`
* 2023-06-01 Dmitry Kalinkin ([PR#1089](https://github.com/aidasoft/DD4hep/pull/1089))
- Add optional support for reading compressed files using HepMC3. Enabled with cmake flag DD4HEP_HEPMC3_COMPRESSION_SUPPORT. Needs at least HepMC3.2.5 and presence of zlib, lzma, bzip2
* 2023-05-31 Markus Frank ([PR#1120](https://github.com/aidasoft/DD4hep/pull/1120))
- Fix example arguments
* 2023-05-31 Dmitry Kalinkin ([PR#1106](https://github.com/aidasoft/DD4hep/pull/1106))
- DetectorImp::getRefChild() will no longer print to error context to std::cout, it will instead appear in the message of the runtime_exception thrown.
* 2023-05-30 Markus Frank ([PR#1119](https://github.com/aidasoft/DD4hep/pull/1119))
- Disable DDCMS Geant4 example to resolve MR chain
* 2023-05-30 Paul Gessinger ([PR#1109](https://github.com/aidasoft/DD4hep/pull/1109))
- Remove `using namespace std;` in `Printout.cpp`
* 2023-05-30 Andre Sailer ([PR#1100](https://github.com/aidasoft/DD4hep/pull/1100))
- CMake: increase required version of Cmake from 3.12 to 3.14
* 2023-05-30 Markus Frank ([PR#1098](https://github.com/aidasoft/DD4hep/pull/1098))
- MiniTel Generate example should replect the detector in issue (https://github.com/AIDASoft/DD4hep/issues/1091)
* 2023-05-04 Wouter Deconinck ([PR#1105](https://github.com/aidasoft/DD4hep/pull/1105))
- allow rotation/position transformation on entire CAD_MultiVolume
* 2023-04-26 Andre Sailer ([PR#1099](https://github.com/aidasoft/DD4hep/pull/1099))
- thisdd4hep.sh: make the Geant4 path discovery compatible with Geant4 11.1.1
* 2023-04-25 Andre Sailer ([PR#1097](https://github.com/aidasoft/DD4hep/pull/1097))
- Geant4InputHandling: in case the MC generator gives us a negative mass, the proper_time_precision could be negative and we would not identify properTimeZero correctly. Fixes parts of #1094 when ddg4 smearing is used.
* 2023-04-21 scott snyder ([PR#1093](https://github.com/aidasoft/DD4hep/pull/1093))
- ddsim: Fix handling of --meta.runNumberOffset and --meta.eventNumberOffset command-line switches.
* 2023-04-21 Frank Gaede ([PR#1088](https://github.com/aidasoft/DD4hep/pull/1088))
- fix units in `Geant4FastSimShowerModel::constructSensitives`
- used for energy check in `Geant4FastSimShowerModel::check_trigger` for fast simulation
* 2023-04-21 Andre Sailer ([PR#1074](https://github.com/aidasoft/DD4hep/pull/1074))
- DDSim: add explicit configuration of the Geometry construction, exposing many debug options for elements, materials, volumes, shapes, placements, Reflections, Regions, and Surfaces. See ddsim --help or --dumpSteeringFile
* 2023-03-31 Markus Frank ([PR#1087](https://github.com/aidasoft/DD4hep/pull/1087))
- Improve plugin information
- inline in StandardPlugins.cpp and ShapePlugins.cpp
- In DD4hep manual
* 2023-03-30 Andre Sailer ([PR#1086](https://github.com/aidasoft/DD4hep/pull/1086))
- HepMC3: use all vertex information to create primary vertices, including time, fixes #1082
* 2023-03-29 Markus Frank ([PR#1084](https://github.com/aidasoft/DD4hep/pull/1084))
- Upgrade standard plugins. Add some help information
* 2023-03-29 Markus Frank ([PR#1083](https://github.com/aidasoft/DD4hep/pull/1083))
- Add plugin to assign VolumIDs to DetElements
Normally this functionality id done by the VolumeManager. However, some clients prefer to not use the volume manager.
With this plugin this basic functionality can be maintained.
- Update plugin DD4hep_DetectorDump to optionally output the accumulated volume identifiers when traversing
the DetElement tree.
To test both, invoke e.g.:
```
$> geoPluginRun -input ../DD4hep/DDDetectors/compact/SiD.xml \
-plugin DD4hep_DetElementVolumeIDs -detector /world \
-plugin DD4hep_DetectorDump -sensitive -volids
```
* 2023-03-23 Markus Frank ([PR#1081](https://github.com/aidasoft/DD4hep/pull/1081))
Allow users to add track user information to G4 tracks, which then moves to Geant4Particle for saving
Use class Geant4ParticleInformation to extend the Geant4Particle object.
Wrapper to store any user information as a `G4VUserTrackInformation` in a `G4Track`.
The data of type `ParticleExtension` is moved from the `G4Track` to the `Geant4Particle` in the `Geant4ParticleHandler` if present. This automatically make the `G4Track` instance persistent as a `Geant4Particle`.
Hence: Be careful to not assign the entity by default!
The data in the subclass of `ParticleExtension` defined by the user
requires a dictionary to be stored to ROOT.
- Example: examples/DDG4_MySensDet. See examples/DDG4_MySensDet/src/MyTrackerSDAction.cpp for details.
- Great thanks to ROOT for now being able to store std::unique_ptr<T>!
- This is sort of a sub-issue to https://github.com/AIDASoft/DD4hep/issues/1073
* 2023-03-23 Christopher Dilks ([PR#1069](https://github.com/aidasoft/DD4hep/pull/1069))
- rename `OpticalTracker` example to `RICH`
* 2023-03-22 Markus Frank ([PR#1080](https://github.com/aidasoft/DD4hep/pull/1080))
- Fix bug in B field component access after a space transformation of multipole fields.
See issue MultipoleMagnet rotation #1073 https://github.com/AIDASoft/DD4hep/issues/1073 for details.
* 2023-03-22 Markus Frank ([PR#1079](https://github.com/aidasoft/DD4hep/pull/1079))
- Optimize sensitive detector callbacks in DDG4.
Many operations were performed twice: once in the sensitive detector, and once again in the computation of
the MC contribution to the hit. This MR removes multiple computations and uses the results from the MC
contribution to create the hit.
The change should be fully compatible and delivers numerically identical results.
- Remove deprecated DetElement factories.
To not clutter the global namespace with factory names, factories in the DDDetectors area were declared
deprecated many years ago. At a time these factories were replaced by identical factoris with a name prefix "DD4hep_".
These factories are "official" and should be used instead.
On creation such factories issued a warning message.
It is now time to remove these factories completely.
* 2023-03-21 Christopher Dilks ([PR#1065](https://github.com/aidasoft/DD4hep/pull/1065))
- Add test for average energy deposition in `OpticalTracker` example, for `Geant4SensitiveAction<Geant4OpticalTracker>`
* 2023-03-15 Markus Frank ([PR#1078](https://github.com/aidasoft/DD4hep/pull/1078))
- See issue 1076 https://github.com/AIDASoft/DD4hep/issues/1076
* 2023-03-15 Wouter Deconinck ([PR#1075](https://github.com/aidasoft/DD4hep/pull/1075))
- ddsim: Support for setting etaMin and etaMax. These override the respective theta settings!
* 2023-03-03 Markus Frank ([PR#1071](https://github.com/aidasoft/DD4hep/pull/1071))
- Verify and enhance the possibility to import plugin definitions from an external XML file
(See isue: https://github.com/AIDASoft/DD4hep/issues/1062).
The corresponding examples are:
-- minitel_config_plugins_include_command_line, which shows how to perform the task by parsing sequentially the
XML input files like:
```
$> geoPluginRun -input <path>/compact/MiniTel.xml -input <path>/compact/ExamplePlugins.xml
```
-- minitel_config_plugins_include_command_xml, where the second XML file is simply included:
<includes>
<file ref=<path>/examples/ClientTests/compact/BoxTrafos.xml/>
<file ref=<path>/examples/ClientTests/compact/ExamplePlugins.xml/>
</includes>
where `BoxTrafos` is the entire original XML containing the geometry.
- Add plugins: configure Volume/SensitiveDetector object instances from information in XML Nodes. Given an XML tag like:
```
<plugin type="config" name="DD4hep_DetElementConfig" path="/world" debug="true">
<volume>
<regionref name="world_region"/>
<limitsetref name="world_limits"/>
<visref name="world_vis"/>
</volume>
</plugin>```
Can be used directly to modify the settings of s DetElement identified by its path. Similar for sensitive detector objects:
```
<plugin type="config" name="DD4hep_SensitiveDetectorConfig" detector="MyLHCBdetector5" debug="true">
<combine_hits value="true"/>
<verbose value="true"/>
<type value="tracker"/>
<ecut value="5*keV"/>
<hits_collection value="hits_collection_5"/>
</plugin>
```
- This construct also allows to configure the world volume as part of the resolution of issue https://github.com/AIDASoft/DD4hep/issues/1064
```
<world debug="true">
<regionref name="world_region"/>
<limitsetref name="world_limits"/>
<visref name="world_vis"/>
</world>
```
Technically the implementation are XML utilities, which are used both by the plugin and the Compact converter.
- Propagate the changes to the world volume to Geant4, which was not possible with DDG4 before, because production cuts and region settings for the world volume belong to Geant4 and are managed by Geant4. (also https://github.com/AIDASoft/DD4hep/issues/1064)
- Side product: Add debug flags for the G4 LimitSet conversion. To enable the flags in the python setup:
```
seq, act = m.geant4.addDetectorConstruction("Geant4DetectorGeometryConstruction/ConstructGeo")
act.DebugLimits = True
```
- Have the maps in DetectorData being named to ease debugging.
- Add some XML attribute conversions (more user friendliness)
- Add accessors to the PlacedVolume and the Volume handles to access the class name of the implementing class.
- DDDigi: Add passing event parameters to the output and from the input record to the store. Needs testing though,
but this requires a new release of podio.
* 2023-03-02 Markus Frank ([PR#1070](https://github.com/aidasoft/DD4hep/pull/1070))
- PR 1068 was incomplete (OpticalTracker). Add the missing pieces.
* 2023-03-01 Christopher Dilks ([PR#1068](https://github.com/aidasoft/DD4hep/pull/1068))
- fix: fill energy deposition for `Geant4SensitiveAction<Geant4OpticalTracker>`
* 2023-03-01 Markus Frank ([PR#1066](https://github.com/aidasoft/DD4hep/pull/1066))
- Add include directive in <plugins> section
(https://github.com/AIDASoft/DD4hep/commit/43b66bfd145c9e58c91f2189c2a3671ef9b2ef8e)
See Issue 1062 (https://github.com/AIDASoft/DD4hep/issues/1062)
- With test: /examples/ClientTests/compact/IncludePlugins.xml
- Some (mostly cosmetic) refactorization in DDDigi
# v01-25-01
* 2023-02-24 Andre Sailer ([PR#1063](https://github.com/aidasoft/dd4hep/pull/1063))
* DDG4: fix -Wnon-pod-varargs in Geant4Output2EDM4hep, which fails on clang
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
# v01-25
* 2023-02-23 Thomas Madlener ([PR#1059](https://github.com/aidasoft/dd4hep/pull/1059))
- Propagate HepMC event weights to EDM4hep and LCIO outputs of ddsim
- Store all available weights and their names into the Frame / Event parameters, additionally store the first weight into the `weight` field of the `edm4hep::EventHeader`, resp. the `LCEvent`.
- Add a possibility to store `double` values in `DDG4::EventParameters`
* 2023-02-23 Andre Sailer ([PR#920](https://github.com/aidasoft/dd4hep/pull/920))
- DDG4: Geant4InputHandling: Try to address the simulation of Excited Ions. Print a warning if we encounter excited Ions that Geant4 cannot handle. Waiting for something else to provide the excitation energy information that is needed in this case. Fixes #918 and #1051
- DDSim: Catch and log exceptions for physics/userFunctions.
* 2023-02-21 Ben Couturier ([PR#1060](https://github.com/aidasoft/dd4hep/pull/1060))
- Prevent a compact file from being loaded twice if the debug option "incguard" has been set.
* 2023-02-16 Andre Sailer ([PR#1061](https://github.com/aidasoft/dd4hep/pull/1061))
- ddsim: make it possible to use batchmode with userInputPlugins only
* 2023-02-09 Markus Frank ([PR#1058](https://github.com/aidasoft/dd4hep/pull/1058))
The export of dd4hep::units is problematic in the presence of identical libraries from DD4hep in the LD_LIBRARY_PATH:
- The ROOT auto-class loading tends to falsely load these libraries if constants from the dd4hep namespace are requested in python. This is clearly wrong: the original libraries may not be binary compatible. The
- The export of the units using a helper class fixes this and ensures that the auto load mechanism is not automatically triggered. This is at least a formally correct solution until the auto load mechanism is better understood.
- In the ROOT loader for DDDigi the `TBranch::SetAutoDelete(true)` was not set causing eventually double deletion and arbitrary crashes. Data read by DDDigi are put on the store and deleted by the application to allow subsequent reading for feeding other threads. If ROOT would take care of the deletion, multi-threaded processing is not possible.
* 2023-02-06 Dmitry Kalinkin ([PR#1055](https://github.com/aidasoft/dd4hep/pull/1055))
- Pass `DYLD_LIBRARY_PATH` environment to listcomponents_dd4hep when generating rootmaps in CMake
* 2023-01-31 Paul Gessinger ([PR#1053](https://github.com/aidasoft/dd4hep/pull/1053))
- Check podio version for compatibility in cmake
* 2023-01-30 Dmitry Kalinkin ([PR#1052](https://github.com/aidasoft/dd4hep/pull/1052))
- Removed not implemented declaration of member function `PlacedVolume::flags()`
* 2023-01-26 Thomas Madlener ([PR#1050](https://github.com/aidasoft/dd4hep/pull/1050))
- DDG4 EDM4hep Output: Write Frames into the `"runs"` category of the output file to store some run information.
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
# v01-24
* 2023-01-20 Andre Sailer ([PR#1048](https://github.com/AIDASoft/DD4hep/pull/1048))
- add -Wno-psabi to compiler flags to ignore warnings about ABI changes that we will never have issues with. Fixes #1043
* 2023-01-20 Andre Sailer ([PR#1046](https://github.com/AIDASoft/DD4hep/pull/1046))
- ParticleHandler: account for modified stepping actions, where tracking of a particle could be paused and later restarted.
* 2023-01-18 Andre Sailer ([PR#1045](https://github.com/AIDASoft/DD4hep/pull/1045))
- thisdd4hep: fix an issue with environment paths getting dropped when they contain a complete substring of a path that is going to be added
* 2023-01-18 Markus Frank ([PR#1044](https://github.com/AIDASoft/DD4hep/pull/1044))
- This PR addresses issue https://github.com/AIDASoft/DD4hep/issues/1037
Rather than adding the beta as a double it was chosen to add at each step the track momentum
in floats which for 4 more bytes offers more information.
* 2023-01-18 Andre Sailer ([PR#1042](https://github.com/AIDASoft/DD4hep/pull/1042))
- ddsim: fix exception when a compactFile path not containing any slashes was given (fixes #1039 )
* 2023-01-17 Markus Frank ([PR#1041](https://github.com/AIDASoft/DD4hep/pull/1041))
- Make DDDigi I/O interface more common and add edm4hep write/read example
- Move DDG4 edm4hep writer to use podio Frames
* 2023-01-11 Markus Frank ([PR#1038](https://github.com/AIDASoft/DD4hep/pull/1038))
- Improve DDDigi documentation when opening code sub-page
- Silence flak8 warning from python
- Fix a bug in the detector checksum module. Tested with TGeo units and G4 units of the CLICSiD model.
- Propagate the configuration flag `DD4HEP_USE_EDM4HEP` to the generated dd4hep cmake of client projects.
- Add DDDigi output module for the edm4hep format
- Add DDDigi output module for the native ROOT objects including required dictionaries.
* 2022-12-15 Markus Frank ([PR#1032](https://github.com/AIDASoft/DD4hep/pull/1032))
- Improve GDML export procedures
-- Allow to set export precision in the plugin
-- New ROOT release needed to properly export surfaces (current ROOT GDML export does not handle this currectly)
See ROOT PR https://github.com/root-project/root/pull/11886
See ROOT PR https://github.com/root-project/root/pull/11887
See ROOT PR https://github.com/root-project/root/pull/11888
See ROOT PR https://github.com/root-project/root/pull/11889
See ROOT PR https://github.com/root-project/root/pull/11895
- Remove some build errors for MAC
* 2022-12-09 Markus Frank ([PR#1030](https://github.com/AIDASoft/DD4hep/pull/1030))
- Program GDML writer (requires new ROOT release to take advantage)
* 2022-12-09 Markus Frank ([PR#1029](https://github.com/AIDASoft/DD4hep/pull/1029))
- Improve DDDigi package doc
- Bug fix in detector checksum
- Remove flak8 warnings
* 2022-12-06 Markus Frank ([PR#1028](https://github.com/AIDASoft/DD4hep/pull/1028))
- Add detector checksum facility as plugin: Compare different detector setups
- Gives identical hash results for TGeo units and G4 units
- Supports detector dumps with "unified" strings for debugging
```
Usage: -plugin DD4hepDetectorChecksum -arg [-arg]
-detector <string> Top level DetElement path. Default: '/world'
-readout also hash the detector's readout properties
(sensitive det, id desc, segmentation)
default: false
Debugging: Dump individual hash codes (debug>=1)
Debugging: and the hashed string (debug>2)
-dump_elements Dump hashes of used elements
-dump_materials Dump hashes of used materials
-dump_solids Dump hashes of used solids
-dump_volumes Dump hashes of used volumes
-dump_placements Dump hashes of used placements
-dump_detelements Dump hashes of used detelements
-dump_sensitive Dump hashes of sensitive detectors
-dump_readout Dump hashes of readout entities
-dump_iddescriptors Dump hashes of ID descriptors
-dump_segmentations Dump hashes of readout segmentations
Modify units in the created hash strings (deprecated):
-length_unit <value> Unit of length as literal. default: mm
-angle_unit <value> Unit of angle as literal. default: deg
-energy_unit <value> Unit of energy as literal. default: GeV
-density_unit <value> Unit of density as literal. default: g/cm3
-atomic_unit <value> Unit of atomic weight as literal. default: g/mole
-debug <number> Enable debug printouts.
-help Print this help output
```
* 2022-11-30 Kolja Kauder ([PR#1017](https://github.com/AIDASoft/DD4hep/pull/1017))
- Final state HepMC particles were all attached to (0,0,0). Fixed by switching vertex creation for parentless particles to using their end-point instead, fixes #1013
* 2022-11-26 Markus Frank ([PR#1026](https://github.com/AIDASoft/DD4hep/pull/1026))
- Fixed some coverity defects recently reported
- Fix Geant4Converter bug: Protect for reflected assembly shapes.
- Added feature to Geant4Output2ROOT to change file when the run number changes (ie. for each /run/beamOn command)
- Modify and enhance the MiniTel example in ClientTests to serve as a small, but flexible testbed for DDDigi
- Add multiple DDDigi tests using the modified MiniTel
o Data generator using DDG4
o See examples/DDDigi/scripts for the tests:
o multiple interactions
o spillover events
o Container parallelization
o Segmentation parallization
- Started to implement a checksum mechanism based on well formatted XML dumps similar to GDML, but with
well defined floating point precision.
o See https://github.com/AIDASoft/DD4hep/issues/994 for details
o first and incomplete dump for shapes.
o to be completed eventually
o whoever feels like it can become involved to implement such dumps for other objects:
- elements, isotopes, materials, DetElements, Volumes, Placements etc.
* 2022-11-25 jmcarcell ([PR#1024](https://github.com/AIDASoft/DD4hep/pull/1024))
- Fix compiler warning about unused variable
- Fix warning in example test and fix also the test, it was comparing `char* == char*` which is almost never true
* 2022-11-24 Wouter Deconinck ([PR#1012](https://github.com/AIDASoft/DD4hep/pull/1012))
- DDG4: Geant4TCUserParticleHandler: Allow for asymmetric tracking region with `tracker_region_zmin`
* 2022-11-22 Markus Frank ([PR#1023](https://github.com/AIDASoft/DD4hep/pull/1023))
Take into account suggestions from PR https://github.com/AIDASoft/DD4hep/pull/1021
* 2022-11-22 Markus Frank ([PR#1021](https://github.com/AIDASoft/DD4hep/pull/1021))
- Implemented issue https://github.com/AIDASoft/DD4hep/issues/1010: Changing Geant4 physics flags
o Extended the Geant4UIManager to support command queues at various stages of the program:
-- configure
-- initialize
-- pre-run
-- post-run
-- terminate
o Added interface function to directly communicate with the G4UI using string commands at any time
from python.
o Extended Geant4Kernel functionality to allow client actions to subscribe to stages of the program
and perform dedicated actions on:
-- configure
-- initialize
-- terminate
As an example please see DDG4/src/Geant4UIManager.cpp
- Dropped issue https://github.com/AIDASoft/DD4hep/issues/1004 after some tests and investigation:
This issue cannot be resolved, because MC records may also be read without Geant4 and a physics list being initialized.
Hence the event readers cannot implement such a feature if the event record does not support charge, but only the PDG code.
Conclusion is to best update the charge of particles at the output stage using the PDG code or to implement an event action,
which performs this actions right before the output stage.
- Simplified component properties.
- Improvements to DDDigi (work in progress)
* 2022-11-17 Andre Sailer ([PR#1019](https://github.com/AIDASoft/DD4hep/pull/1019))
- LCIOConversions: fix attaching SimCaloHit collections to event, this was accidentally dropped in #922
* 2022-11-16 Jonas Hahnfeld ([PR#1018](https://github.com/AIDASoft/DD4hep/pull/1018))
- Fix build with GCC 8
* 2022-11-11 Wouter Deconinck ([PR#1011](https://github.com/AIDASoft/DD4hep/pull/1011))
- Allow HepMC3 ROOT input files in ddsim when they end with `.hepmc3.tree.root`
* 2022-11-10 Wouter Deconinck ([PR#989](https://github.com/AIDASoft/DD4hep/pull/989))
- ddsim: Automatically interpret '.hepmc3' input files
* 2022-11-03 Andre Sailer ([PR#1005](https://github.com/AIDASoft/DD4hep/pull/1005))
- Examples: OpticalTracker: declare dependency on DDRec
- Docs: fix some typos noted in #1003
* 2022-10-30 Markus Frank ([PR#1002](https://github.com/AIDASoft/DD4hep/pull/1002))
- Fix to issue https://github.com/AIDASoft/DD4hep/issues/1000 and https://github.com/AIDASoft/DD4hep/issues/999
* 2022-10-29 Markus Frank ([PR#998](https://github.com/AIDASoft/DD4hep/pull/998))
- DDCore
-- Add string hash function for 8 and 16 bit hash results
-- Add position transformations (world, detector element) to volume manager
- DDG4
-- Fix interface to Geant4StackingAction. Add missing function interface to allow access to ClassifyNewTrack.
Also pass the current stacking manager reference to all user callbacks.
-- Add simple example to test the functionality examples/DDG4/scrips/TestStacking.py
- DDDigi
-- Add some processor plugins for simple data processing.
-- Enhance the usage of the Key identifier.
-- Add several test scripts in the example area.
- examples
-- Reduce the test execution time of the top CPU consumers by reducing the number of simulated events.
* 2022-10-24 Paul Gessinger ([PR#997](https://github.com/AIDASoft/DD4hep/pull/997))
- DD4HEP_RELAX_PYVER is exported to `DD4hepConfig.cmake`.
* 2022-10-22 Andre Sailer ([PR#996](https://github.com/AIDASoft/DD4hep/pull/996))
- DDSim: fix bug preventing the use of integers for the verbosity level (-v/--printLevel, --output.input etc.) fixes #992
* 2022-10-17 Andre Sailer ([PR#987](https://github.com/AIDASoft/DD4hep/pull/987))
- DDEve: Adapt to renamed header in upcoming ROOT 6.28
* 2022-10-17 Wouter Deconinck ([PR#986](https://github.com/AIDASoft/DD4hep/pull/986))
- Shapes::Trap: Fix the 4-argument trapezoidal prism constructor (again)
* 2022-10-10 Wouter Deconinck ([PR#983](https://github.com/AIDASoft/DD4hep/pull/983))
- Ensure that closed tessellated solids are converted to closed solids in geant4
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
# v01-23
* 2022-09-28 Wouter Deconinck ([PR#982](https://github.com/aidasoft/dd4hep/pull/982))
- ddsim: set eta_min, eta_max correctly for `ddsim --gun.distribution eta`
* 2022-09-23 Markus Frank ([PR#980](https://github.com/aidasoft/dd4hep/pull/980))
Remove using declarations in root-cling dictionary files to avoid interpreter clashes with the global namespace
Affected files:
- DDCore/src/GeoDictionary.h
- DDCore/src/PropertyDictionary.h
- DDCore/src/RootDictionary.h
- DDCore/src/SegmentationDictionary.h
- DDEve/include/DDEve/Dictionary.h
- DDG4/include/DDG4/DDG4Dict.h
* 2022-09-23 Marco Clemencic ([PR#979](https://github.com/aidasoft/dd4hep/pull/979))
- Use explicit namespaces in DDCond dictionary
* 2022-09-19 Wouter Deconinck ([PR#976](https://github.com/aidasoft/dd4hep/pull/976))
- `geoConverter -compact2tgeo` to write TGeo geometry to ROOT file
* 2022-09-19 Christopher Dilks ([PR#974](https://github.com/aidasoft/dd4hep/pull/974))
- add example RICH detector, demonstrating and testing `Geant4OpticalTrackerAction`
* 2022-09-16 Wouter Deconinck ([PR#975](https://github.com/aidasoft/dd4hep/pull/975))
- materialBudget: enable use with asymmetric detectors: adding thetaMin/thetaMax/etaMin to the steering file
* 2022-09-15 Wouter Deconinck ([PR#967](https://github.com/aidasoft/dd4hep/pull/967))
- Geant4OpticalTrackerAction which stops-and-kills optical photons for e.g. SiPM sensor planes
* 2022-09-12 Christopher Dilks ([PR#973](https://github.com/aidasoft/dd4hep/pull/973))
- fix typo in `examples/README.md`: `cmake` option `DD4HEP_BUILD_EXAMPLES` should be `DD4HEP_EXAMPLES`
* 2022-09-07 Dmitry Kalinkin ([PR#972](https://github.com/aidasoft/dd4hep/pull/972))
- Refactor thisdd4hep.sh to use local variables where possible to prevent user environment corruption.
* 2022-09-01 Andre Sailer ([PR#969](https://github.com/aidasoft/dd4hep/pull/969))
- DDSim: ddsim now prints out if the defaultFilter or if no filter is used for a sensitive detector
* 2022-09-01 Wouter Deconinck ([PR#968](https://github.com/aidasoft/dd4hep/pull/968))
- ddsin: Add `--runType qt` support for enabling the graphical Qt interface for geant4
- ddsim: change shell type to tcsh: enabling tab completion when Geant4 offers it
* 2022-08-26 Andre Sailer ([PR#962](https://github.com/aidasoft/dd4hep/pull/962))
- DDCore: DetectorInfo: make INFO attributes optional, fixes #960
* 2022-08-25 Andre Sailer ([PR#963](https://github.com/aidasoft/dd4hep/pull/963))
- ChannelingCrystalMaterial: fix crystal_orientation to be constPropertyRef
* 2022-08-25 Andre Sailer ([PR#961](https://github.com/aidasoft/dd4hep/pull/961))
- DDSim: fix example for adding user physics list extension
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
# v01-22
* 2022-08-16 Andre Sailer ([PR#957](https://github.com/aidasoft/dd4hep/pull/957))
- CI: add check for header guards
* 2022-08-15 Andre Sailer ([PR#956](https://github.com/aidasoft/dd4hep/pull/956))
- CI: Add test with Geant4Units enabled
* 2022-08-15 Andre Sailer ([PR#946](https://github.com/aidasoft/dd4hep/pull/946))
- CI changes, for discussion
* 2022-08-11 Markus Frank ([PR#954](https://github.com/aidasoft/dd4hep/pull/954))
Before starting to parse XML files, programatically set the locale to "C" if any of the three
- LC_NUMERIC,
- LC_TIME,
- LC_CTYPE
Is not set to "C".
Addresses issue https://github.com/AIDASoft/DD4hep/issues/913.
* 2022-08-11 Andre Sailer ([PR#953](https://github.com/aidasoft/dd4hep/pull/953))
- DDSim: find the python executable used during build and set that for the hashbang, e.g. python3.9 instead of python. Fixes #952
* 2022-08-10 Markus Frank ([PR#951](https://github.com/aidasoft/dd4hep/pull/951))
- Allow to set MeanExcEnergy, MeanEnergyPerIonPair and BirksConstant in G4Materials ionisation parameters.
Specify values in the compact description of the materials:
```
<material name="Ice">
<D type="density" value="1.0" unit="g/cm3"/>
<composite n="2" ref="H"/>
<composite n="1" ref="O"/>
<constant name="BirksConstant" value="123.456*mm/MeV"/>
<constant name="MeanExcitationEnergy" value="79.7*eV"/>
<constant name="MeanEnergyPerIonPair" value="50*eV"/>
</material>
```
Units will be converted to Geant4 units in the converter.
See issue https://github.com/AIDASoft/DD4hep/issues/890 for details.
If in DDG4 the the material debugging is enabled:
```
# Configure G4 geometry setup
seq, act = geant4.addDetectorConstruction("Geant4DetectorGeometryConstruction/ConstructGeo")
act.DebugMaterials = True
```
this gives the following output:
```
Ice ++ Created G4 material Material: Ice density: 1.000 g/cm3 RadL: 36.083 cm Nucl.Int.Length: 75.375 cm
Imean: 79.700 eV temperature: 293.15 K pressure: 1.00 atm
---> Element: H (H) Z = 1.0 N = 1 A = 1.008 g/mole
---> Isotope: H1 Z = 1 N = 1 A = 1.01 g/mole abundance: 99.989 %
---> Isotope: H2 Z = 1 N = 2 A = 2.01 g/mole abundance: 0.011 %
ElmMassFraction: 11.19 % ElmAbundance 66.67 %
---> Element: O (O) Z = 8.0 N = 16 A = 15.999 g/mole
---> Isotope: O16 Z = 8 N = 16 A = 15.99 g/mole abundance: 99.757 %
---> Isotope: O17 Z = 8 N = 17 A = 17.00 g/mole abundance: 0.038 %
---> Isotope: O18 Z = 8 N = 18 A = 18.00 g/mole abundance: 0.205 %
ElmMassFraction: 88.81 % ElmAbundance 33.33 %
log(MEE): -9.437 Birk's constant: 123.5 [mm/MeV] Mean Energy Per Ion Pair: 50 [eV]
```
* 2022-08-10 Markus Frank ([PR#950](https://github.com/aidasoft/dd4hep/pull/950))
On request from out LHC colleagues DD4hep supports channeling physics in Geant4.
To support channeling physics in Geant4 it is necessary to enable the transparent
creation of G4ExtendedMaterial and G4LogicalCrystalVolume instances.
This can be done in DD4hep with the supply of material and volume properties in DD4hep.
Material properties can be supplied in the compact description like here:
```
<material name="Ice">
<D type="density" value="1.0" unit="g/cm3"/>
<composite n="2" ref="H"/>
<composite n="1" ref="O"/>
<constant name="Geant4-plugin:material" option="ChannelingCrystalMaterial"/>
<constant name="Geant4-ignore:crystal_data" option="${DD4hepExamplesINSTALL}/examples/DDG4/data/Si220pl/Si220pl"/>
<constant name="Geant4-ignore:crystal_orientation" option="(1,0,0)"/>
</material>
```
The property starting with the tag `Geant4-plugin` is used to determine the proper plugin
preparing the G4ExtendedMaterial instance.
All properties with tags `Geant4-ignore` are not passed as material properties to Geant4.
Properties starting with this tag can be used by users to configure the G4ExtendedMaterial instance.
Volumes can as well have properties as this C++ example shows:
```
Volume vol = Volume("Volume", solid, material);
xml_elt_t ec = ...;
vol.addProperty(ec.attr<std::string>(_U(name)), ec.attr<std::string>(_U(value)));
```
with values supplied by XML:
```
<property name="Geant4-plugin" value="ChannelingCrystalVolume"/>
```
For more details see the example `<DD4hep>/examples/DDG4/compact/Channeling.xml`.
Again the property `Geant4-plugin` is used to call a plugin to create sub-classes
of G4LogicalVolume like G4LogicalCrystalVolume.
An example was prepared in `<DD4hep>/examples/DDG4` containing:
- a compact description: `compact/Channeling.xml`
- an example factory for the G4ExtendedMaterial: `src/ChannelingCrystalMaterial.cpp`
- an example factory for the G4LogicalCrystalVolume: `src/ChannelingCrystalVolume.cpp`
- A script invoking Geant4 to test this setup: `scripts/Channeling.py`
* 2022-08-09 Dmitry Kalinkin ([PR#949](https://github.com/aidasoft/dd4hep/pull/949))
- DDSim: restore the fixed momentum behaviour of `--gun.energy`, independent of the isotrop setting for the particle gun. If gun.energy is set, the momentum will have this value. If it is not set, momentumMin and momentumMax will be used to pick a value.
* 2022-08-05 Andre Sailer ([PR#942](https://github.com/aidasoft/dd4hep/pull/942))
- DDSim: add option to set userInputPlugin for simulation by adding a plugin for themselves, and this to the ddsim steering file (for #940)
```python
def exampleUserPlugin(dd4hepSimulation):
'''Example code for user created plugin.
:param DD4hepSimulation dd4hepSimulation: The DD4hepSimulation instance, so all parameters can be accessed
:return: GeneratorAction
'''
from DDG4 import GeneratorAction, Kernel
# Geant4InputAction is the type of plugin, Cry1 just an identifier
gen = GeneratorAction(Kernel(), 'Geant4InputAction/Cry1' , True)
# CRYEventReader is the actual plugin, steeringFile its constructor parameter
gen.Input = 'CRYEventReader|' + 'steeringFile'
# we can give a dictionary of Parameters that has to be interpreted by the setParameters function of the plugin
gen.Parameters = {'DataFilePath': '/path/to/files/data'}
gen.enableUI()
return gen
SIM.inputConfig.userInputPlugin = exampleUserPlugin
```
* 2022-08-04 Andrea Ciarma ([PR#944](https://github.com/aidasoft/dd4hep/pull/944))
* Mask_o1: Added the possibility to have sensitive elements of type Mask_o1_v01_geo by adding a `sensitive="sensitiveType"` attribute
* 2022-08-02 Juraj Smiesko ([PR#941](https://github.com/aidasoft/dd4hep/pull/941))
* checkOverlaps.py: Adding possibility to provide multiple compact files
* checkOverlaps.py: replace optparse by argparse for up-to-date python
* 2022-08-01 Markus Frank ([PR#939](https://github.com/aidasoft/dd4hep/pull/939))
- Follow up of https://github.com/AIDASoft/DD4hep/pull/938.
Improves the DetectorCheck plugin.
- Add example with an "ill" detector description that triggers the DetectorCheck plugin
to complain and to eject pathes to problematic detector elements ect.
* 2022-07-29 Markus Frank ([PR#938](https://github.com/aidasoft/dd4hep/pull/938))
- Fix type in DDCore/src/DD4hepRootPersistency.cpp
- Add operator== and operator != to handles of DetElement, SensitiveDetector
Volume and PlacedVolume. Check pointer values for equality.
- Add plugin DD4hep_DetectorCheck. Improves and replaces DD4hep_VolumeMgrTest.
o Test checks the strutural tree of a given top element
o Test checks the geometry tree of a given top element
o If physical volume ids are properly placed these can also be checked.
```
DD4hep_DetectorCheck -option [-option]
-help Print this help message
-name <subdetector name> Name of the subdetector to be checked
"ALL" or "all": loop over known subdetectors
"world" start from the mother of all...
-structure Check structural tree consistency
-geometry Check geometry tree consistency
-sensitve Check consistency between detector and volume
settings of sensitive detectors.
-volmgr Check volume manager entries against volIDs of
sensitive volume placements.
NOTE: Option requires proper PhysVolID setup
of the sensitive volume placements !
```
* 2022-07-27 Juraj Smiesko ([PR#937](https://github.com/aidasoft/dd4hep/pull/937))
- Improving error message when setting detector type flags
* 2022-07-27 Andre Sailer ([PR#935](https://github.com/aidasoft/dd4hep/pull/935))
- ddsim: Fix setting of zeroTimePDGs, previously this value was not forwarded from config to the program
- particle.tbl: change 523 to unstable (fixes #909)
- Geant4InputHandling: add exception when encountering stable particles with daughters that are marked for simulation (implements feature of #909)
- Geant4InputHandling: reject particles with GEN_DOC, GEN_BEAM, GEN_OTHER (fixes part of #918)
* 2022-07-26 Markus Frank ([PR#936](https://github.com/aidasoft/dd4hep/pull/936))
- Recursive calls to apply-plugins overwrote the return code.
- This MR fixes issue https://github.com/AIDASoft/DD4hep/issues/875
- Support for 1D, 2D and 3D parameterised volumes.
(Outstanding request by S.Ko)
1. TGeo does not support parametrized volumes intrinsically.
On the dd4hep/TGeo side these are implemented by multiple placements
according to the user supplied transformation matrices.
For details see the calls in `dd4hep::Volume::paramVolume<dim>D(...)`
2. When translated to Geant4, the structures are identified and
the proper Geant4 parameterisation is created.
3. An example can be found in:
- `examples/ClientTests/src/ParamVolume_geo.cpp`
- to display: `geoDisplay examples/ClientTests/compact/ParamVolume<dim>D.xml`
- the Geant4 conversion is excercised with the scripts:
```
python examples/ClientTests/scripts/ParamVolume.py \
-geometry examples/ClientTests/compact/ParamVolume<dim>D.xml \
-vis -macro examples/ClientTests/compact/ParamVolume.mac ```
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
# v01-21
* 2022-07-19 Markus Frank ([PR#933](https://github.com/aidasoft/DD4hep/pull/933))
The fast simulation handling in Geant4 includes the GFlash interface
as implemented in `<geant40-source>/source/parameterisations/gflash`
and a fast simulation interface as provided by
`<geant40-source>/source/processes/parameterisation`
This MR allows to handle both mechanisms using the same callbacks
in the Geant4SensitiveActions using the callback specialization:
```
/// GFLASH/FastSim interface: Method for generating hit(s) using the information of the fast simulation spot object.
virtual bool processFastSim(const Geant4FastSimSpot* spot, G4TouchableHistory* history) final;
```
in addition to the regular callback for full simulation:
```
/// G4VSensitiveDetector interface: Method for generating hit(s) using the G4Step object.
virtual bool process(const G4Step* step,G4TouchableHistory* history) final;
```
The `Geant4FastSimSpot` is inspired by the `G4GFlashSpot`, but avoids the specialization towards GFlash
given that the `G4FastHit` and the `G4GFlashEnergySpot` are equivalent.
Together with the helper class `Geant4FastSimHandler` simple sensitive detector callbacks
can be implemented like:
```
/// GFlash/FastSim interface: Method for generating hit(s) using the information of Geant4FastSimSpot object.
template <> bool
Geant4SensitiveAction<Geant4Tracker>::processFastSim(const Geant4FastSimSpot* spot,
G4TouchableHistory* /* hist */)
{
typedef Geant4Tracker::Hit Hit;
Geant4FastSimHandler h(spot);
Hit* hit = new Hit(h.trkID(), h.trkPdgID(), h.deposit(), h.track->GetGlobalTime());
hit->cellID = cellID(h.touchable(), h.avgPositionG4());
hit->energyDeposit = h.deposit();
hit->position = h.avgPosition();
hit->momentum = h.momentum();
hit->length = 0e0;
collection(m_collectionID)->add(hit);
return true;
}
```
Callbacks with this signature are called both for GFlash and the G4 fast simulation.
To simplify the user defined construction of fast simulation shower models
the helper class `Geant4FastSimShowerModel` is implemented as a `Geant4Action`
and hence allows to have options to be set by the user (including python).
As an illustration two fast simulation shower models were implemented in
`<dd4hep>/DDG4/plugins/Geant4P1ShowerModel.cpp` which were directly deduced
from the Geant4 example `<geant4-source>/examples/extended/parameterisations/Par01`.
Please see the source files for details.
To execute GFlash or fast simulation to simple python examples are provided
using simple silicon blocks as sensitive volumes:
- GFlash `<dd4hep-dir>/examples/ClientTests/scripts/SiliconBlockGFlash.py`
- Fast simulation `<dd4hep-dir>/examples/ClientTests/scripts/SiliconBlockFastSim.py`
To enable either the following actions are required:
1. Enable fast simulation for certain particles in the physics list:
``` # Build the physics list:
phys = geant4.setupPhysics('FTFP_BERT')
ph = DDG4.PhysicsList(kernel, str('Geant4FastPhysics/FastPhysicsList'))
ph.EnabledParticles = ['e+', 'e-']
ph.enableUI()
phys.adopt(ph)
```
This step is identical for GFlash and fast simulation physics.
2. Enable the shower mode:
``` model = DDG4.DetectorConstruction(kernel, str('Geant4Par01EMShowerModel/ShowerModel'))
# Mandatory model parameters
model.RegionName = 'SiRegion'
model.Material = 'Silicon'
model.ApplicableParticles = ['e+', 'e-']
model.Etrigger = {'e+': 0.1 * GeV, 'e-': 0.1 * GeV}
model.Enable = True
model.enableUI()
```
Here the options must be set according to the parameters required by the shower models.
The G4 fast simulation interface is only functional for Geant4 version >= 10.07.
For lower versions of Geant4 missing classes are stubbed to allow the compilation.
* 2022-07-18 Paul Gessinger ([PR#931](https://github.com/aidasoft/DD4hep/pull/931))
- Update `VariantParameters`: `value_or` is const (returns by value anyway), add non-const `get` method
* 2022-07-15 Markus Frank ([PR#930](https://github.com/aidasoft/DD4hep/pull/930))
- Fix some handler
- Add 2 examples to test the functionality
* 2022-07-14 Markus Frank ([PR#929](https://github.com/aidasoft/DD4hep/pull/929))
- First attempt to implement GFlash parametrization for DDG4
- Example is in examples/ClientTests/scripts/SiliconBlockGFlash.py
Relevant code changes are for the detector construction:
```
seq, act = geant4.addDetectorConstruction('Geant4DetectorGeometryConstruction/ConstructGeo')
....
# Enable GFlash shower model
model = DDG4.DetectorConstruction(kernel, str('Geant4GFlashShowerModel/ShowerModel'))
model.Parametrization = 'GFlashHomoShowerParameterisation'
# Mandatory model parameters
model.RegionName = 'SiRegion'
model.Material = 'Silicon'
model.Enable = True
# Energy boundaries are optional
model.Emin = {'e+': 0.1*GeV, 'e-': 0.1*GeV } # Units in GeV
model.Ekill = {'e+': 0.1*MeV, 'e-': 0.1*MeV }
model.enableUI()
seq.adopt(model)
```
and the physics list.
```
# Now build the physics list:
phys = geant4.setupPhysics('FTFP_BERT')
ph = DDG4.PhysicsList(kernel, str('Geant4FastPhysics/FastPhysicsList'))
ph.EnabledParticles = ['e+', 'e-']
ph.BeVerbose = True
ph.enableUI()
phys.adopt(ph)
```
The setup of the regions is crucial for GFlash to work, because it applies to regions.
For concrete detector constructors the proper regional setting are mandatory, but do not affect
this implementation.
* 2022-07-12 Andre Sailer ([PR#928](https://github.com/aidasoft/DD4hep/pull/928))
- CI: Due to incompatibilities we can no longer test macOS on github
* 2022-07-12 Markus Frank ([PR#927](https://github.com/aidasoft/DD4hep/pull/927))
Easy possibility to store condition payloads as std::any.
- Use of specialized handle class `dd4hep::ConditionAny` to support the functionality.
The payload is automatically bound to an object of type std::any.
Example code of constructor and how to access data:
```
/// Emplacement construction
std::vector<int> value;
... // fill data
ConditionAny c2("name", "type", std::move(value));
/// Construct conditions object with empty std::any
ConditionAny c2("name", "type");
/// Assign data (empty vector<int>) to the payload:
c2.get() = vector<int>();
/// Access data:
vector<int>& data = c2.as<vector<int> >();
```
as a corollary to this approach these conditions can only be stored and retrieved from ROOT storage
if the requirement for ROOT are satisfied. Otherwise no other restrictions are imposed.
The corresponding grammar instance is part of the library.
- Add example to illustrate the functionality in example/conditions:
o examples/Conditions/src/ConditionAnyExampleObjects.cpp
o examples/Conditions/src/ConditionAnyExampleObjects.h
o plugin: examples/Conditions/src/ConditionAnyExample_populate.cpp
Invocation:
```
$> geoPluginRun -destroy -plugin DD4hep_ConditionAnyExample_populate \
-input ../../DD4hep/examples/AlignDet/compact/Telescope.xml -iovs 1
```
- Plugin example to test basic functionality and verify proper assignment works
o examples/Conditions/src/Conditions_any_basic.cpp
Invocation:
```
$> geoPluginRun -destroy -volmgr -plugin DD4hep_Conditions_any_basic
```
- Add 2 tests illustrating this functionality.
* 2022-07-09 Markus Frank ([PR#925](https://github.com/aidasoft/DD4hep/pull/925))
Easy possibility to store condition payloads as std::any.
- Use of specialized handle class `dd4hep::ConditionAny` to support the functionality.
The payload is automatically bound to an object of type std::any.
Example code of constructor and how to access data:
```
/// Emplacement construction
std::vector<int> value;
... // fill data
ConditionAny c2("name", "type", std::move(value));
/// Construct conditions object with empty std::any
ConditionAny c2("name", "type");
/// Assign data (empty vector<int>) to the payload:
c2.get() = vector<int>();
/// Access data:
vector<int>& data = c2.as<vector<int> >();
```
as a corollary to this approach these conditions can only be stored and retrieved from ROOT storage
if the requirement for ROOT are satisfied. Otherwise no other restrictions are imposed.
The corresponding grammar instance is part of the library.
- Add example to illustrate the functionality in example/conditions:
o examples/Conditions/src/ConditionAnyExampleObjects.cpp
o examples/Conditions/src/ConditionAnyExampleObjects.h
o plugin: examples/Conditions/src/ConditionAnyExample_populate.cpp
Invocation:
```
$> geoPluginRun -destroy -plugin DD4hep_ConditionAnyExample_populate \
-input ../../DD4hep/examples/AlignDet/compact/Telescope.xml -iovs 1
```
- Plugin example to test basic functionality and verify proper assignment works
o examples/Conditions/src/Conditions_any_basic.cpp
Invocation:
```
$> geoPluginRun -destroy -volmgr -plugin DD4hep_Conditions_any_basic
```
* 2022-07-07 Andre Sailer ([PR#922](https://github.com/aidasoft/DD4hep/pull/922))
- LCIOOutput: Fix exception when trying to use a readout for different sub-detectors
- EDM4hepOutput: Fix memory leak when re-using readouts for different sub-detectors
* 2022-06-16 Markus Frank ([PR#917](https://github.com/aidasoft/DD4hep/pull/917))
-- Improve error reporting if derived condition dependencies cannot be resolved
-- Add illustrating example
* 2022-06-14 Paul Gessinger ([PR#911](https://github.com/aidasoft/DD4hep/pull/911))
- Add `VariantParameters` extension + plugin to assign parameters to it by name.
* 2022-06-08 Andre Sailer ([PR#914](https://github.com/aidasoft/DD4hep/pull/914))
- DDSim: add possibility to use individual compact files, e.g.:
ddsim --compactFile $DD4hep/examples/CLICSiD/compact/SiD_multiple_inputs.xml $DD4hep/examples/CLICSiD/compact/SiD_detectors_1.xml $DD4hep/examples/CLICSiD/compact/SiD_detectors_2.xml $DD4hep/examples/CLICSiD/compact/SiD_close.xml --runType shell
* 2022-05-18 Andre Sailer ([PR#912](https://github.com/aidasoft/DD4hep/pull/912))
- Detector: some corrections to the function docstrings
* 2022-05-09 Marco Clemencic ([PR#910](https://github.com/aidasoft/DD4hep/pull/910))
- Plugin Service: check that the `LD_LIBRARY_PATH` (or `PATH` or `DYLD_LIBRAY_PATH`) are actually set before trying to use them (to avoid a crash)
* 2022-04-29 Andre Sailer ([PR#908](https://github.com/aidasoft/DD4hep/pull/908))
- CMake: add a message about how to avoid errors when manuals cannot be build, fixes #907
* 2022-04-28 Juraj Smiesko ([PR#906](https://github.com/aidasoft/DD4hep/pull/906))
- bootstrap script runs all tests
* 2022-04-28 Andre Sailer ([PR#905](https://github.com/aidasoft/DD4hep/pull/905))
- SegmentationInterna: fix shadow warning for `s`
- DDEve: fix shadow warnings for menuBar (bar), s
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
# v01-20-02
* 2022-04-04 Sanghyun Ko ([PR#902](https://github.com/aidasoft/dd4hep/pull/902))
- Fix a bug that cannot set G4 const property, following up #884
* 2022-03-30 Valentin Volkl ([PR#899](https://github.com/aidasoft/dd4hep/pull/899))
- cmake: DD4hepConfig: Drop unnecessary call to DD4HEP_SETUP_BOOST_TARGETS
* 2022-03-30 Markus Frank ([PR#898](https://github.com/aidasoft/dd4hep/pull/898))
- Reduce coverity warnings
* 2022-03-21 Markus Frank ([PR#897](https://github.com/aidasoft/dd4hep/pull/897))
See for the example
-- /examples/ClientTests/src/MaterialTester_geo.cpp
-- /examples/OpticalSurfaces/compact/ReadMaterialProperties.xml
-- /examples/OpticalSurfaces/scripts/ReadMaterialProperties.py
The python file is only there to show that the G4 simulation does not get screwed.....
Otherwise: to define properties, which do not participate in Geant4:
```
<material name="Water">
<D type="density" value="1.0" unit="g/cm3"/>
<composite n="2" ref="H"/>
<composite n="1" ref="O"/>
<!-- Properties used by Geant4 -->
<property name="RINDEX" ref="RINDEX__0x123aff00"/>
<property name="ABSLENGTH" ref="ABSLENGTH__0x123aff00"/>
<property name="FASTCOMPONENT" ref="FASTCOMPONENT__0x123aff00"/>
<property name="SLOWCOMPONENT" ref="SLOWCOMPONENT__0x123aff00"/>
<!-- Properties ignored by Geant4 -->
<property name="Property_of_mine" ref="Water__0x123aff00"/>
<constant name="BirksConstant" ref="Birk__Water|Geant4-ignore"/>
<!-- Constants ignored by Geant4 -->
<constant name="Constant_of_mine" ref="Water__Mine|Geant4-ignore"/>
</material>
```
where:
```
<properties>
<constant name="Birk__Water|Geant4-ignore" value="12.345678"/>
<constant name="Water__Mine|Geant4-ignore" value="87.654321"/>
</properties>
```
and
```
<matrix name= "Water__0x123aff00" option="Geant4-ignore" coldim="1" values="
2.034*eV
2.068*eV
2.103*eV
2.139*eV
2.177*eV
2.216*eV
"/>
</properties>
```
For non-const properties you have to set the option to "Geant4-ignore",
otherwise you append the string to the name. The "ref" string in the material
and the property must match.
In the program you can then access the propertiers by name like this:
```
Material material(...)
double v = material->GetConstProperty("BirksConstant");
TGDMLMatrix* m = material->GetProperty("Property_of_mine");
```
like any other property. See for details:
/examples/ClientTests/src/MaterialTester_geo.cpp lines 78-108
* 2022-03-21 Wouter Deconinck ([PR#896](https://github.com/aidasoft/dd4hep/pull/896))
- edm4hep: don't add particle as parent to its daughters, and vice versa
* 2022-03-15 Paul Gessinger ([PR#895](https://github.com/aidasoft/dd4hep/pull/895))
- Allow relaxing the python version requirements at CMake level via option `DD4HEP_RELAX_PYVER`.
# v01-20-01
* 2022-03-08 Markus FRANK ([PR#894](https://github.com/AIDASoft/DD4hep/pull/894))
- The refactoring of namespaces (some years ago) left some factory name discrepancies in DDEve.
This PR fixes them and re-enables the various views and projections.
See issue https://github.com/AIDASoft/DD4hep/issues/893.
- There are still some issues when loading a new file, which are not yet entirely understood.
The suspicion is that the displayed 2D histograms somehow "reside" in the opened file and disappear
when the file is closed. This however needs confirmation (and eventually fixing).
* 2022-03-04 Wouter Deconinck ([PR#892](https://github.com/AIDASoft/DD4hep/pull/892))
- Support `ddsim --gun.momentumMin 1*GeV --momentumMax 10*GeV` (default remains momentumMin = 0.0)
* 2022-02-25 Andre Sailer ([PR#891](https://github.com/AIDASoft/DD4hep/pull/891))
- DDParsers: do not use deprecated boost headers with boost 1.78
- DDG4 Particle.tbl: drop some diffr(active) particles causing warnings with Geant4 11.0
- DetectorIMP: Changing message about Geant4 unit system to INFO, fixes #844
- Volumes: Changing message about REFLECTION to DEBUG, fixes #844
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
# v01-20
* 2021-12-21 Markus Frank ([PR#888](https://github.com/aidasoft/DD4hep/pull/888))
- Changes for Geant4 11.0.0.
Propagate additional setup properties for optical parameters in Geant4ScintillationPhysics.
Other required changes were already included when preparing for the Geant4 beta release.
- Allow for Geant4 builds without GDML.
Enable conditional build if the Geant4 build does not support GDML
* 2021-12-16 Thomas Madlener ([PR#887](https://github.com/aidasoft/DD4hep/pull/887))
- Rework the EDM4hep output action. The major reason is the renaming of the default types in AIDASoft/podio#205 and its effects on EDM4hep (key4hep/EDM4hep#132). These changes are:
- Use `auto` wherever possible to remove any explicit mentioning of EDM4hep types.
- Switch to range-based for-loops where possible
- Keep an internal map of the collections to get rid of the `const_cast`s that were used before.
- EDM4hep output: Make sure that the daughter relations are also set, because that is not done automatically in EDM4hep but is in LCIO.
* 2021-12-02 Wouter Deconinck ([PR#886](https://github.com/aidasoft/DD4hep/pull/886))
- Add diquarks to default DDG4 rejectPDGs list
* 2021-11-26 Markus Frank ([PR#885](https://github.com/aidasoft/DD4hep/pull/885))
- Remove another occurrency of a call to G4::GetPropertyIndex() with 2nd argument.
- This PR is an addendum to the already closed request https://github.com/AIDASoft/DD4hep/pull/884
* 2021-11-22 Markus Frank ([PR#884](https://github.com/aidasoft/DD4hep/pull/884))
- Issue https://github.com/AIDASoft/DD4hep/issues/881
Next attempt for resolution. Avoid explicit use of the second argument in
```
G4int GetConstPropertyIndex(const G4String& key,
G4bool warning = false) const;
// Get the constant property index from the key-name
G4int GetPropertyIndex(const G4String& key, G4bool warning = false) const;
// Get the property index by the key-name.
```
Should satisfy existing and future snapshots of Geant4.
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
# v01-19
* 2021-11-12 Markus Frank ([PR#882](https://github.com/aidasoft/DD4hep/pull/882))
- See issue in github: https://github.com/AIDASoft/DD4hep/issues/881
- Material properties have changed in Geant4 between version 10 and 11.
- This fix should fix the compilation problems and take new properties in Geant4.11 into account.
* 2021-11-12 MarkusFrankATcernch ([PR#876](https://github.com/aidasoft/DD4hep/pull/876))
- Fix cmake issue when using cmake 3.16.3 (or any of the other versions of cmake that require special python version handling presumably) in a dependent package.
* 2021-11-10 Ben Couturier ([PR#880](https://github.com/aidasoft/DD4hep/pull/880))
- Added the default move constructor and default move assignment operator to dd4hep::detail::ConditionObject and dd4hep::NamedObject
* 2021-11-03 Markus Frank ([PR#877](https://github.com/aidasoft/DD4hep/pull/877))
- To not compromize client code with an enforced termination handler, the DD4hep termination handler
moved to DDG4, where it actually is needed. In DDG4 the termination handler is activated when the main
Geant4Kernel instance is created.
Reasoning: Please see issue https://github.com/AIDASoft/DD4hep/issues/874 .
- Throw an exception if clients ask a DetElement handle for a child by name if such a child is not present or the handle is invalid. This is the new default now. The old behaviour is kept with a second accessor for children by name, with an explicit statement that an exception is unwanted such as: child = DetElement::child("name", false)
Please see issue: https://github.com/AIDASoft/DD4hep/issues/878.
* 2021-10-13 Markus Frank ([PR#873](https://github.com/aidasoft/DD4hep/pull/873))
- Remove internal classes from evaluator. Use STL provided classes
- Remove hidden clashes with CLHEP evaluator (move internal class Item to anonymous namespace)
* 2021-09-22 Wouter Deconinck ([PR#872](https://github.com/aidasoft/DD4hep/pull/872))
- Allow for specifying MomentumMin and MomentumMax in Geant4IsotropeGenerator
* 2021-09-15 Markus Frank ([PR#871](https://github.com/aidasoft/DD4hep/pull/871))
- Finalize CAD stuff.
- Fix issue https://github.com/AIDASoft/DD4hep/issues/870
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
# v01-18
* 2021-09-07 Wouter Deconinck ([PR#869](https://github.com/aidasoft/DD4hep/pull/869))
- Use G4OpticalParameters in geant4.10.7 and newer
* 2021-09-06 Andre Sailer ([PR#863](https://github.com/aidasoft/DD4hep/pull/863))
- DDSim: add possibility for users to inject configurations for their own output plugins. See example in OutputConfig section of the steering file
* 2021-08-31 Markus Frank ([PR#867](https://github.com/aidasoft/DD4hep/pull/867))
- Mainly update reference files for CAD shape tests, since the order of the vertices changed when adding facets
with vertex indices rather than coordinates.
* 2021-08-30 Markus Frank ([PR#866](https://github.com/aidasoft/DD4hep/pull/866))
- The export of beoolean shapes (union, subtraction, intersection) to was not properly working
and actually casued segment vialotions. This PR fixes the problem and handles these shapes
properly using the RootCsg operations for boolean shapes.
- Examples geometries were provided by Gerri from FCC: examples/ClientTests/compact/FCCmachine and files thereein.
- Test example is in DDCAD: DDCAD_export_FCC_machine and DDCAD_import_FCC_machine
- This PR addresses the issues: https://github.com/AIDASoft/DD4hep/issues/813 , https://github.com/AIDASoft/DD4hep/issues/858
* 2021-08-25 Markus Frank ([PR#865](https://github.com/aidasoft/DD4hep/pull/865))
- In cmake tests use the macro ${Python_EXECUTABLE} to invoke the python interpreter rather than
only `python`.
- if `FIND_PACKAGE(Python ${REQUIRE_PYTHON_VERSION} EXACT QUIET COMPONENTS Interpreter)`
does not resolve the python executable fall back to `python${Python_VERSION_MAJOR}`.
* 2021-08-24 Markus FRANK ([PR#864](https://github.com/aidasoft/DD4hep/pull/864))
- Support for multiple readouts or (G4VUserParallelWorld equivalent)
Issue https://github.com/AIDASoft/DD4hep/issues/861
Example:
examples/CLICSiD/compact/SiD_ECAL_Parallel_Readout.xml +
examples/CLICSiD/scripts/SiD_ECAL_Parallel_Readout.py
For a given subdetector the sequence of sensitive actions can be enhanced
having multiple sensitive actions where each one can have its own Readout
definition. Hence each action can produce its own set of hits depending on the
readout geometry (segmentation).
in XML these readout structures must first be defined:
```
<readouts>
<readout name="EcalBarrelHits">
<segmentation type="CartesianGridXY" grid_size_x="3.5" grid_size_y="3.5" />
<id>system:8,barrel:3,module:4,layer:6,slice:5,x:32:-16,y:-16</id>
</readout>
<readout name="EcalBarrelHits_0">
<segmentation type="CartesianGridXY" grid_size_x="1" grid_size_y="1" />
<id>system:8,barrel:3,module:4,layer:6,slice:5,x:32:-16,y:-16</id>
</readout>
....
</readouts>
```
and can then be assigned to the sensitive actions in the python setup:
``` det = str('EcalBarrel')
typ = sid.geant4.sensitive_types['calorimeter']
seq = DDG4.SensitiveSequence(sid.kernel, str('Geant4SensDetActionSequence/') + det)
seq.enableUI()
act = DDG4.SensitiveAction(sid.kernel, str(typ + '/EcalBarrelHandler'), det)
act.enableUI()
seq.add(act)
# Add extra parallel readout action with readout EcalBarrelHits_0
act = DDG4.SensitiveAction(sid.kernel, str(typ + '/EcalBarrelHandler_0'), det)
act.ReadoutName = 'EcalBarrelHits_0'
act.enableUI()
seq.add(act)
# Add extra parallel readout action with readout EcalBarrelHits_1
act = DDG4.SensitiveAction(sid.kernel, str(typ + '/EcalBarrelHandler_1'), det)
act.ReadoutName = 'EcalBarrelHits_1'
...
```
* 2021-08-10 Wouter Deconinck ([PR#860](https://github.com/aidasoft/DD4hep/pull/860))
- Optionally import gdml physvol below top level, avoiding world
* 2021-08-03 Valentin Volkl ([PR#855](https://github.com/aidasoft/DD4hep/pull/855))
- [testing] separate import test for ddg4 and rest of dd4hep
* 2021-07-29 Markus FRANK ([PR#853](https://github.com/aidasoft/DD4hep/pull/853))
- Implement fix as proposed in issue https://github.com/AIDASoft/DD4hep/issues/850.
* 2021-07-27 Whitney Armstrong ([PR#851](https://github.com/aidasoft/DD4hep/pull/851))
- Using `ref="OtherVisName"` attribute with the `vis` tag, the visualization attribute is an extension of
`"OtherVisName"` which is used to initialize the new vis attribute.
- The new VisAttr inherits all the properties of the ref and additional arguments override these values.
Example where the only difference is the `alpha` value.
```
<vis name="SiVertexBarrelModuleVis"
alpha="1.0" r="1.0" g="0.75" b="0.76"
drawingStyle="wireframe"
showDaughters="false"
visible="true"/>
<vis name="SiVertexEndcapModuleVis"
ref="SiVertexBarrelModuleVis"
alpha="0.5"/>
```
* 2021-07-22 Whitney Armstrong ([PR#849](https://github.com/aidasoft/DD4hep/pull/849))
- Fix G4Sphere construction to use delta theta/phi instead of TGeo's ending angles phi2/theta2.
* 2021-07-21 Placido Fernandez Declara ([PR#847](https://github.com/aidasoft/DD4hep/pull/847))
- EDM4hepOutput: On collection creation for EDM4hep, save CellIDEncodingString
* 2021-06-24 Thomas Madlener ([PR#843](https://github.com/aidasoft/DD4hep/pull/843))
- Explicitly enable `C` as language to avoid problems in the build file generation step of cmake (see spack/spack#24232)
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
# v01-17-00
* 2021-06-02 Andre Sailer ([PR#838](https://github.com/aidasoft/DD4hep/pull/838))
- Geant4ShapeConverter: ExtrudedSolid: convert all vertices, fix #836, https://github.com/cms-sw/cmssw/issues/33656
* 2021-06-01 Marko Petric ([PR#840](https://github.com/aidasoft/DD4hep/pull/840))
- Do not propagate CMAKE_BUILD_TYPE in DD4hepConfig.cmake
* 2021-05-27 Markus FRANK ([PR#835](https://github.com/aidasoft/DD4hep/pull/835))
- On divisions the created solids did not carry the proper tag to identify them.
This PR fixes this issue when multi-volumes are imported in dd4hep.
See issue https://github.com/AIDASoft/DD4hep/issues/833
* 2021-05-17 Markus FRANK ([PR#829](https://github.com/aidasoft/DD4hep/pull/829))
- Add missing Solid instantiation for TGeoCtub
* 2021-05-12 Andre Sailer ([PR#823](https://github.com/aidasoft/DD4hep/pull/823))
- DDSim: add possibility for users to extend the physics setup with Physics.setupUserFunction
* 2021-05-07 Markus FRANK ([PR#825](https://github.com/aidasoft/DD4hep/pull/825))
- Fix as reported from CMS
* 2021-05-01 Markus FRANK ([PR#821](https://github.com/aidasoft/DD4hep/pull/821))
- Fix issue #820
* 2021-04-27 Andre Sailer ([PR#817](https://github.com/aidasoft/DD4hep/pull/817))
- Move `create_segmentation` to DDCore/include/DD4hep/detail/SegmentationsInterna.h to allow segmentation creation in other libraries
- Removed REGISTER_SEGMENTATION macro and DDSegmentation::SegmentationFactory class because they are obsolete. Use DECLARE_SEGMENTATION to create a plugin entry for segmentations.
* 2021-04-24 Markus FRANK ([PR#816](https://github.com/aidasoft/DD4hep/pull/816))
- Following requests, the support to output Volumes as CAD meshes.
Depending on the underlying technology material names and visual attributes are supported
- Improve CAD imports to take into account material names and visual attributes if supported
by the underlying CAD format.
- Add two examples showing the import and export technique.
* 2021-04-15 Markus FRANK ([PR#809](https://github.com/aidasoft/DD4hep/pull/809))
- DDG4: Extend existing sensitive detectors to be used for GFlash parametrized fast simulations
- DDG4: Remove legacy sensitive detectors, since they are no longer used by FCC
* 2021-04-15 Markus FRANK ([PR#808](https://github.com/aidasoft/DD4hep/pull/808))
- Disable copy and move construction/assignment in Geant4 data
See issue https://github.com/AIDASoft/DD4hep/issues/807
- Adopt new naming convention for Geant4 assembly imprints
See issue https://github.com/AIDASoft/DD4hep/issues/804
- Add G4FastSimulationManagerProcess for GFlash
* 2021-04-12 Marko Petric ([PR#803](https://github.com/aidasoft/DD4hep/pull/803))
- Fix bug in evaluator reported by Coverity
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
# v01-16-01
* 2021-03-26 Andre Sailer ([PR#799](https://github.com/AIDASoft/DD4hep/pull/799))
- DDG4: flush the geant4 strstream buffer after run. fixes #798
* 2021-03-26 Marko Petric ([PR#793](https://github.com/AIDASoft/DD4hep/pull/793))
- Account for possible units rounding bug in Tube creation (address #784 )
* 2021-03-23 Andre Sailer ([PR#797](https://github.com/AIDASoft/DD4hep/pull/797))
- DDG4Dict: Adapt to changes in Root 6.24
* 2021-03-23 Andre Sailer ([PR#796](https://github.com/AIDASoft/DD4hep/pull/796))
- RootDictionary: fix incompatibility with Root 6.24
* 2021-03-23 Andre Sailer ([PR#795](https://github.com/AIDASoft/DD4hep/pull/795))
- Geant4Input: Add debug output for accepting or rejecting Particles
* 2021-03-14 Markus FRANK ([PR#794](https://github.com/AIDASoft/DD4hep/pull/794))
- Address Coverity issues
* 2021-03-12 Marko Petric ([PR#792](https://github.com/AIDASoft/DD4hep/pull/792))
- Use `CMAKE_SHARED_LIBRARY_SUFFIX` to define suffix of assimp libs
- Define `BUILD_BYPRODUCTS` for compatibility with `ninja`
* 2021-03-12 Markus FRANK ([PR#791](https://github.com/AIDASoft/DD4hep/pull/791))
- Remove a bunch of Coverity warnings.
* 2021-03-12 MarkusFrankATcernch ([PR#790](https://github.com/AIDASoft/DD4hep/pull/790))
- update materialBudget utility
- allow to optionally use pseudo rapidity eta rather than polar angle
* 2021-03-12 Marko Petric ([PR#788](https://github.com/AIDASoft/DD4hep/pull/788))
- Use flag `--as-needed` for GNU linkers
* 2021-03-11 Markus FRANK ([PR#789](https://github.com/AIDASoft/DD4hep/pull/789))
- Fix several coverity warnings
- Fix bug in extracting unsigned int/long from xml: conversion to unsigned values had a bug.
- Remove unnecessary printout in Geant4Converter
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
# v01-16
* 2021-03-02 Markus FRANK ([PR#787](https://github.com/AIDASoft/DD4hep/pull/787))
- Resolves #786. Also add an example to reproduce the Fix.
- Add protection in Detector object against registering DetElements without placement
- Modernize loop handling according to C++ 17 standards
* 2021-02-15 Andre Sailer ([PR#783](https://github.com/AIDASoft/DD4hep/pull/783))
- Adapt to new ROOT mechanism for switching the unit system.
Units can be switched now multiple times provided the units are unlocked in the TGeoManager.
See TGeoManager::LockDefaultUnits(Bool_t new_value).
This is only available for ROOT versions >= 6.22.08
- Improve examples/Conditions. Allow for more complex dependencies. Not enabled by default.
* 2021-01-31 Markus FRANK ([PR#779](https://github.com/AIDASoft/DD4hep/pull/779))
- Propagate changes in ComponentCast to the EDM module
* 2021-01-30 Markus FRANK ([PR#778](https://github.com/AIDASoft/DD4hep/pull/778))
- Move the header DD4hep/detail/Grammar_parsed.h to DD4hep/GrammarParsed.h
- Move the header DD4hep/detail/Grammar_unparsed.h to DD4hep/GrammarUnparsed.h
- Try to improve type agnostic ABI cast. Works for down casts only.
* 2021-01-08 Markus FRANK ([PR#772](https://github.com/AIDASoft/DD4hep/pull/772))
- This is the first release prepared to use Geant4 units (mm,ns,MeV). This compilation mode can be steered by a cmake flag: `-DDD4HEP_USE_GEANT4_UNITS=ON`. Once set, the flag is automatically propagated to depending projects in the generated `DD4hepConfig.cmake`. It programs TGeo to use the Geant4 units system. The unit system is applied also to depending quantities like interaction lengths etc.
- Update some tests and ensure compatibility in the checks/reference files for both unit system. There is one caveat: Mesh-creation of shapes depends to some degree on the unit system, because mesh points are removed depending on a tolerance value which is the same for both systems.
- A fix had to be applied to propagate the flag `DD4HEP_BUILD_DEBUG` to depending projects. This flag affects some object layouts and hence MUST be applied also to depending projects.
- Remove inclusions of `Plugins.h` from being processed by rootcling. Plugins.h uses `#include <any>`, which cannot be processed.
* 2020-12-18 Marko Petric ([PR#771](https://github.com/AIDASoft/DD4hep/pull/771))
- Expand list of cmake versions that have bug in detecting python version (see AIDASoft/podio#162)
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
# v01-15
* 2020-12-08 Frank Gaede ([PR#740](https://github.com/AIDASoft/DD4hep/pull/740))
- add back the Geant4Output2EDM4hep plugin from EDM4hep
- use optional flag `D4HEP_USE_EDM4HEP` to build this
- requires podio and EDM4hep to be present
- fix treatment of units in Geant4Output2EDM4hep
- DDTest: add optional ddsim tests with edm4hep and lcio output (A.Sailer)
- enable `D4HEP_USE_EDM4HEP` in CI for dev (A.Sailer)
* 2020-12-07 Christopher Jones ([PR#767](https://github.com/AIDASoft/DD4hep/pull/767))
- Made internal classes used by Evaluator to be less stateful
- Switch to using a read/write lock as modifications to the Evaluator are much less frequent than reads.
- Added unit test for Evaluator
* 2020-12-04 Andre Sailer ([PR#766](https://github.com/AIDASoft/DD4hep/pull/766))
- DDG4: hepmc3reader: add checks for read and skip success
- DDTest: test hepmc3 reader, make lcio and hepmc3 reader tests depend on configuration.
* 2020-12-04 Andre Sailer ([PR#765](https://github.com/AIDASoft/DD4hep/pull/765))
- DDG4: Geant4InputHandling: create particle with 4 vector (vecP, E), solves issue where the dynamic mass differs from the PDG mass (e.g., via particle.tbl / extraParticles), #760
* 2020-12-03 MarkusFrankATcernch ([PR#753](https://github.com/AIDASoft/DD4hep/pull/753))
- Always use `CLHEP/Units/SystemOfUnits.h` and never `G4SystemOfUnits.hh`
- in `G4SystemOfUnits.hh`units are directly in the top level namespace
- in `CLHEP/Units/SystemOfUnits.h` units are in the `CLHEP::` namespace
- Remove all usage `using namespace CLHEP` and `using CLHEP::__some_unit__` to clarify which unit is used
* 2020-12-02 MarkusFrankATcernch ([PR#764](https://github.com/AIDASoft/DD4hep/pull/764))
- Make scaled shapes includes conditional on Geant4 version (>=10.3)
- Improve thread safety of expression evaluator
* 2020-12-02 Andre Sailer ([PR#754](https://github.com/AIDASoft/DD4hep/pull/754))
- ddsim: fix problem with `--dumpSteeringFile` in python3
- ddsim: fix issue in where isotrop was False, when distribution was set (python3)
- ddsim: fix exception in exceptions for gun direction and position
- ddsim: fix problem where `hepmc.useHepMC3` was always True by default
- PluginManager: rename the listcomponents executable to listcomponents_dd4hep, to avoid clash with the Gaudi listcomponents. This is transparent for users of the dd4hep_add_plugin cmake macro.
- DDG4Dict: remove `dd4hep::sim::Geant4InputAction::Particles;` as this is available under a different name, fixes warning
- CMake: DD4hepConfig.cmake: use find_dependency with CONFIG for Geant4, TBB, ROOT, LCIO, and if needed CLHEP, to avoid accidental use of `Find<PACKAGE>.cmake` modules
* 2020-11-24 MarkusFrankATcernch ([PR#757](https://github.com/AIDASoft/DD4hep/pull/757))
- Expression evaluation was not protected against race conditions when executing in multiple threads. We lock now the evaluation namespace with an associated lock when evaluating expression statements. Each evaluation call is wrapped and protected. This should ensure thread safety.
* 2020-11-24 Marko Petric ([PR#751](https://github.com/AIDASoft/DD4hep/pull/751))
- Resolve which type of linker is used and assign proper linking flags
* 2020-11-21 Markus FRANK ([PR#756](https://github.com/AIDASoft/DD4hep/pull/756))
- Remove from Geant4 conversion of scaled shapes artifacts of the prior implementation of reflections.
This was a wrong implementation and should now be fixed.
This PR should fix issue https://github.com/AIDASoft/DD4hep/issues/750
- Introduce the Scale (based on TGeoScaledShape) as a separate shape om DD4hep.
- Add test for scaled shape
* 2020-11-19 Marko Petric ([PR#749](https://github.com/AIDASoft/DD4hep/pull/749))
- Add explanation of the system of units to the user manual
* 2020-11-19 MarkusFrankATcernch ([PR#748](https://github.com/AIDASoft/DD4hep/pull/748))
- Review documentation
o Add chapter to describe MC truth handling for DDG4
o Review shape and shape plugin section in the DD4hep manual
- Adapt ConeSegment shape plugin to allow for standard syntax
- Fix Torus shape plugin and test
- Add copyright notice to various test files
* 2020-11-19 Ole Hansen ([PR#745](https://github.com/AIDASoft/DD4hep/pull/745))
- Improve path handling in setup scripts, by avoiding duplicates in paths. Also support whitespaces in paths and don't add system paths to library paths on macOS
* 2020-11-19 Ole Hansen ([PR#743](https://github.com/AIDASoft/DD4hep/pull/743))
- Fix compilation warnings from Apple Clang 12
- Fix broken `t_CLICSiD_DDG4_g4geometry_scan_LONGTEST` test condition which always matched.
* 2020-11-18 Ole Hansen ([PR#744](https://github.com/AIDASoft/DD4hep/pull/744))
- CMake: Fix regression that examples and example tests can now be built and run together with the main project
* 2020-11-16 Markus FRANK ([PR#747](https://github.com/AIDASoft/DD4hep/pull/747))
- Add documentation of DDG4 Monte-Carlo truth handler
- Add documentation of DDG4 ROOT output module
* 2020-11-13 Markus FRANK ([PR#742](https://github.com/AIDASoft/DD4hep/pull/742))
- Add example for CMS CSC: tests divisions
- Add example for CMS ECAL: tests reflections
- Improve DDG4_MySensDet: Example illustrating how to have customized sensitive detectors and user defined hit classes with data saved to ROOT. Example corresponding to question raised in https://github.com/AIDASoft/DD4hep/issues/703
The example also includes a small script to read back the data generated with this example:
Command line usage:
* $> root.exe
* ....
* root [0] gSystem->Load("libDDG4Plugins.so");
* root [1] gSystem->Load("libDDG4_MySensDet.so");
* root [2] SomeExperiment::Dump::dumpData(<num-ebents>,<file-name>);
- Remove the odd shadowing warning.
- Improve visualization attributes:
As reported by Sanhyung Ko (https://indico.cern.ch/event/967418/contributions/4075358/attachments/2128099/3583278/201009_shKo_dd4hep.pdf) the application of visual attributes to volumes was very resource intensive.
This should be fixed by asking for the transparent color only once at the level of the attribute rather then for each volume.
* 2020-11-11 Frank Gaede ([PR#738](https://github.com/AIDASoft/DD4hep/pull/738))
- fix units in DDG4/LCIO conversions
- prepend namespace CLHEP where missing
* 2020-11-10 Markus FRANK ([PR#736](https://github.com/AIDASoft/DD4hep/pull/736))
- Update DDCMS example to take into account new xml tags.
- Improve some core object helpers
* 2020-11-06 Markus FRANK ([PR#734](https://github.com/AIDASoft/DD4hep/pull/734))
- No new implementation for reflections. Still uses TGeo way with scaled shape.
This implementation is not supposed to be used.
- Added test to debug reflections
* 2020-11-05 Ianna Osborne ([PR#732](https://github.com/AIDASoft/DD4hep/pull/732))
- Examples.DDCMS: add CMS EcalEndcap description to test reflected volumes
* 2020-11-03 Andre Sailer ([PR#731](https://github.com/AIDASoft/DD4hep/pull/731))
- Tests: Always run AClick tests sequentially, fixes #730
* 2020-11-03 Andre Sailer ([PR#728](https://github.com/AIDASoft/DD4hep/pull/728))
* CMake: fix python version compatibility check between python and root used for python. Add exception for CMake 3.17.1
* Tests: fix some test configuration to run all tests after `-D DD4HEP_BUILD_EXAMPLES=ON`
* Tests: fix tests for root 6.22.04 and master
* 2020-11-02 Andre Sailer ([PR#725](https://github.com/AIDASoft/DD4hep/pull/725))
- CMake: fail if ROOT and DD4hep python disagree
* 2020-10-14 Ianna Osborne ([PR#723](https://github.com/AIDASoft/DD4hep/pull/723))
- SpecParRegistry: remove need for TBB
- TBB has a slight overhead compare to std containers
- Using std containers allows to return references to the containers in the registry
- Reverse the plan to process XML files in parallel
# v01-14-01
* 2020-10-02 Markus Frank ([PR#720](https://github.com/AIDASoft/DD4hep/pull/720))
- Add the ability to access the `DetElement` in a derived condition. Access to it is enabled now for all
compilations (Debug + Release).
- When parsing compact, it is possible to inject plugins to create tables with tabulated properties in C++
- When parsing compact, it is possible to inject plugins to assign property tables to materials.
* 2020-09-28 Marko Petric ([PR#718](https://github.com/AIDASoft/DD4hep/pull/718))
- Replace deprecated `PyOS_AfterFork` with `PyOS_AfterFork_Child` for python 3.7 and above
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
# v01-14
* 2020-09-26 Markus Frank ([PR#717](https://github.com/aidasoft/dd4hep/pull/717))
- Propagate condition names for printouts. Names are enabled by default. The feature can be disabled
to minimize conditions memory footprint. Comment `DD4HEP_CONDITIONS_HAVE_NAME` in `DD4hep/config.h`
- If the debug flag `DD4HEP_CONDITIONS_DEBUG` is set (enabled by the compile definition `DD4HEP_DEBUG`, which in turn is enabled by the cmake flag `DD4HEP_BUILD_DEBUG`, which is turned on in debug builds automatically), then condition objects offer optional storage e.g. to store the object address or an xml-string etc.
- Update and fix some tests, which were assuming names
* 2020-09-25 Marko Petric ([PR#715](https://github.com/aidasoft/dd4hep/pull/715))
- Rename `TruncatedTube` `zHalf` accessor with `dZ` resolves #714
- Add to `Trap` missing `dZ` accessor resolves #713
* 2020-09-23 Andre Sailer ([PR#712](https://github.com/aidasoft/dd4hep/pull/712))
- Cmake: add configuration option DD4HEP_BUILD_DEBUG, if ON or OFF enable or disable the DD4HEP_DEBUG definition
if not set, enable if BuildType is Debug, fixes #708
* 2020-09-23 bcouturi ([PR#709](https://github.com/aidasoft/dd4hep/pull/709))
- Added geoWebDisplay command that uses jsroot to render the Geometry, requires ROOT7 ROOTEve
* 2020-09-23 Andre Sailer ([PR#707](https://github.com/aidasoft/dd4hep/pull/707))
- DDG4.HepEvtReader: fix reading of input particles, fixes #706
- DDG4.HepEvtReader: fix the units, expecting GeV, mm as units of input files.
- DDG4.HepEvtReader: add abort if the file cannot be read, e.g., when the content doesn't match what is expected
* 2020-09-22 Marko Petric ([PR#710](https://github.com/aidasoft/dd4hep/pull/710))
- Fix variable name`SIGNATURE` in `Plugins.h` and `Plugins.inl` that conflicts with `#define` from `utmpx.h` in macOS libc implementation. Resolves #700
- Migrate CI from Travis-CI to GitHub Actions and include macOS and ubuntu18 tests
* 2020-09-17 Marko Petric ([PR#704](https://github.com/aidasoft/dd4hep/pull/704))
- Apply `clang-tidy` `llvm-header-guard` fixer
* 2020-09-16 Andre Sailer ([PR#705](https://github.com/aidasoft/dd4hep/pull/705))
- DDSim: add options to select which sensitive detectors are trackers and calorimeters, defaults unchanged
- DDSim: tweak log output formatting, logging goes now to stdout instead of stderr
- SiD example: remove `track_length_max` and `time_max` from silicon limits (fixes part of #703 )
* 2020-09-07 Markus Frank ([PR#702](https://github.com/aidasoft/dd4hep/pull/702))
- Add `starttheta`, `endtheta`, `endphi` xml accessors.
- Fix sphere shape creator and update shape example.
* 2020-09-04 Markus Frank ([PR#697](https://github.com/aidasoft/dd4hep/pull/697))
- Implement data member accessors for construction parameters in `Shapes.h`. As discussed in the thread cms-sw/cmssw#30931 it was felt that read-only access to the basic construction parameters of a shape would be highly useful.
* 2020-09-03 Marko Petric ([PR#699](https://github.com/aidasoft/dd4hep/pull/699))
- Set search order for python on macOS to search for system/framework python last (change in behavior of cmake 3.14->3.15)
* 2020-07-31 Markus Frank ([PR#692](https://github.com/aidasoft/dd4hep/pull/692))
- Protect XML file handling against non-existing files.
* 2020-07-30 Markus Frank ([PR#691](https://github.com/aidasoft/dd4hep/pull/691))
- Improve matrix helpers: Add extractors for scale and translation as `XYZVector` from `TGeoMatrix`.
- Add example to simulate the MiniTel with DDG4 using a HepMC input file
- Add example to load a sub-detector geometry from gdml.
* 2020-07-27 Markus Frank ([PR#690](https://github.com/aidasoft/dd4hep/pull/690))
1) New example to show the usage of multiple compact input files being processed from the command line.
The example illustrates how to maniplulate the opening and the closing of the geometry using the compact notation.
```
geoDisplay -input file:SiD_multiple_inputs.xml \
-input file:SiD_detectors_1.xml \
-input file:SiD_detectors_2.xml \
-input file:SiD_close.xml \
-print INFO -destroy -volmgr -load```
2) New example to scan the geometry starting from a given position in a certain direction. Command line like for g4MaterialScan.
The output shows then the pathes to the volumes traversed, the shape and the material of these volumes.
`g4GeometryScan --compact=DDDetectors/compact/SiD.xml --position=0,0,0 --direction=0,1,0`
Resulting output:
```
GeometryScan WARN Starting tracking action for track ID=1
+--------------------------------------------------------------------------------------------------------------------------------------------------
| Material scan between: x_0 = ( 0.00, 0.00, 0.00) [cm] and x_1 = ( 0.00,3000.00, 0.00) [cm] TrackID:1:
+--------------------------------------------------------------------------------------------------------------------------------------------------
| \ Path
| Num. \ Thickness Length Endpoint Volume , Shape , Material
| Layer \ [cm] [cm] ( cm, cm, cm)
+--------------------------------------------------------------------------------------------------------------------------------------------------
| 1 2.4500 2.450 ( 0.00, 2.45, 0.00) Path:"/world/BeamPipeVacuum_62" Shape:G4Polycone Mat:Vacuum
| 2 0.0500 2.500 ( 0.00, 2.50, 0.00) Path:"/world/Beampipe_53" Shape:G4Polycone Mat:Beryllium
| 3 0.1802 2.680 ( 0.00, 2.68, 0.00) Path:"/world/av_3_impr_1_layer1_pv_0" Shape:G4Tubs Mat:Air
| 4 0.0115 2.692 ( 0.00, 2.69, 0.00) Path:"/world/av_3_impr_1_layer1_pv_0/VtxBarrelModuleInner_4" Shape:G4Box Mat:Air
| 5 0.0130 2.705 ( 0.00, 2.70, 0.00) Path:"/world/av_3_impr_1_layer1_pv_0/VtxBarrelModuleInner_4/component0_0" Shape:G4Box Mat:Carbon
| 6 0.0256 2.730 ( 0.00, 2.73, 0.00) Path:"/world/av_3_impr_1_layer1_pv_0/VtxBarrelModuleInner_4" Shape:G4Box Mat:Air
| 7 0.0050 2.735 ( 0.00, 2.74, 0.00) Path:"/world/av_3_impr_1_layer1_pv_0/VtxBarrelModuleInner_4/component1_1" Shape:G4Box Mat:Silicon
| 8 0.0050 2.740 ( 0.00, 2.74, 0.00) Path:"/world/av_3_impr_1_layer1_pv_0/VtxBarrelModuleInner_4" Shape:G4Box Mat:Air
| 9 0.1596 2.900 ( 0.00, 2.90, 0.00) Path:"/world/av_3_impr_1_layer1_pv_0" Shape:G4Tubs Mat:Air
| 10 0.7000 3.600 ( 0.00, 3.60, 0.00) Path:"/world" Shape:G4Box Mat:Air
| 11 0.1844 3.784 ( 0.00, 3.78, 0.00) Path:"/world/av_3_impr_1_layer2_pv_1" Shape:G4Tubs Mat:Air
| 12 0.0115 3.796 ( 0.00, 3.80, 0.00) Path:"/world/av_3_impr_1_layer2_pv_1/VtxBarrelModuleOuter_4" Shape:G4Box Mat:Air
....
```
# v01-13-01
* 2020-07-10 Markus Frank ([PR#686](https://github.com/AIDASoft/DD4hep/pull/686))
- Fix bug in `VolumeBuilder` where `VolIDs` were not properly set to physical volumes if the `xml` supported an `id` tag.
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
# v01-13
* 2020-07-02 MarkusFrankATcernch ([PR#684](https://github.com/AIDASoft/DD4hep/pull/684))
- Fix compiler issue for clang 3.9 (resolves #683)
* 2020-07-02 Andre Sailer ([PR#682](https://github.com/AIDASoft/DD4hep/pull/682))
- CMake: add option `DD4HEP_USE_TBB` to require TBB or not
- `Filter` and `SpecParRegistry` classes from CMSSW (see #675)
* 2020-07-01 vvolkl ([PR#679](https://github.com/AIDASoft/DD4hep/pull/679))
- Add CPack Configuration
* 2020-06-30 Markus Frank ([PR#680](https://github.com/AIDASoft/DD4hep/pull/680))
- adopt IOV changes from @pikacic to work on macOS (see #678).
* 2020-06-30 Marco Clemencic ([PR#678](https://github.com/AIDASoft/DD4hep/pull/678))
- Modernization and clean up of `dd4hep::IOV` (`using` instead of `typedef`, `constexpr` instead of `enum`)
- Make `dd4hep::IOV::Key` uniform wrt first and second type
- Use `std::int64_t`instead of `long` for `dd4hep::IOV::Key` elements
* 2020-06-18 lintao ([PR#677](https://github.com/AIDASoft/DD4hep/pull/677))
- Fixed the `CLHEP::mm` to `dd4hep::mm` conversion problem in `DDG4/src/Geant4SensitiveDetector.cpp`
* 2020-06-11 Markus FRANK ([PR#676](https://github.com/AIDASoft/DD4hep/pull/676))
- Fix problem with missing header in DDEve appearing in ROOT head.
* 2020-06-08 Marko Petric ([PR#673](https://github.com/AIDASoft/DD4hep/pull/673))
- Use unique include guard in `BitFieldCoder.h`
- fix ambiguity in test between `BitField64` in LCIO and DD4hep
- Cast to string `coll_nam` in `DDG4.py` before using further, otherwise string concatenation does not work
* 2020-05-29 Andre Sailer ([PR#672](https://github.com/AIDASoft/DD4hep/pull/672))
- Use unique include guards
* 2020-04-24 Frank Gaede ([PR#663](https://github.com/AIDASoft/DD4hep/pull/663))
- fix compilation of `DigiKernel.cpp` with TBB
* 2020-04-09 Andre Sailer ([PR#660](https://github.com/AIDASoft/DD4hep/pull/660))
- DDG4: fix behaviour of ParticleRejectFilter and ParticleSelectFilter, They now properly select or reject the given particle type, instead of the opposite. Fixes #657
* 2020-04-09 Markus FRANK ([PR#659](https://github.com/AIDASoft/DD4hep/pull/659))
- Allow condition objects, which do not provide a default constructor. If such objects should be managed, these cannot be saved with ROOT - these objects may only live in memory. ROOT requires a default constructor.
* 2020-04-09 Marko Petric ([PR#654](https://github.com/AIDASoft/DD4hep/pull/654))
- Rewrite rpath usage on macOS and make it relocatable with help of `@rpath`
- itroduce new option `DD4HEP_SET_RPATH` default `ON`
- adopt `thisdd4hep.sh` and other `.sh` scripts to work with zsh (new default for macOS 10.15)
- Drop `MakeGaudiMap.cmake` and call directly `listcomponents`
- fix env settings for macOS
- Drop deprecated `-std=` flag in dictionary creation
* 2020-03-23 Andre Sailer ([PR#652](https://github.com/AIDASoft/DD4hep/pull/652))
- Documentation: fix broken mathml, fixes #651
* 2020-03-20 Andre Sailer ([PR#649](https://github.com/AIDASoft/DD4hep/pull/649))
- CMake: add `DD4HEP_HIGH_MEM_POOL_DEPTH` option. Allow setting of parallel builds of DDParser objects with the ninja generator. Defaults to "memory / 2000 cores (rounded down)"
* 2020-03-20 Andre Sailer ([PR#632](https://github.com/AIDASoft/DD4hep/pull/632))
- CMake: Adapt to ROOT 6.22 python library ROOTTPython
* 2020-03-18 Andre Sailer ([PR#636](https://github.com/AIDASoft/DD4hep/pull/636))
- DDG4: add reader for HepMC3 files
- DDG4: add generic EventParameters class to pass event level parameters from different input sources to different output sources, supercedes the LCIOEventParameters class
* 2020-03-11 Markus Frank ([PR#647](https://github.com/AIDASoft/DD4hep/pull/647))
- The CAD volume plugin allows to embed valumes and shapes originating from Computer Aided Design drawings using multiple formats as they are supported by the open asset importer library (http://assimp.org ). The plugin can be used whenever the `xml` fragment matches the following pattern:
```xml
<XXX ref="file-name" material="material-name">
<material name="material-name"/> <!-- alternative: child or attr -->
Envelope: Use special envelop shape (default: assembly)
The envelope tag must match the expected pattern of the utility
dd4hep::xml::createStdVolume(Detector& desc, xml::Element e)
<envelope name="volume-name" material="material-name">
<shape name="shape-name" type="shape-type" args....>
</shape>
</envelope>
Option 1: No additional children. use default material
and place all children in the origin of the envelope
Option 2: Volume with default material
<volume name="vol-name"/>
Option 3: Volume with non-default material
<volume name="vol-name" material="material-name"/>
Option 4: Volume with optional placement. No position = (0,0,0), No rotation = (0,0,0)
<volume name="vol-name" material="material-name"/>
<position x="0" y="0" z="5*cm"/>
<rotation x="0" y="0" z="0.5*pi*rad"/>
</volume>
For sensitive volumes: add physical volume IDs:
<volume name="vol-name" material="material-name"/>
<physvolid name="layer" value="1"/>
<physvolid name="slice" value="10"/>
</volume>
</XXX>
```
# v01-12-01
* 2020-03-03 Marko Petric ([PR#641](https://github.com/AIDASoft/DD4hep/pull/641))
- DDSim: make the output of `ddsim --dumpSteeringFile` visible again
- DDSim: fix exception in ConfigHelper.printOptions, called by `--dumpParameters` option
- DDSim: fix parsing of vector command line parameters, gun.position, gun.direction etc.
- DDSim: better testing of command line parameters
* 2020-03-03 vvolkl ([PR#640](https://github.com/AIDASoft/DD4hep/pull/640))
- DDSim: add option to use edm4hep output
# v01-12
* 2020-02-26 Andre Sailer ([PR#637](https://github.com/aidasoft/dd4hep/pull/637))
- LcioEventReader: fix setting of color flow, second coordinate was never set
* 2020-02-25 Markus Frank ([PR#633](https://github.com/aidasoft/dd4hep/pull/633))
- Added basic implementation for CAD interface to load shapes from CAD files. There is an open issue how to best embed the volume/shape loading from CAD files into the existing infrastructure. See for [presentation](https://indico.cern.ch/event/885083/contributions/3758180/attachments/1990793/3318984/2020-02-20-DD4hep-Tessellated-Shapes.pdf). This feature is only available if build against ROOT 6.22 or higher.
- DDCAD used the [assimp](https://github.com/assimp/assimp) librray to interprete the CAD files.
- Simplify grammar instantiation.
- For grammars to be parsed with `boost::spirit` simply include
`#include "DD4hep/detail/Grammar_parsed.h"`
- For Grammars which should **not be parsed** with `boost::spirit` include
`#include "DD4hep/detail/Grammar_unparsed.h"`
- To instantiate the code and to register the instantiation call:
`template <> dd4hep::Grammar<my-class>;`
- If the Grammar is supposed to be registered call instead/in addition:
`static auto s_registry = GrammarRegistry::pre_note<my-class>();`
- All other macros are gone.
Loading
Loading full blame...