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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
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
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
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
# v01-11
* 2019-10-23 MarkusFrankATcernch ([PR#587](https://github.com/AidaSoft/DD4hep/pull/587))
- Have separate compilation unit for shape utilities like `set_dimension(...)`, `dimension()`, `isA()`, `instanceOf()`...
- Improvements to basic shape test
* 2019-10-23 Andre Sailer ([PR#579](https://github.com/AidaSoft/DD4hep/pull/579))
- CMake: Add possibility to build only shared libraries, fixes #493:
- Usage `cmake ... -D BUILD_SHARED_LIBS=OFF ...`
* 2019-10-23 Andre Sailer ([PR#575](https://github.com/AidaSoft/DD4hep/pull/575))
* CMake: Add `DD4HEP_USE_EXISTING_DD4HEP` option which together with `DD4HEP_BUILD_PACKAGES` can be used to rebuild, for example only DDG4.
* This creates a new Package called "DD4hepSelected" which can then be used alongside the full DD4hep Package in a third project.
* 2019-10-22 Marko Petric ([PR#586](https://github.com/AidaSoft/DD4hep/pull/586))
- Remove deprecated rootcling flags (`-cint`, `-c`, `-p`, `-std=c++`) from dictionary creation script
* 2019-10-22 Marko Petric ([PR#585](https://github.com/AidaSoft/DD4hep/pull/585))
- Fix bug that the c++ filesystem check is called from `${DD4hep_ROOT}`
- Install `DD4hepConfig.cmake` only in `__prefix__/cmake` to avoid path detection confusion
- Enable choosing examples in the `examples/CMakeLists.cmake` via cmake flag `-DDD4HEP_BUILD_EXAMPLES=OpticalSurfaces` (recommended method)
- Make each example folder to compile standalone (not recommended method)
- Update cmake of Segmentation example to more current state and fix resulting errors
- include segmentation example as test
- Resolves #582 and resolves #583
* 2019-10-21 MarkusFrankATcernch ([PR#584](https://github.com/AidaSoft/DD4hep/pull/584))
- Add function `bool isInstance(const Handle<TGeoShape>& solid)`
- compares types of shapes and behaves like `dynamic_cast`, similar to python's `isinstance(obj,type)`
- remove deprecated function `instanceOf` in favour of `isInstance`. Same behavior.
- Add function `bool isA(const Handle<TGeoShape>& solid)`
- compares types of shapes and requires exact match, no polymorphism allowed.
- Add Geant4 conversion for shape `TGeoCtub` -> `G4CutTube`
* 2019-10-14 Marko Petric ([PR#572](https://github.com/AidaSoft/DD4hep/pull/572))
- Install python files in `lib/pythonX.Y/site-packages` resolves #562
- adapt `thisdd4hep.sh` scripts
- Add missing RPATH to examples (basically bug fix for mac)
- Add DDG4 tools to bin to make them more accessible to users:
- `g4MaterialScan`, `checkGeometry`, `checkOverlaps`
* 2019-10-03 MarkusFrankATcernch ([PR#577](https://github.com/AidaSoft/DD4hep/pull/577))
- Inhibit not allowed use of `DetectorImp.h`
* 2019-10-03 Andre Sailer ([PR#574](https://github.com/AidaSoft/DD4hep/pull/574))
- CMake: When needing `boost::filesystem` (c++14, gcc < 8) require at least Boost 1.56, see #567
* 2019-10-03 Markus Frank ([PR#573](https://github.com/AidaSoft/DD4hep/pull/573))
- Fix memory leak introduced when generalizing placements to include left-handed coordinate systems.
* 2019-10-03 Markus Frank ([PR#571](https://github.com/AidaSoft/DD4hep/pull/571))
- Add example to the volume reflection mechanism
- Fix bug in volume reflection
* 2019-10-02 Markus Frank ([PR#569](https://github.com/AidaSoft/DD4hep/pull/569))
- First implementation to support reflection with left-handed volumes/solids
- Changes for volumes and solids.
- Conversion handling of `TGeoScaledShape` in DDG4
* 2019-09-30 Andre Sailer ([PR#566](https://github.com/AidaSoft/DD4hep/pull/566))
- PythonBindings: fix issue when source files were not available, fixes #565
- CMake: drop DDCores dependency on DD4hepGaudiPluginMgr
- CMake: DD4hepConfig: use find_dependency instead of find_package
* 2019-09-24 Marko Petric ([PR#564](https://github.com/AidaSoft/DD4hep/pull/564))
- Added test for Python3 compliance of code
- Added test to require flake8 python code formatting
* 2019-09-13 Marko Petric ([PR#540](https://github.com/AidaSoft/DD4hep/pull/540))
- Make python code compatible to python 2 and 3
- add `absolute_import` and `unicode_literals` to all files
- fix API calls and cast `unicode` to `string` when needed
- replace print statement with logging
- remove old octal literal
- use future division
- use `six`:
- replace `dict.iteritems` with `six.iteritems`
- replace `xrange` with `range` from `six.move`
- replace `basestring` with `six.string_types`
- replace `raw_input` with `input` from `six.moves`
- added a copy of six.py named ddsix.py to DDCore
- Replace deprecated `execfile` with call to `open`, `compile` and `exec`
- Remove usage of `apply`
- use `io.open` instead of standard `open`
- convert `except a,b` to `except a as b`
- change `dict.has_key` to `key in dict`
- Require DD4hep Python3 CI tests to pass
- Remove obsolete `lcdd.py`
- Remove deprecated `SystemOfUnits.py` and replace everywhere with `g4units.py`
- Flake8 all files
* 2019-09-02 Andre Sailer ([PR#561](https://github.com/AidaSoft/DD4hep/pull/561))
- CMake: add option `DD4HEP_BUILD_PACKAGES` so that only individual packages can be compiled. If an incorrect selection is given cmake should fail due to missing alias libraries. The option requires a whitespace or semicolon separated list.
- CMake add option `DD4HEP_BUILD_EXAMPLES` to enable compilation of examples together with the main DD4hep packages. Default OFF
- CMake: add `DD4hep::` aliases for all libraries and some executables
* 2019-08-26 Andre Sailer ([PR#559](https://github.com/AidaSoft/DD4hep/pull/559))
- DD4hepConfig: make all DD4HEP_USE variables behave as booleans
* 2019-08-22 Markus Frank ([PR#554](https://github.com/AidaSoft/DD4hep/pull/554))
- Fix property table translation to Geant4 according to suggestions from Dong Liu
(see issue https://github.com/AIDASoft/DD4hep/issues/440 )
* 2019-08-22 Andre Sailer ([PR#552](https://github.com/AidaSoft/DD4hep/pull/552))
* DD4hepConfig: `DD4hepConfig.CMake` now exports `DD4hep::DDCore` `DD4hep::<Component>` targets to be consumed by users of the DD4hep package, the CMake variables `DD4hep_LIBRARIES` etc. are still being filled for backward compatibility
* DD4hep CMake: Only the `dd4hep_add_plugin` and `dd4hep_add_dictionary` CMake functions are to create targets still exist, `dd4hep_add_package`/`library`/`executable` were removed and instead the cmake `default add_library`/`executable` have to be used.
* PluginManager: only link against boost filesystem if the compiler and standard library do not support the filesystem library
* DD4hep Requirements: Now require cmake version 3.12
* DD4hep Requirements: Now require c++ standard 14
* 2019-08-21 Markus Frank ([PR#553](https://github.com/AidaSoft/DD4hep/pull/553))
- Fix unit conversion for optical surface properties. The units of the property tables were not converted from TGeo to Geant4. See dicussion in issue https://github.com/AIDASoft/DD4hep/issues/440
- If an external world volume is supplied, the material `Air` is deduced from this solid (only used by CMS).
* 2019-08-15 Frank Gaede ([PR#550](https://github.com/AidaSoft/DD4hep/pull/550))
- make compatible with MacOS (10.14.6)
- address latest developments w/ new Gaudi Plugin Manager
* 2019-08-14 Markus Frank ([PR#551](https://github.com/AidaSoft/DD4hep/pull/551))
- Moved `setDimensions` call out of the individual dd4hep shapes into the base Solid.
- Add `Solid::dimensions()`, `Solid::setDimension()` implementation for `PseudoTrap` and `TruncatedTube`. The solution is not optimal, because a analytical solution tends to be ambiguous due to solutions of polynomials of degree 2 and the initial parameters had to be stored as a string.
- Upgraded shape tests to also check the shapes (using mesh vertices) after a re-dimension using the same parameters.
- Geant4FieldTrackingSetup: Any failure in the creation of the `G4EquationOfMotion` or the `G4MagIntegratorStepper` is now FATAL and causes an exception.
* 2019-08-12 Markus Frank ([PR#549](https://github.com/AidaSoft/DD4hep/pull/549))
- Adopted new Gaudi plugin manager V2. V1 can be enabled using compile switch in `DD4hep/config.h`. Removed the traces from the ROOT5 Reflex based plugin service. The new plugin service depends on `Boost::file_system` and `Boost::system`.
- Improve GDML saving from ROOT. (requires ROOT >= 6.20)
- Fix ROOT persistency for the volume manager.
- Fix Geant4FieldTrackingSetup: Issue warning if the `G4MagIntegratorStepper` cannot be created.
- Examples: based the CLICSiD example on the XML sources of DDDetectors. This ensures XML sources match C++ sources.
* 2019-08-12 Andre Sailer ([PR#548](https://github.com/AidaSoft/DD4hep/pull/548))
- Shapes: fix conversion of `startTheta` for Sphere::setDimensions
- Shapes::get_shape_dimension: add return value conversion for angles to internal unit (radians)
* 2019-08-12 MarkusFrankATcernch ([PR#547](https://github.com/AidaSoft/DD4hep/pull/547))
- make compatible w/ macos (c++14)
- replace `std::make_any` w/ make_any (defined in Any.h)
- use `std::lock_guard<std::mutex>`
* 2019-08-07 MarkusFrankATcernch ([PR#545](https://github.com/AidaSoft/DD4hep/pull/545))
- Fix bug in Polyhedra shape (See #544).
- Update optical surface example (resolves #440) .
* 2019-07-16 Markus Frank ([PR#539](https://github.com/AidaSoft/DD4hep/pull/539))
- Remove clang warnings.
* 2019-07-16 MarkusFrankATcernch ([PR#538](https://github.com/AidaSoft/DD4hep/pull/538))
- Fix coverity errors
- Fix Trap shape conversion to Geant4. The theta/phi angle was not converted from degree to radians (Resolves #536).
* 2019-07-15 Marko Petric ([PR#537](https://github.com/AidaSoft/DD4hep/pull/537))
- Add a Python 3 pipeline to the CI (currently set to `allow_failure`)
* 2019-07-13 Marko Petric ([PR#535](https://github.com/AidaSoft/DD4hep/pull/535))
- Update CI to be based on LCG 96 (ROOT 6.18, Geant 10.5, C++17)
- Remove `FindXercesC.cmake` since it is in CMake
* 2019-07-10 Markus Frank ([PR#533](https://github.com/AidaSoft/DD4hep/pull/533))
- Optimize STL containers: replace insert/push with emplace. 2nd. episode.
* 2019-07-10 Marko Petric ([PR#532](https://github.com/AidaSoft/DD4hep/pull/532))
- Remove `dd_sim` (resolves #435)
* 2019-07-10 Marko Petric ([PR#531](https://github.com/AidaSoft/DD4hep/pull/531))
- Remove shadow warnings related to code interfacing only ROOT 6.18
- Add `DBoost_NO_BOOST_CMAKE=ON` to examples cmake call as it is necessary now
- Set CMP0074 policy to NEW if can be set
* 2019-07-10 Markus Frank ([PR#530](https://github.com/AidaSoft/DD4hep/pull/530))
- Optimize STL containers: replace insert/push with emplace
* 2019-07-09 Markus Frank ([PR#528](https://github.com/AidaSoft/DD4hep/pull/528))
* Allow for various material scan types from the root interactove prompt
Examples: from DDDetectors/compact/SiD.xml
$> materialScan file:checkout/DDDetectors/compact/SiD.xml -interactive
1) Simple scan:
root [0] gMaterialScan->print(5,5,0,5,5,400)
2) Scan a given subdetector:
root [0] de=gDD4hepUI->instance()->detector("LumiCal");
root [1] gMaterialScan->setDetector(de);
root [2] gMaterialScan->print(5,5,0,5,5,400)
3) Scan by material:
root [0] gMaterialScan->setMaterial("Silicon");
root [1] gMaterialScan->print(5,5,0,5,5,400)
4) Scan by region:
root [0] gMaterialScan->setRegion("SiTrackerBarrelRegion");
root [1] gMaterialScan->print(0,0,0,100,100,0)
* Added copyright notices to the DDRec files.
* 2019-07-09 Marko Petric ([PR#527](https://github.com/AidaSoft/DD4hep/pull/527))
- Update CI to macOS Mojave 10.14
- Make `PluginService.cpp` C++17 compliant (addresses partially #525)
- replace `ptr_fun` with `lambda`
- Remove deprecated code that uses `auto_prt`
- Remove deprecated `set_unexpected` from `DetectorImp.cpp`
- Remove code associated to `DD4HEP_DD4HEP_PTR_AUTO`
* 2019-07-08 Markus Frank ([PR#524](https://github.com/AidaSoft/DD4hep/pull/524))
- Get the new package formally into the same shape as the other packages together with an example section.
- Add small example to test the basic development framework
* 2019-07-04 Markus Frank ([PR#520](https://github.com/AidaSoft/DD4hep/pull/520))
- From ROOT 6.20 onwards dd4hep shall use the Geant4 unit system (mm, nsec, MeV) instead of the TGeo units (cm, sec, keV). This commit prepares for the necessary changes.
- A new package was created, which shall host the dd4hep digitization components.
A small tbb based multi threaded framework was put in place. Now the real work can start.
- The material scanner has now a switch to run in interactive mode from the ROOT prompt.
To invoke: materialScan compact.xml x0 y0 z0 x1 y1 z1 -interactive
If the interactive switch is missing, the old behavior is preserved.
* 2019-06-26 Markus Frank ([PR#517](https://github.com/AidaSoft/DD4hep/pull/517))
- Material properties use now default dd4hep units
- Translated and updated surface example from geant4 to dd4hep
- Added shape identification using `instanceOf operator (function)`
- Improved handling of xml files if improperly terminated
* 2019-06-26 MarkusFrankATcernch ([PR#516](https://github.com/AidaSoft/DD4hep/pull/516))
- CMakeLists: Changed the order in which include directories are listed when compiling, move DD4hep source paths to the front. This fixes a problem if older DD4hep installations are inadvertently in one of the include paths passed to compilers or rootcling (e.g., in LCG Views), fixes #515
* 2019-06-06 Andre Sailer ([PR#514](https://github.com/AidaSoft/DD4hep/pull/514))
- Gean4ExtraParticles: no longer add decay process to extra particles, this is done by Geant4 resolves #513
- ddsim: disable physics.decays by default. This should only be enabled if completely new physics lists are created resolves #513
* 2019-05-09 Markus Frank ([PR#510](https://github.com/AidaSoft/DD4hep/pull/510))
- Add debug printout of MEE in Geant4 material conversion
* 2019-04-29 MarkusFrankATcernch ([PR#508](https://github.com/AidaSoft/DD4hep/pull/508))
* Geant4GDMLWriteAction:
* Add properties to Geant4GDMLWriteAction to steer writing of regions, cuts and sensitive detectors. See github issue #507
* Property: Export region information to the GDML: ExportRegions, default: True
* Property: Export energy cut information to the GDML: ExportEnergyCuts, default: True
* Property: Export sensitive detector information to the GDML: ExportSensitiveDetectors, default: True
* **Note: The Geant4 physics list must be initialized BEFORE invoking the writer with options. Otherwise the particle definitions are missing! If you ONLY want to dump the geometry to GDML you must call**
```
/run/beamOn 0
```
before writing the GDML file!
You also need to setup a minimal generation action like:
```py
sid.geant4.setupGun('Gun','pi-',10*GeV,Standalone=True)
```
* 2019-04-29 Frank Gaede ([PR#506](https://github.com/AidaSoft/DD4hep/pull/506))
- add utility materialBudget.cpp
- create plots w/ integrated radiation and interaction lengths
- bug fix in materialScan.cpp
- print correct endpoint
* 2019-04-17 Marko Petric ([PR#503](https://github.com/AidaSoft/DD4hep/pull/503))
- DDG4: DDSim add option Physics.zeroTimePDG to configure ignoring particles of given PDG when their properTime is ZERO, e.g. charged leptons undergoing FSR, fixes #390
- DDG4: DDSim: fix parsing of rejectPDGs values from the command line
* 2019-04-12 Marko Petric ([PR#502](https://github.com/AidaSoft/DD4hep/pull/502))
- DDSim: Add Higgs PDG code 25 to rejected codes for reading events
* 2019-04-10 MarkusFrankATcernch ([PR#501](https://github.com/AidaSoft/DD4hep/pull/501))
- Add access to all Geant4Action derivatives to the Geant4 top level physical volume (world).
- Add Geant4 GDML writer action accessible and configurable from the Geant4 prompt
* 2019-04-09 Mircho Rodozov ([PR#496](https://github.com/AidaSoft/DD4hep/pull/496))
- Added powerpc macros check to include header `cxxabi.h`
* 2019-04-01 Markus Frank ([PR#494](https://github.com/AidaSoft/DD4hep/pull/494))
- Use shared_ptr instead of home made ref counting for ConditionUpdateCalls
- Implement construction parameter access for solids. This one is a bit tricky: Some shapes (ShapeAssembly, Boolean shapes) had no such parameters. Added them as the sequence of the basic shape parameters + the corresponding matrices.
- Add move constructors to handles
- Improve const-ness of detector object in DDG4
* 2019-03-11 Markus Frank ([PR#491](https://github.com/AidaSoft/DD4hep/pull/491))
- Implemented basic handles to support surface objects
- Implemented import of surface optical objects in compact to create TGeo surface objects and tabulated properties.
- Implemented the translation from TGeo to Geant4
- Added physics components for DDG4 handling Cerekov, Scintillation and generic optical photon physics
- Added examples
Please Note:
1) This is only enabled for a ROOT version > 6.17 (which is supposed to come)
2) There are still changes in ROOT in the pipeline. The code shall have to be adapted accordingly once these changes are activated.
* 2019-03-06 ebrianne ([PR#489](https://github.com/AidaSoft/DD4hep/pull/489))
- Added Initialization of G4EmSaturation to initialize birks coefficients - for g4 version > 10.03
* 2019-02-19 Andre Sailer ([PR#486](https://github.com/AidaSoft/DD4hep/pull/486))
- DDRec: Surface: add accessor to DetElement member
- DDRec: DetectorData: add Extension holding a map of String to Doubles
* 2019-02-14 Paul Gessinger ([PR#485](https://github.com/AidaSoft/DD4hep/pull/485))
* In `DD4hepConfig.cmake`, figure out if build has compatible standard set and print error if not
* 2019-02-13 Frank Gaede ([PR#483](https://github.com/AidaSoft/DD4hep/pull/483))
- fix drawing of surfaces for z-disks and cylinders (resolves #482)
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
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
# v01-10
* 2019-01-31 Markus Frank ([PR#480](https://github.com/aidasoft/dd4hep/pull/480))
- Fix bug in `geoDisplay` to allow passing the volume display depth as an argument
- Added a static creator to the Detector class to create non-traced instances: `std::unique_ptr<Detector> Detector::make_unique(const std::string& name);` It is the users responsibility to release the allocated resources and to avoid clashed with existing `TGeoManager` instances.
- Allow direct access to the solid instance of the DetElements's placement.
* 2019-01-15 Markus Frank ([PR#478](https://github.com/aidasoft/dd4hep/pull/478))
- Fix bug in `geoDisplay` see #477
* 2019-01-10 Markus Frank ([PR#476](https://github.com/aidasoft/dd4hep/pull/476))
- Fix bug in ConditionsUserPool whan scanning DetElement conditions
- Improve conditions handling: Allow to bind sub-class entities of ConditionObject to thew opaque data block.
* 2018-12-14 Markus Frank ([PR#475](https://github.com/aidasoft/dd4hep/pull/475))
- Add named shape constructors (see #469)
* 2018-12-13 Markus Frank ([PR#474](https://github.com/aidasoft/dd4hep/pull/474))
- Fix possible access violation
* 2018-12-13 MarkusFrankATcernch ([PR#473](https://github.com/aidasoft/dd4hep/pull/473))
- Improve handling of condition dependencies ( main work item)
- Improve logic flow in the DDCond/ConditionDependencyHandler
- Improve the functionality of the conditions resolver accessible from the update context. Allow for the creation (and registration) of multiple conditions in one single callback.
- Add a shape check for eight-point solids.
* 2018-12-07 Frank Gaede ([PR#470](https://github.com/aidasoft/dd4hep/pull/470))
- add `#include <memory>` to `run_plugin.h` (needed for `std::unique_ptr` and gcc 4.9)
* 2018-12-06 Markus Frank ([PR#468](https://github.com/aidasoft/dd4hep/pull/468))
- To fix issue #466 we had to go back to the original implementation which was actually correct (see https://github.com/AIDASoft/DD4hep/commit/36d4b01e0688f690ac2e506a62e00627bb6b798c#diff-7219d47bc4ab7516e0ca6c4f35f2602f).
- Added an example to show how to perform scans of the volume hierarchy with user defined callback functors. See for details `examples/ClientTests/src/PlacedVolumeScannerTest.cpp`.
- Added conversion between `TGeoArb8` and `G4GenericTrap`, fixes #465
* 2018-12-05 Markus Frank ([PR#467](https://github.com/aidasoft/dd4hep/pull/467))
- Harmonize argument names in `Shapes.h` with their actual functionality. For many shapes in `DD4hep/Shapes.h` the argument names were misleading: very often deltaPhi was mentioned, whereas the code actually used instead of (phi, deltaphi) the input arguments to the ROOT constructors (startPhi,endPhi) or (phi1, phi2). Wherever ROOT uses (startPhi,endPhi) the argument names were changed accordingly. Please note a bug was found in the legacy constructor:
```cpp
/// Legacy: Constructor to create a new identifiable tube object with attribute initialization
Tube(const std::string& nam, double rmin, double rmax, double dz, double startPhi, double endPhi)
```
Here opposite to all other constructors delta_phi was used as such - in contradiction to other constructors of the same class. This was rectified.
* 2018-11-30 Andre Sailer ([PR#462](https://github.com/aidasoft/dd4hep/pull/462))
- Introduce compile flag to minimize conditions footprint
* 2018-11-27 Markus Frank ([PR#461](https://github.com/aidasoft/dd4hep/pull/461))
- Add shape constructor for regular trapezoids (TGeoTrd1) ( see #460). Trd2 cannot be divided the same way as Trd1 shapes. Hence the addition became necessary. Due to the imprecise name of Trapezoid the names Trd1 and Trd2 (aka old Trapezoid) are favored. The usage of Trapezoid is supported for backwards compatibility using a typedef.
* 2018-11-22 Markus Frank ([PR#459](https://github.com/aidasoft/dd4hep/pull/459))
- Fix bug in DDCodex geometry, add debugging to VolumeBuilder
* 2018-11-14 Markus Frank ([PR#458](https://github.com/aidasoft/dd4hep/pull/458))
- Improve ROOT persistency: flag user extensions as persistent only while saving/loading
- Need to rename DDEve library: nameclash with ddeve executable on Apple: cmake fails to build ddeve as exe and DDEve as library. libDDEve.so is now called libDDEvePlugins.so.
* 2018-11-13 Markus Frank ([PR#457](https://github.com/aidasoft/dd4hep/pull/457))
## Provide support for Volume divisions.
Since DD4hep requires Volumes (aka `TGeoVolume`) and PlacedVolumes (aka `TGeoNode`) to be enhanced with the user extension mechanism, therefore shape divisions **must** be done using the division mechanism of the DD4hep shape or the volume wrapper. Otherwise the enhancements are not added and you will get an exception when DD4hep is closing the geometry or whenever you do something with the volume, which is served by the user extension. The same argument holds when a division is made from a `Volume`. Unfortunately there is no reasonable way to intercept this call to the `TGeo` objects - except to the sub-class each of them, which is not really acceptable either.
Hence: **If you use DD4hep: Never call the raw TGeo routines.**
For any further documentation please see the following ROOT documentation on [TGeo](http://root.cern.ch/root/html/TGeoVolume.html)
For an example see `examples/ClientTests/src/VolumeDivisionTest.cpp`
and `examples/ClientTests/compact/VolumeDivisionTest.xml`
To execute:
```
geoDisplay -input file:<path>/examples/ClientTests/compact/VolumeDivisionTest.xml
```
* 2018-11-13 Hadrien Grasland ([PR#438](https://github.com/aidasoft/dd4hep/pull/438))
- Make FindPackage(DD4hep) work even if thisdd4hep.sh was not sourced
* 2018-11-09 Frank Gaede ([PR#456](https://github.com/aidasoft/dd4hep/pull/456))
- add `#include <memory>` in `VolumeAssembly_geo.cpp` gcc 4.9 compatibility
* 2018-11-07 Markus Frank ([PR#455](https://github.com/aidasoft/dd4hep/pull/455))
- Improve VolumeBuilder pattern matcher
- Allow XML based volume creation based on factories.
* 2018-11-02 Markus Frank ([PR#454](https://github.com/aidasoft/dd4hep/pull/454))
- Improve generic Volume assembly and XML volume builder
* 2018-11-01 Markus Frank ([PR#452](https://github.com/aidasoft/dd4hep/pull/452))
- Fixed the DetElement cloning mechanism it to properly replicate DetElement trees.
- Tested with one LHCb upgrade detector.
- Added numeric epsilon to the default math dictionary of the expression evaluator:
```cpp
int:epsilon --> std::numeric_limits<int>::epsilon()
long:epsilon --> std::numeric_limits<long>::epsilon()
float:epsilon --> std::numeric_limits<float>::epsilon()
double:epsilon --> std::numeric_limits<double>::epsilon()
```
* 2018-10-30 Markus Frank ([PR#451](https://github.com/aidasoft/dd4hep/pull/451))
- Add copyright notices
- Make ddeve a program not only a ROOT script
* 2018-10-30 Markus Frank ([PR#450](https://github.com/aidasoft/dd4hep/pull/450))
- The DDUpgrade example was removed from the main repository. Since it is only of interest for LHCb, it moved to a separate repository at CERN/gitlab.
- Issue #449 should be fixed now.
- The XML volume builder utility was improved.
* 2018-10-18 Markus Frank ([PR#447](https://github.com/aidasoft/dd4hep/pull/447))
- Fix plugin manager cmake file by removing explicit dependency on c++ standard.
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
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
# v01-09
* 2018-10-15 Markus Frank ([PR#442](https://github.com/aidasoft/DD4hep/pull/442))
- DDCMS: Update to support namespaces
- DDUpgrade test example for the LHCb upgrade
- Fix nested detectors (in fact worked only for first level parents)
- Add VolumeBuilder XML utility to work on XML-tree patterns
* 2018-09-12 Hadrien Grasland ([PR#437](https://github.com/aidasoft/DD4hep/pull/437))
- Remove if string equals ON/OFF in cmake IF statements and check default CMake truth values
* 2018-08-20 Oleksandr Viazlo ([PR#434](https://github.com/aidasoft/DD4hep/pull/434))
- DD4hep_Mask_o1_v01_geo
- allow rotation around x-axis (instead of y)
- phi1 and phi2 cone angles configurable from the xml-file
* 2018-08-10 Markus Frank ([PR#433](https://github.com/aidasoft/DD4hep/pull/433))
- Fix DDCMS example to use true namespace names rather than using "_"
This should resolve issue https://github.com/AIDASoft/DD4hep/issues/421
* 2018-08-09 Markus Frank ([PR#432](https://github.com/aidasoft/DD4hep/pull/432))
- Make the expression evaluator understand variable names with namespaces
- Variable names containing a `:` or `::` are now accepted by the expression evaluator. This is first step towars resolving #421
- It has now to be seen what has to be done further. The DCMS example was not yet updated to use this feature.
- Add new example in `examples/ClientTests` to test this functionality.
* 2018-08-09 Andre Sailer ([PR#429](https://github.com/aidasoft/DD4hep/pull/429))
- DDG4: add possibility to simulate all events in a file by passing NumberOfEvents < 0. Fixes #237
* The de-facto limit is ~2 billion, which should be fine for input files.
* 2018-08-08 Markus Frank ([PR#430](https://github.com/aidasoft/DD4hep/pull/430))
- Fix HEPMC reader for unknown generator status codes
- Update DDCodex example, feature imports from plain ROOT file
- Allow debugging Geant4VolumeManager
* 2018-08-07 Mircho Rodozov ([PR#428](https://github.com/aidasoft/DD4hep/pull/428))
- Adapt to root interfaces changes for `TGeoMatrix::Inverse` (https://github.com/root-project/root/pull/2365), fixes #426
* 2018-08-06 Andre Sailer ([PR#424](https://github.com/aidasoft/DD4hep/pull/424))
- CMake: Ensure proper tls flag (global-dynamic) for Geant4 build, added option DD4HEP_IGNORE_GEANT4_TLS to override the check. Closes #419
* 2018-07-31 Andre Sailer ([PR#420](https://github.com/aidasoft/DD4hep/pull/420))
- DDG4: Import the ddsim python program from https://github.com/iLCSoft/lcgeo
For example:
- `ddsim --help`
- `ddsim --dumpSteeringFile > mySteer.py`
- `ddsim --steeringFile=mySteer.py --compactFile myDetector.xml`
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
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
# v01-08
* 2018-07-02 Markus Frank ([PR#418](https://github.com/aidasoft/dd4hep/pull/418))
- Add DDCodexB in standalone mode with simulation script and basic skeleton for DDEve
* 2018-06-28 Markus Frank ([PR#417](https://github.com/aidasoft/dd4hep/pull/417))
- Steer debug printouts in CondDB2DDDB and DDDB2Objects by parsing xml files.
* 2018-06-26 Markus Frank ([PR#416](https://github.com/aidasoft/dd4hep/pull/416))
- Separate the hit class and add dictionary. No base class - entirely independent.
- Allow to save the hit class to ROOT (but without MC truth)
See MyTrackerHit.h for details.
* 2018-06-26 Markus Frank ([PR#415](https://github.com/aidasoft/dd4hep/pull/415))
- Add small example how to specialize a new sensitive action and attach it to a detector in DDG4.
* 2018-06-26 Frank Gaede ([PR#414](https://github.com/aidasoft/dd4hep/pull/414))
- bug fix in Geant4EventReaderGuineaPig
- fix ignoring input lines with 'nan'
* 2018-06-26 Shaojun Lu ([PR#412](https://github.com/aidasoft/dd4hep/pull/412))
- Added one more if statement: If the track went into new Volume,
- then extracted the hit in previous Volume,
- and start a new hit in this current Volume,
- in this current process, also allow the same following treatments for the new hit.
* 2018-06-21 Markus Frank ([PR#409](https://github.com/aidasoft/dd4hep/pull/409))
- Support out-of-source builds of DD4hep examples.
Comes with an expense: A new environment DD4hepExamplesINSTALL.
has to be defined to support internal file accesses and loads.
The builds were also checked with read-only installation directories.
Solves issue https://github.com/AIDASoft/DD4hep/issues/382
- Smallish improvement to the ConditionsManager.
* 2018-06-21 Andre Sailer ([PR#408](https://github.com/aidasoft/dd4hep/pull/408))
- Cmake: fix for configuring with Geant4 with internal CLHEP, fixes #406
- Cmake: fix for configuring with BUILD_TESTING=OFF, fixes #407
* 2018-06-07 Markus Frank ([PR#404](https://github.com/aidasoft/dd4hep/pull/404))
- Fix basic shape tests for PseudoTrap
* 2018-06-07 Markus Frank ([PR#403](https://github.com/aidasoft/dd4hep/pull/403))
- patch for truncated tubes shapes.
* 2018-06-04 Markus Frank ([PR#402](https://github.com/aidasoft/dd4hep/pull/402))
- Fix truncated tube shape
* 2018-06-04 Markus Frank ([PR#400](https://github.com/aidasoft/dd4hep/pull/400))
- Allow for world volumes other than boxes. See `examples/ClientTests/compact/WorldVolume.xml` how to set it up. The effective thing is that the top level volume must be set to the TGeoManager before `Detector::init()`. If a top level volume is set, it is implicitly assumed to be the world volume. Otherwise the already existing mechanism (box volume) is activated.
- Add new basic shape tests.
* 2018-06-01 Markus Frank ([PR#399](https://github.com/aidasoft/dd4hep/pull/399))
- As discussed in issue #398 The use of TGeoUnits is inconvenient. The dd4hep units are now exposed in the python modules.
- Basic shapes are now tested in the regular ctest executions. The mesh vertices of the shapes were
saved to a reference file and are compared to in subsequent runs. The reference files reside in
`examples/ClienTests/ref`. See `examples/ClientTests/compact/Check_Shape_*.xml` for details.
- The ROOT UI and some dump plugins were enhanced to expose more information.
* 2018-05-30 Markus Frank ([PR#397](https://github.com/aidasoft/dd4hep/pull/397))
- Enable to start DDG4 using a saved detector description in a ROOT file.
- Added corresponding test: `Persist_CLICSiD_Geant4_LONGTEST`
- Fix shape constructors for Trap and PseudoTrap
- The python module `DD4hep.py` is gone as discussed in the developers meeting use `dd4hep.py` instead.
- on masOS : your "git pull" possibly deletes both files. you may have to checkout `dd4hep.py` again, due to fact that the filesystem is case-insensitive.
- Add example for LHCb CODEX-b.
* 2018-05-29 Markus Frank ([PR#394](https://github.com/aidasoft/dd4hep/pull/394))
- Consistently handle cmake command line options in case no Geant4 or no documentation should be built.
* 2018-05-28 Markus Frank ([PR#393](https://github.com/aidasoft/dd4hep/pull/393))
- Improvements to `geoPluginRun`.
`$> geoPluginRun -ui -interactive`
results in DD4hep enabled ROOT prompt.
- DD4hepUI: improvements to interact with DD4hep instance from ROOT prompt
- DDDB improve configuration for printing and debugging
- DDDB: allow to block certain XML branches
* 2018-05-22 Frank Gaede ([PR#389](https://github.com/aidasoft/dd4hep/pull/389))
- fix bug in input handling, for details see discussion #387
- exclude leptons with zero lifetime from Geant4
* 2018-05-22 Markus Frank ([PR#388](https://github.com/aidasoft/dd4hep/pull/388))
- Update doxygen information for some undocumented classes.
- Add licence header to files where not present.
* 2018-05-22 Marko Petric ([PR#380](https://github.com/aidasoft/dd4hep/pull/380))
- Update LICENSE to LGPLv3
- The name of the file containing the LICENSE has ben changed from LICENCE->LICENSE as all source files reference `For the licensing terms see $DD4hepINSTALL/LICENSE.`
* 2018-05-16 Markus Frank ([PR#386](https://github.com/aidasoft/dd4hep/pull/386))
- Fix bug in variable order of `ExtrudedPolygon` (x<->y)
* 2018-05-15 Markus Frank ([PR#384](https://github.com/aidasoft/dd4hep/pull/384))
# Implementation of non-cylindrical tracking region (resolves #371)
- It is possible to define volumes in a parallel world such as e.g. a tracking region. In principle any volume hierarchy may be attached to the parallel world. None of these volumes participate in the tracking as long as the "connected" attribute is set to false. The hierarchy of parallel world volumes can be accessed from the main detector object using
```cpp
dd4hep::Volume parallel = dd4hep::Description::parallelWorldVolume()
```
This parallel world volume is created when the geometry is opened together (and with the same dimensions) as the world volume itself.
- IF the NAME of the volumes is "tracking_volume" within the compact notation it is declared as the Detector's trackingVolume entity and is accessible as well:
```cpp
dd4hep::Volume trackers = dd4hep::Description::trackingVolume()
```
- Although the concept is available in the DD4hep core, it's configuration from XML is only implemented for the compact notation. For details see the example `examples/ClientTests/compact/TrackingRegion.xml`.
- If the volume should be connected to the world: connected="true". This is useful for debugging because the volume can be visualized else if the volume is part of the parallelworld: connected="false". The volume is always connected to the top level. The anchor detector element defines the base transformation to place the volume within the (parallel) world.
```xml
<parallelworld_volume name="tracking_volume" anchor="/world" material="Air" connected="true" vis="VisibleBlue">
<shape type="BooleanShape" operation="Subtraction">
<shape type="BooleanShape" operation="Subtraction">
<shape type="BooleanShape" operation="Subtraction" >
<shape type="Tube" rmin="0*cm" rmax="100*cm" dz="100*cm"/>
<shape type="Cone" rmin2="0*cm" rmax2="60*cm" rmin1="0*cm" rmax1="30*cm" z="40*cm"/>
<position x="0*cm" y="0*cm" z="65*cm"/>
</shape>
<shape type="Cone" rmin1="0*cm" rmax1="60*cm" rmin2="0*cm" rmax2="30*cm" z="40*cm"/>
<position x="0" y="0" z="-65*cm"/>
</shape>
<shape type="Cone" rmin2="0*cm" rmax2="55*cm" rmin1="0*cm" rmax1="55*cm" z="30*cm"/>
<position x="0" y="0" z="0*cm"/>
</shape>
<position x="0*cm" y="50*cm" z="0*cm"/>
<rotation x="pi/2.0" y="0" z="0"/>
</parallelworld_volume>
```
# Enhancement of assemblies, regions and production cuts (resolves #373)
On request from FCC particle specific production cuts may be specified in the compact notation. These production cuts (Geant4 currently supports these for e+, e-, gammas and protons) are specified as "cut" entities in the limitset. (See the example `examples/ClientTests/compact/Assemblies.xml`).
- The hierarchy of cuts being applied is:
- If present particle specific production cuts for a region are applied.
- else the "cut" attribute of the compact region specification is used
- else the global Geant4 cut is automaticallly applied by Geant4.
```xml
<limits>
<limitset name="VXD_RegionLimitSet">
<!--
These are particle specific limits applied to the region
ending in Geant4 in a G4UserLimits instance
-->
<limit name="step_length_max" particles="*" value="5.0" unit="mm" />
<limit name="track_length_max" particles="*" value="5.0" unit="mm" />
<limit name="time_max" particles="*" value="5.0" unit="ns" />
<limit name="ekin_min" particles="*" value="0.01" unit="MeV" />
<limit name="range_min" particles="*" value="5.0" unit="mm" />
<!--
These are particle specific production cuts applied to the region
ending in Geant4 in a G4ProductionCuts instance
-->
<cut particles="e+" value="2.0" unit="mm" />
<cut particles="e-" value="2.0" unit="mm" />
<cut particles="gamma" value="5.0" unit="mm" />
</limitset>
</limits>
```
# SensitiveDetector types not changed by Geant4SensDetActionSequence (resolves #378)
The sensitive detector type defined in the detector constructors is no longer changed intransparently in the back of the users. This may have side-effects for creative detector constructor writers, who invent sd types out of the sky. These obviously will not work with Geant4, because in Geant4 a mapping of these types must be applied to supported sensitive detectors. Now the mapping of a sd type (e.g. "tracker") is strict in the python setup. The default factory to create any sensitive detector instance in Geant4 (ie. an object of type G4VSensitiveDetector, G4VSDFilter, Geant4ActionSD) is a property of the Geant4Kernel instance and defaults to:
```cpp
declareProperty("DefaultSensitiveType", m_dfltSensitiveDetectorType = "Geant4SensDet");
```
- Since the actual behavior is defined in the sequencer instanciated therein this default should be sufficient for 99.99 % of all cases. Otherwise the factory named "Geant4SensDet" may be overloaded.
* 2018-05-15 David Blyth ([PR#379](https://github.com/aidasoft/dd4hep/pull/379))
- Geant4FieldTrackingConstruction now properly overrides `constructField()`
* 2018-05-03 David Blyth ([PR#377](https://github.com/aidasoft/dd4hep/pull/377))
- Geant4Handle unhandled reference to shared actions. This affected the destruction of shared actions.
* 2018-05-03 Markus Frank ([PR#375](https://github.com/aidasoft/dd4hep/pull/375))
- Development of a small user example on how to do analysis in `DDG4`.
- See `examples/DDG4/src/HitTupleAction.cpp`
- Simply collect the energy deposits of hits and write an N-tuple with them.
- The example shows how to access the hit collections and to extract the data in order to write other more sophisticated analyses.
- This `DDG4` action is used in one of the Minitel examples: `examples/ClientTests/srcipts/MiniTelEnergyDeposits.py`
* 2018-05-02 Markus Frank ([PR#374](https://github.com/aidasoft/dd4hep/pull/374))
- recommission the multithreaded SiD example
- `DDG4/examples/SiDSim_MT.py` vs. `DDG4/examples/SiDSim.py`
* 2018-04-19 Markus Frank ([PR#370](https://github.com/aidasoft/dd4hep/pull/370))
* Allow to disable building the documentation cmake option BUILD_DOCS. By default ON and backwards compatible. If set to OFF no doc shall be built. (not everybody has biber installed)
* Move from `DD4hep.py` to `dd4hep.py`, since `DD4hep.py` has to disappear due to conflicts on MAC.
* 2018-04-13 Markus Frank ([PR#367](https://github.com/aidasoft/dd4hep/pull/367))
- resolves #361
The Detector object has a state `Detector::state()` with three values:
```cpp
/// The detector description states
enum State {
/// The detector description object is freshly created. No geometry nothing.
NOT_READY = 1<<0,
/// The geometry is being created and loaded. (parsing ongoing)
LOADING = 1<<1,
/// The geometry is loaded.
READY = 1<<2
};
```
It starts with `NOT_READY`, moves to `LOADING` once the geometry is opened and goes to `READY` once the geometry is closed. As suggested in the developers meeting: the initial field object is invalid and gets created only once the geometry is opened. As a corollary, the field may not be accessed before. Geometry parsers must take this behavior into account!
- Address some compiler warnings.
- Mainly add override/final statements in header files.
- Implement a module to invoke python as a DD4hep plugin:
invoked e.g. by: `geoPluginRun -plugin DD4hep_Python -dd4hep -prompt`
```
geoPluginRun -plugin DD4hep_Python -help
Usage: -plugin <name> -arg [-arg]
name: factory name DD4hep_Python
-import <string> import a python module, making its classes available.
-macro <string> load a python script as if it were a macro.
-exec <string> execute a python statement (e.g. import ROOT.
-eval <string> evaluate a python expression (e.g. 1+1)
-prompt enter an interactive python session (exit with ^D)
-dd4hep Equivalent to -exec "import dd4hep"
-help Show this online help message.
Note: entries can be given multiple times and are executed in exactly the
order specified at the command line!
```
Implementation wise the plugin is a simple CLI wrapper for TPython.
* 2018-04-12 Marko Petric ([PR#362](https://github.com/aidasoft/dd4hep/pull/362))
- Update DD4hepManual
* 2018-04-12 Markus Frank ([PR#360](https://github.com/aidasoft/dd4hep/pull/360))
- Examples: only build some examples depending on the availability of dependencies.
- DDCore: Add interface to allow URI blocking during file parsing. Default is as now.
- DDCMS: Add conversion of new shapes.
* 2018-04-10 Markus Frank ([PR#359](https://github.com/aidasoft/dd4hep/pull/359))
- Bunch of fixes. Mostly in `examples/DDDB`
- Only build `examples/DDDB` if XercesC is present.
- Only build `examples/DDCMS` if CLHEP is present
* 2018-04-09 Markus Frank ([PR#357](https://github.com/aidasoft/dd4hep/pull/357))
- Add configuration options for loading DDDB
* 2018-04-05 Markus Frank ([PR#351](https://github.com/aidasoft/dd4hep/pull/351))
- To avoid unwanted disappearing conditions sub pools, a conditions slice may be instructed to collect shared references to the used pools in the slice.
- For python:
- Move DDG4/SystemOfUnits.py to DDG4/g4units.py
Keep SystemOfUnits.py with deprecation warning
- move DD4hep.py to dd4hep.py.
import dd4hep also imports all TGeoUnit units into its namespace.
Hence: import dd4hep; print dd4hep.m gives: "100.0"
- DD4hep.py is kept for backwards compatibility issuing a deprecation warning
- DDG4.py: imports g4units as G4Units: DDG4.G4Units.m etc.
- DDG4.py: imports TGeoUnit as TGeo4Units: DDG4.TGeoUnits.m etc.
- Some problem with replacing DD4hepUnits.h with TGeoSystemOfUnits.h
Surface test complains. To be investigated. Keep old DD4hepUnits for the time being.
* 2018-04-05 Markus Frank ([PR#350](https://github.com/aidasoft/dd4hep/pull/350))
- Merge `DDCMS` and `DDCMSTests` to `DDCMS`
- Move `DDDB` to the `examples/`
- Add tests `DDDB_DeVelo` and `DDDB_DeVelo_Gaudi` missing from #349
* 2018-04-05 Markus Frank ([PR#349](https://github.com/aidasoft/dd4hep/pull/349))
- Resolves #339
- DDDB conditions had a bug when loading from file base. The IOV was not handled properly. Now the resulting IOV is configurable using properties.
- Added Gaudi like example use case for options handling with the DeVelo detector elements.
- Configuration improvement in DDG4 action Output2ROOT:
- New property "DisableParticles" allows to suppress the MCParticle record from being written to the ROOT file.
- dto. the option "DisabledCollections" allows to NOT write any hit collection.
- Unit tests for these options are not (yet) present.
- DDCond: allow for user defined conditions cleanup policies. Base class `dd4hep::cond::ConditionsCleanup`. Callbacks are issued to the class for IOV type pools and IOV dependent pools asking if the pools should be processed.
* 2018-04-05 Marko Petric ([PR#344](https://github.com/aidasoft/dd4hep/pull/344))
- Move `DDCMS` into examples as it is not core functionality
# v01-07-02
* 2018-06-26 Frank Gaede [PR#413](https://github.com/AIDASoft/DD4hep/pull/413)
- bug fix in Geant4EventReaderGuineaPig
- fix ignoring input lines with 'nan'
- did not work on SL6 w/ gcc
# v01-07-01
* 2018-05-17 Frank Gaede
- fix bug in input handling, for details see discussion [#387](https://github.com/AIDASoft/DD4hep/issues/387)
- exclude leptons with zero lifetime from Geant4
# v01-07
* 2018-03-26 Javier Cervantes Villanueva ([PR#343](https://github.com/AIDASoft/DD4hep/pull/343))
- Fix bug in calculating eta, introduced in #138
- use `magFromXYZ` instead of `radiusFromXYZ` to calculate pseudorapidity
* 2018-03-19 Frank Gaede ([PR#338](https://github.com/AIDASoft/DD4hep/pull/338))
- Include fixes from Chris Burr for the alignments calculator.
- Add a small study for the LHCb upgrade defining reasonable detector element conditions for the Velo pixel detector using the DDCond derived condition mechanism.
- To be done: somehow get an example for this mechanism, which works outside Gaudi.
* 2018-03-23 Markus Frank ([PR#340](https://github.com/AIDASoft/DD4hep/pull/340))
- Improvement for DDDB - case study to implement real-world detector elements.
* 2018-03-28 Frank Gaede ([PR#345](https://github.com/AIDASoft/DD4hep/pull/345))
- Remove `DDSurfaces` folder as it was merged in `DDRec`
* 2018-03-28 Frank Gaede ([PR#341](https://github.com/AIDASoft/DD4hep/pull/341))
- Remove top level `DDSegmentation` folder as it is not needed anymore
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
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
# v01-06
* 2018-01-31 Ete Remi ([PR#297](https://github.com/aidasoft/dd4hep/pull/297))
- Geant4Output2LCIO
- Switch run header writing order at beginning of run instead of end of run
* 2018-03-15 Marko Petric ([PR#335](https://github.com/aidasoft/dd4hep/pull/335))
- Deduce CLHEP location from `CLHEP_INCLUDE_DIR` ( Fixes #314 )
- Add `gSystem.Load('libglapi')` to `testDDPython.py` which failed due to TLS issues on local machine
- Add Geant4 10.4 to test suite
* 2018-03-14 Markus Frank ([PR#336](https://github.com/aidasoft/dd4hep/pull/336))
- New shape definitions for CMS
Generic Polyhedra, ExtrudedPolygon, CutTube, TruncatedTube, PseudoTrap.
- DDDB: allow to configure the match for the entity resolver.
* 2018-03-13 Daniel Jeans ([PR#333](https://github.com/aidasoft/dd4hep/pull/333))
- changed utility name from graphicalMaterialScan -> graphicalScan
- add visualisation of electric and magnetic fields (switched by parameter)
- change order of x/y/z range parameters for ease of use
- added parameter for name of output root file
* 2018-03-12 Markus Frank ([PR#334](https://github.com/aidasoft/dd4hep/pull/334))
- `step_length_max` not propagated to Geant4 for `G4UserLimit` instances.
- All limits can now be set separately for each particle type (or for all as a catchall situation if the particle type is '*'.
- Fixes #327
* 2017-11-29 Markus Frank ([PR#271](https://github.com/aidasoft/dd4hep/pull/271))
- Add `LHeD` example (contribution from Peter Kostka)
- Fix to support `python3` in `DDG4`
- Fix issue in Volumes.h for backwards compatibility with gcc version < 5
- Fix type definition of `XmlChar` to also support Xerces-C 3.2.0
- Fix `AClick` initialization files in `DDG4` (remove dependency on `libDDSegmentation`)
* 2017-11-29 Marko Petric ([PR#270](https://github.com/aidasoft/dd4hep/pull/270))
- Fields: Remove pessimizing move and shadow warnings
* 2018-02-06 Ete Remi ([PR#301](https://github.com/aidasoft/dd4hep/pull/301))
- Geant4Output2LCIO plugin
- Added run number and event number offset properties. Enable steering of run and event counters from outside
- Added 3 event parameters properties for int, float and string event parameters
* 2018-02-05 Markus Frank ([PR#304](https://github.com/aidasoft/dd4hep/pull/304))
- Restructure the files a bit to simplify the use of the `XML` and `JSON` parsers and the spirit utilities in other projects.
* 2018-02-28 Frank Gaede ([PR#323](https://github.com/aidasoft/dd4hep/pull/323))
- make Geant4InputHandling.cpp compatible w/ gcc49
- avoid stringstream move operation
- fixes #320
* 2018-01-24 Markus Frank ([PR#292](https://github.com/aidasoft/dd4hep/pull/292))
- Fix bug in Alignment test:
- A long standing bug was fixed for the test `t_AlignDet_Telescope_align_new`.
- It was assumed that the `DetElements` were ordered in memory, which is **not** true (probably due to memory randomization).
- Moved to path dependent ordering. Test now OK.
- Closes #282
- Removed a Bunch of `rootcling` warnings
- Apparently `rootcling` now expects a class with the name of the dictionary header file.
- To satify this some dummy anonymous classes were added.
- Closes #290
* 2018-01-26 Marko Petric ([PR#296](https://github.com/aidasoft/dd4hep/pull/296))
- Check dynamic cast if it was successful
* 2018-01-22 Markus Frank ([PR#289](https://github.com/aidasoft/dd4hep/pull/289))
- Add possibility to parse `XML` from string
- Please see #288 for details.
- The main interface was not changed. Rather a view to the Detector class supports this functionality.
- The existing view `dd4hep::DetectorLoad` was enhanced to allow the required functionality:
```cpp
Detector detector = ....;
/// So here is the actual test: We parse the raw XML string
DetectorLoad loader(detector);
loader.processXMLString(buffer,0);
```
- An example was added (`ClientTests/src/XML_InMemory.cpp`, which illustrates the usage).
- Improve DDCond manual
- Improve that the DDCond manual reflects the source code.
- The possible plugins provided are not all described. This shall be future work.
- Enable the GDML reader plugin
- Closes #275
* 2018-03-01 Markus Frank ([PR#325](https://github.com/aidasoft/dd4hep/pull/325))
- Add dictionaries to `DDRec`.
- Consequently add the python interface to access the exported classes.
* 2018-03-01 Ete Remi ([PR#321](https://github.com/aidasoft/dd4hep/pull/321))
- Geant4InputAction and Geant4EventReader :
- Register input action pointer to event reader, enabling the event reader to access the Geant4 context
- Added new class LCIOEventParameters to handle LCIO input event parameters
- LCIOFileReader :
- Add extension with LCIO input event parameters to Geant4event
- Geant4Output2LCIO :
- Get LCIO event parameters from event extension (if any) and write them to LCIO output event
* 2018-03-01 David Blyth ([PR#317](https://github.com/aidasoft/dd4hep/pull/317))
- DDCore: added CartesianStrip segmentations
* 2018-03-02 Frank Gaede ([PR#328](https://github.com/aidasoft/dd4hep/pull/328))
- finalize the python bindings for DDRec:
- implement StructExtension(DetElement&) and toString()
- add DetectorData classes to python
- add example `dumpDetectorData.py`
- closes #306
- remove deprecated methods and classes in DDRec
- resolves #326
* 2018-03-06 Andre Sailer ([PR#331](https://github.com/aidasoft/dd4hep/pull/331))
- Geant4InputHandling: reject stable particles without lifetime (e.g., initial state electrons), fixes #330
* 2018-03-07 Markus Frank ([PR#329](https://github.com/aidasoft/dd4hep/pull/329))
- Fixes #324
- Call `TGeoMixture::ComputeDerivedQuantities()` for ROOT >= 6.12.0 (Resolves #281)
- Start to address issue: https://github.com/AIDASoft/DD4hep/issues/327
* 2018-03-07 Daniel Jeans ([PR#322](https://github.com/aidasoft/dd4hep/pull/322))
- correct coded expressions for quadrupole, sextupole and octopole fields.
- correct expression for octopole field in documentation
* 2018-03-09 Ercan Pilicer ([PR#319](https://github.com/aidasoft/dd4hep/pull/319))
- Remove unnecessary `import exceptions` from python
* 2017-11-30 Markus Frank ([PR#272](https://github.com/aidasoft/dd4hep/pull/272))
### DDG4 enhancements
- Enable framework support in DDG4. The `Geant4Context` is the main thread specific accessor to the `dd4hep`, `DDG4` and the user framework.
- The access to the `dd4hep` objects is via the `Geant4Context::detectorDescription()` call,
- the access to `DDG4` as a whole is supported via `Geant4Context::kernel()` and
- the access to the user gframework using a specialized implementation of:
`template <typename T> T& userFramework() const;`
A user defined implementations must be specialized somewhere in a compilation unit of the user framework, not in a header file. The framework object could host e.g. references for histogramming, logging, data access etc.
This way any experiment/user related data processing framework can exhibit it's essential tools to `DDG4` actions.
A possible specialized implementations would look like the following:
```cpp
struct Gaudi {
IMessageSvc* msg;
IHistogramSvc* histos;
....
};
template<> Gaudi& Geant4Context::userFramework<Gaudi>() const {
UserFramework& fw = m_kernel->userFramework();
if ( fw.first && &typeid(T) == fw.second ) return *(T*)fw.first;
throw std::runtime_error("No user specified framework context present!");
}
```
To access the user framework then use the following call:
```cpp
Gaudi* fw = context->userFramework<Gaudi>();
```
of course after having initialized it:
```cpp
Gaudi * fw = ...;
GaudiKernel& kernel = ...;
kernel.setUserFramework(fw);
```
- `G4RunManager` is now a plugin. To enable user defined run managers in `DDG4`, the run manager is encapsulated in a `Geant4Action`. See `DDG4/plugins/Geant4RunManagers.cpp` how to implement such plugins. Currently there are to factories implemented:
- `G4RunManager` -> factory invokes the single threaded `G4RunManager`
- `G4MTRunManager `-> factory invokes the multi threaded `G4MTRunManager`
The factory names here are identical to the names of the native G4 classes.
* 2017-11-30 Marko Petric ([PR#268](https://github.com/aidasoft/dd4hep/pull/268))
- Introduce new DD4hep web-site: http://dd4hep.cern.ch/
- Page is automatically build from [this repo](https://gitlab.cern.ch/CLICdp/DetectorSoftware/DD4hep-website)
- Restructured `doc` folder and removed not doc related stuff to `etc`
- Fixes to Doxygen configuration
- create reference manual `make reference`
- Better integration of DD4hep tex documentation and cmake
- create manuals in PDF format `make pdf` create manuals in HTML format `make html`
- allow creation of documentation if dependencies are not present
- extended gitlab runners to automatically build documentation PDF and HTML and also reference manual and publish to web-site, thus ensuring always up to date information.
* 2018-02-14 Markus Frank ([PR#310](https://github.com/aidasoft/dd4hep/pull/310))
- Fix MC truth problem in DDG4
- Update of the `XML` reader to simplify externalization
* 2018-02-15 David Blyth ([PR#302](https://github.com/aidasoft/dd4hep/pull/302))
- Added "NOINSTALL" option to cmake build function dd4hep_add_library
* 2018-02-16 Andre Sailer ([PR#315](https://github.com/aidasoft/dd4hep/pull/315))
- DDG4::ExtraParticles: particles with too small life time were tagged as stable, now correctly marked unstable
- DDG4::Geant4InputHandling: pass all particles except strings, quarks and gluons to Geant4 to get completely consistent MCParticle History, fixes #307
- DDG4::Geant4PrimaryHandler: add property RejectPDGs
- DDG4::Geant4InputHandling: print geant4 primary particle chains if VERBOSE
* 2017-11-16 David Blyth ([PR#258](https://github.com/aidasoft/dd4hep/pull/258))
- Corrected `EcalBarrel` constructor after finding significant layer overlaps
- Corrected `CylindricalEndcapCalorimeter` factors of 2 in layer/slice thickness
- Corrected `ForwardDetector` factors of 2 in layer/slice thickness
* 2017-12-05 Marko Petric ([PR#278](https://github.com/aidasoft/dd4hep/pull/278))
- Remove `DD4HEP_USE_CXX11` and `DD4HEP_USE_CXX14` and use [CMake default way](https://cmake.org/cmake/help/v3.1/variable/CMAKE_CXX_STANDARD.html)`CMAKE_CXX_STANDARD` to define C++ standard
* 2017-12-05 Marko Petric ([PR#277](https://github.com/aidasoft/dd4hep/pull/277))
- Fix logic for ignoring warnings in dictionary creation
- Add `-Wno-overlength-strings` to all generated targets
* 2017-12-05 peterkostka ([PR#276](https://github.com/aidasoft/dd4hep/pull/276))
- Update of LHeD example - overlaps (problem with SubdetectorAssembly)
* 2017-12-01 Markus Frank ([PR#275](https://github.com/aidasoft/dd4hep/pull/275))
- Add Support to Export and Import GDML Data
- Allow extorts and imports of partial geometry trees with GDML. **This requires however a future version of ROOT**, since some changes were necessary in the ROOT GDML handlers. The code is commented out for the time being. The plugin implementation is in `DDCore/src/gdml/GdmlPlugin.cpp`
- Remove print statements from DDG4 scripts
- Replace prints with calls to the python logging utility. Hopefully this shall give at some point python3 compatibility.
- Update `G4Stepper` factories
- Add some missing steppers
* 2017-12-01 Marko Petric ([PR#274](https://github.com/aidasoft/dd4hep/pull/274))
- Revert `DDG4.py` Geant4 initialization parameters back to values specified in Geant4 (see discussion #266)
# v01-05
* 2017-11-10 Dan Protopopescu ([PR#262](https://github.com/aidaSoft/DD4hep/pull/262))
- Added createGearForSiD minimal plugin solely for use with LCCalibration
* 2017-11-10 Frank Gaede ([PR#261](https://github.com/aidaSoft/DD4hep/pull/261))
- add `Geant4::HitData::MonteCarloContrib::length` (step length)
- set in all CalorimeterSDActions
- write out it LCIO if `Geant4Sensitive::DETAILED_MODE` and LCIO_VERS>v02-10
* 2017-11-10 Whitney Armstrong ([PR#260](https://github.com/aidaSoft/DD4hep/pull/260))
- added electric and magnetic field functions that return the field value (taking the position as the only argument) directly in `dd4hep::OverlayedField`
# v01-04
* 2017-10-17 Markus Frank ([PR#248](https://github.com/aidasoft/DD4hep/pull/248))
### VolumeManager Implementation
A possibly important bug was fixed for the lookup of top level subdetectors in the `VolumeManager` by volume identifers of (sensitive) volumes. Due to a bug in the de-masking possible wrong top level subdetectors were returned. The default use cases typically do not use this call and hence should not be affected.
* 2017-10-17 Shaojun Lu ([PR#247](https://github.com/aidasoft/DD4hep/pull/247))
- Fix C++11 pointer error by adding include <memory> for 'unique_ptr' (GCC 4.9).