Warning, /DD4hep/doc/ReleaseNotes.md is written in an unsupported language. File is not indexed.
0001 # v01-32-01
0002
0003 * 2025-05-20 Andre Sailer ([PR#1453](https://github.com/aidasoft/dd4hep/pull/1453))
0004 - Checksum: fix assertions on vector length during checksum calculations in debug mode, fixes #1451
0005 - OpaqueData: fix return value for non-void function `template <typename T> inline T& OpaqueDataBlock::bind(T&& obj)`
0006
0007 * 2025-05-19 Andre Sailer ([PR#1450](https://github.com/aidasoft/dd4hep/pull/1450))
0008 - Objects: change printout for color creation from WARNING to INFO (fixup for #1449)
0009 - OpaqueData: fix compilation error with c++23 and gcc15.
0010
0011 * 2025-05-16 Dmitry Kalinkin ([PR#1449](https://github.com/aidasoft/dd4hep/pull/1449))
0012 - Fix a regression with certain colors not saved to .root files when using ROOT 6.32.0+.
0013
0014 # v01-32
0015
0016 * 2025-05-07 Andre Sailer ([PR#1447](https://github.com/aidasoft/dd4hep/pull/1447))
0017 - ddsim: add physics.alternativeStableStatus option to allow defining alternative stable status of MCParticles meant to be treated by Geant4, fixes #1446
0018
0019 * 2025-05-06 Wouter Deconinck ([PR#1445](https://github.com/aidasoft/dd4hep/pull/1445))
0020 - DDG4: Allow event readers to work with pre-existing (Event,Run)Parameters, written by other plugins.
0021
0022 * 2025-04-15 Thomas Madlener ([PR#1444](https://github.com/aidasoft/dd4hep/pull/1444))
0023 - CI: Switch to `run-lcg-view` action `v5` and inject `ccache` as compiler launcher via cmake to speed up CI builds.
0024
0025 * 2025-04-08 Wouter Deconinck ([PR#1440](https://github.com/aidasoft/dd4hep/pull/1440))
0026 - adopt properties of underlying Geant4GeneratorAction in Geant4SharedGeneratorAction
0027
0028 * 2025-04-07 Andre Sailer ([PR#1442](https://github.com/aidasoft/dd4hep/pull/1442))
0029 - WebDisplay: fix building against current ROOT master, need further FIXME
0030
0031 * 2025-04-04 Andre Sailer ([PR#1441](https://github.com/aidasoft/dd4hep/pull/1441))
0032 - CMake: drop use of ROOT:ROOTHistDraw
0033
0034 * 2025-04-02 Alvaro Tolosa Delgado ([PR#1439](https://github.com/aidasoft/dd4hep/pull/1439))
0035 - Modification of `Geant4Sensitive::cellID` base class function to handle properly the cases when the step corresponds to an optical photon and the option InvokeSD is enable, so only post-step information is used to calculate the volume/cell ID.
0036
0037 * 2025-03-28 Alvaro Tolosa Delgado ([PR#1438](https://github.com/aidasoft/dd4hep/pull/1438))
0038 - g4GraphicalScan: add option `-t` `--timeout` to make timeout configurable, fixes #1435
0039
0040 * 2025-03-27 Andre Sailer ([PR#1437](https://github.com/aidasoft/dd4hep/pull/1437))
0041 - Geant4TVUserParticleHandler: fix wrong contains check through unit conversion. Fixes #1434
0042
0043 * 2025-03-26 Andre Sailer ([PR#1433](https://github.com/aidasoft/dd4hep/pull/1433))
0044 - Geant4ParticleHandler: prevent the vertexIsNotEndpointOfParent bit set for particles that were not simulated by Geant4 for some reason.
0045
0046 * 2025-03-25 jmcarcell ([PR#1432](https://github.com/aidasoft/dd4hep/pull/1432))
0047 - Remove headers that are not being used in the current file and add headers that are being used.
0048
0049 * 2025-03-21 Andre Sailer ([PR#1429](https://github.com/aidasoft/dd4hep/pull/1429))
0050 - Cmake: UtilityApps: move G__eve dictionary to when we have ROOT::Eve, otherwise there is an installation error. Fixes #1424
0051
0052 * 2025-03-20 Andre Sailer ([PR#1428](https://github.com/aidasoft/dd4hep/pull/1428))
0053 - CMake: do not build DDEve if ROOT::Eve does not exist. Fixes #1424
0054
0055 * 2025-03-20 jmcarcell ([PR#1427](https://github.com/aidasoft/dd4hep/pull/1427))
0056 - Remove C++ preprocessor checks for a standard before C++14
0057
0058 * 2025-03-19 leggett ([PR#1426](https://github.com/aidasoft/dd4hep/pull/1426))
0059 - CMake: Suppress building of UtilityApps components that require ROOT::Eve if it's not available (e.g. if ROOT was built without X11 support)
0060
0061 * 2025-03-19 jmcarcell ([PR#1425](https://github.com/aidasoft/dd4hep/pull/1425))
0062 - Fix typos and other minor changes
0063 - Fix a few usage messages that were outdated or wrong
0064
0065 * 2025-03-18 jmcarcell ([PR#1422](https://github.com/aidasoft/dd4hep/pull/1422))
0066 - Remove checks for the C compiler when configuring
0067 - Remove `ENABLE_LANGUAGE` which is redundant when called after `PROJECT`
0068
0069 * 2025-03-17 leggett ([PR#1421](https://github.com/aidasoft/dd4hep/pull/1421))
0070 fix typo in CMakeLists.txt so that DD4HEP_DISABLE_PACKAGES list is properly parsed
0071
0072 * 2025-03-17 Markus Frank ([PR#1420](https://github.com/aidasoft/dd4hep/pull/1420))
0073 - Fix for issue https://github.com/AIDASoft/DD4hep/issues/1418.
0074 Individual DD4HEP sub-packages can be disable from the cmake command line:
0075 ```
0076 $> cmake <other options> -DDD4HEP_DISABLE_PACKAGES="DDRec DDEve DDDigi" ../DD4hep
0077 ```
0078 This will disable the sub-packages DDRec,DDEve,DDDigi:
0079 ```
0080 $> cmake -DDD4HEP_DISABLE_PACKAGES="DDRec DDEve DDDigi" ../DD4hep
0081 -- Could NOT find LATEX (missing: LATEX_COMPILER)
0082 -- No LaTeX/Biber found, cannot compile user manual.
0083 -- Disable package: DDEve
0084 -- Disable package: DDDigi
0085 -- Disable package: DDRec
0086 -- Will be building these packages: DDDetectors;DDCond;DDAlign;DDCAD;DDG4;UtilityApps
0087 -- Including DD4hepBuild.cmake
0088 ```
0089 Clearly no prevision can be done concerning package dependencies. This is up to the user.
0090 For example `DDG4` cannot be disabled if `DDDigi` should be kept.
0091
0092 * 2025-03-13 Wouter Deconinck ([PR#1417](https://github.com/aidasoft/dd4hep/pull/1417))
0093 - Support multithreading in Geant4EDM4hepOutput plugin
0094
0095 * 2025-03-13 jmcarcell ([PR#1414](https://github.com/aidasoft/dd4hep/pull/1414))
0096 - Fix the result of `innerMaterial()` and `outerMaterial()` depending on if the other is called first
0097 - Add a test that fails without this fix and passes with the fix
0098
0099 * 2025-03-12 Markus Frank ([PR#1416](https://github.com/aidasoft/dd4hep/pull/1416))
0100 - Improve the response of geoDisplay when invoked for help.
0101 - This PR fixes issue: https://github.com/AIDASoft/DD4hep/issues/1409
0102 - Now geoDisplay -h / -help / --help gives the following output:
0103 ```
0104 $ geoDisplay -h
0105 PersistencyIO INFO +++ Set Streamer to dd4hep::OpaqueDataBlock
0106 DD4hep INFO ++ Using globally Geant4 unit system (mm,ns,MeV)
0107 Info in <TGeoManager>: Changing system of units to Geant4 units (mm, ns, MeV).
0108 Info in <TGeoManager::TGeoManager>: Geometry default, Detector Geometry created
0109 Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100
0110 geoPluginRun: No geometry input supplied. No geometry will be loaded.
0111 ------------------------------------------------------------------
0112 | Welcome to ROOT 6.35.01 https://root.cern |
0113 | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
0114 | Built for linuxx8664gcc on Jan 20 2025, 14:50:44 |
0115 | From heads/master@v6-31-01-4781-gce5f87d2f4 |
0116 | With g++-12 (Ubuntu 12.3.0-17ubuntu1) 12.3.0 |
0117 | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
0118 ------------------------------------------------------------------
0119
0120 Usage: -plugin DD4hep_GeometryDisplay -arg [-arg]
0121
0122 Invoke the ROOT geometry display using the factory mechanism.
0123
0124 -detector <string> Top level DetElement path. Default: '/world'
0125 -option <string> ROOT Draw option. Default: 'ogl'
0126 -level <number> Visualization level [TGeoManager::SetVisLevel] Default: 4
0127 -visopt <number> Visualization option [TGeoManager::SetVisOption] Default: 1
0128 -load Only load the geometry. Do not invoke the display
0129 -help Print this help output
0130 Arguments given: -help
0131
0132 ```
0133 - Unfortunately we were not really following the linux rules concerning options:
0134 - one letter options: `-<letter> <value>` or
0135 - multi letter options: `--<options>=<value>`
0136 - maybe we should at some time make an effort to homogenize the behavior.
0137
0138 * 2025-03-10 Markus Frank ([PR#1415](https://github.com/aidasoft/dd4hep/pull/1415))
0139 - Several transparent changes, which should improve the deficiencies of the coverity scans.
0140
0141 * 2025-03-07 Andre Sailer ([PR#1412](https://github.com/aidasoft/dd4hep/pull/1412))
0142 - HTML User Docs: remove margin from sectionToc, online this squashes the Toc lines more than offline for some reason
0143
0144 * 2025-03-07 Andre Sailer ([PR#1411](https://github.com/aidasoft/dd4hep/pull/1411))
0145 - HTML User Docs: move Table of Content toc to absolute position at 150% of page width. Let's table of content scroll along with the page.
0146
0147 * 2025-03-07 Andre Sailer ([PR#1410](https://github.com/aidasoft/dd4hep/pull/1410))
0148 - Documentation: fix relative location of CSS files in html user manuals
0149
0150 * 2025-03-05 Dmitry Kalinkin ([PR#1408](https://github.com/aidasoft/dd4hep/pull/1408))
0151 - `ROOT_LIBRARY_PATH` will now be updated by thisdd4hep.sh. This is needed to instruct Cling to prefer a particular dd4hep path. see https://github.com/root-project/root/blob/a588ea2cbc286afcc5e2b06dfdcae139b470da96/README/ReleaseNotes/v624/index.md?plain=1#L76
0152
0153 * 2025-02-18 Markus Frank ([PR#1405](https://github.com/aidasoft/dd4hep/pull/1405))
0154 Enable random seed printout to debug flaky BoxOfStraws example
0155
0156 * 2025-02-17 Markus Frank ([PR#1404](https://github.com/aidasoft/dd4hep/pull/1404))
0157 - Remove compiler warnings for MacOS
0158
0159 * 2025-02-17 Markus Frank ([PR#1403](https://github.com/aidasoft/dd4hep/pull/1403))
0160 - All tests in the examples directory using geant4 simulation and dependencies of these tests have the following convention:
0161 `<test-directory>_sim_<other unique name>`, where `test_directory` is `CLICSiD, ClientTests, DDDigi, DDG4, MySensDet, etc`.
0162 - This allows to consistently exclude all tests which require simulation as an input by running:
0163 `$> ctest -E _sim_`
0164
0165 * 2025-02-12 Daniel Jeans ([PR#1401](https://github.com/aidasoft/dd4hep/pull/1401))
0166 - Fixes incorrect assumption in g4GraphicalScan.py when parsing output of Geant4MaterialScanner.
0167
0168 * 2025-02-10 Daniel Jeans ([PR#1398](https://github.com/aidasoft/dd4hep/pull/1398))
0169 - this PR improves robustness of g4GraphicalScan tool
0170 -- run short pilot job with timeout, to catch mal-defined models which cause ddsim to hang
0171 -- remove assumption about the edge of world volume
0172 -- deal with case when requested point is outside world volume
0173
0174 * 2025-02-07 Daniel Jeans ([PR#1397](https://github.com/aidasoft/dd4hep/pull/1397))
0175 - add python utility g4GraphicalScan.py to produce 2-d scan of a detector model
0176 - similar to graphicalScan, but directly reads the g4 geometry (rather than the DDRec geometry used by graphicalScan)
0177 - this can therefore cope with CAD-based elements ( see https://github.com/AIDASoft/DD4hep/issues/1322 )
0178
0179 # v01-31
0180
0181 * 2025-01-27 Andrii Verbytskyi ([PR#1378](https://github.com/aidasoft/DD4hep/pull/1378))
0182 - Use standard locations if the LD_LIBRARY_PATH or ROOTSYS are empty, i.e. /usr/lib,usr/lib64, etc.
0183
0184 * 2025-01-25 Markus Frank ([PR#1390](https://github.com/aidasoft/DD4hep/pull/1390))
0185 - Optimize the Geant4VolumeManager. Instead of mapping the Geant4 pathes as vectors of pointers,
0186 hash64 the pointers of the path and lookup pathes from the touchable history using this key.
0187 - Relevant changes are in the files DDG4/Geant4GeometryInfo.h and src/Geant4VolumeManager.cpp.
0188 Everything else is only cosmetics.
0189
0190 * 2025-01-22 Dmitry Kalinkin ([PR#1376](https://github.com/aidasoft/DD4hep/pull/1376))
0191 - DDSim: Steering files can now omit instantiating a new `SIM = DD4hepSimulation()`, and instead use a pre-defined variable with name `SIM`. This allows for steering files that preserve the existing state of `DD4hepSimulation` that a custom user code had set prior to the `parseOptions()` call.
0192
0193 * 2025-01-21 Markus Frank ([PR#1387](https://github.com/aidasoft/DD4hep/pull/1387))
0194 Update the reference files for the Pseudotrap shape checks after mesh creation updates in ROOT.
0195 Pseudotrap tests are disabled for G4 units due to numerical discrepancies when using G4 units vs. TGeo units.
0196
0197 * 2025-01-20 Andre Sailer ([PR#1371](https://github.com/aidasoft/DD4hep/pull/1371))
0198 - DDSim: add a reader for EDM4hep files, fixes #1369
0199 - DDSim can now read EDM4hep files in root format.
0200
0201 * 2025-01-16 sss ([PR#1384](https://github.com/aidasoft/DD4hep/pull/1384))
0202 - DD4hep::Segmentations: add cellsSpanVolumes function to mark segmentations that that can have cells that span multiple volumes, such as the Allegro ECal.
0203
0204 * 2025-01-16 jmcarcell ([PR#1380](https://github.com/aidasoft/DD4hep/pull/1380))
0205 - Revert some of the changes of https://github.com/AIDASoft/DD4hep/pull/1375 to build a vector of floats instead of doubles since the necessary constructor doesn't exist in 0.10.X.
0206 - Use `edm4hep::labels::CellIDEncoding` only when they are available (starting at version 0.99)
0207
0208 * 2025-01-13 sss ([PR#1386](https://github.com/aidasoft/DD4hep/pull/1386))
0209 - Fix potential use of dangling temporary in exampe.
0210
0211 * 2025-01-13 scott snyder ([PR#1385](https://github.com/aidasoft/DD4hep/pull/1385))
0212 - DDSim.ACtion: Fix a wrong variable in a docstring.
0213
0214 * 2025-01-09 jmcarcell ([PR#1374](https://github.com/aidasoft/DD4hep/pull/1374))
0215 - Do not set or read the color flow for MCParticles from EDM4hep,
0216 needed after https://github.com/key4hep/EDM4hep/pull/389
0217
0218 * 2025-01-06 jmcarcell ([PR#1375](https://github.com/aidasoft/DD4hep/pull/1375))
0219 - Fix a few compiler warnings (clang 18) about:
0220 - Set but unused variables and unused variables or declarations
0221 - Deprecated constructor for a Vector3d from a Vector3f from EDM4hep
0222 - Missing override
0223 - Having a space after `operator""` is deprecated
0224
0225 * 2024-12-10 Andre Sailer ([PR#1368](https://github.com/aidasoft/DD4hep/pull/1368))
0226 - HitTupleAction: change how the tree is written and filled, because that caused segfaults in LCG stack runs of dd4hep example tests.
0227
0228 * 2024-12-10 Markus Frank ([PR#1367](https://github.com/aidasoft/DD4hep/pull/1367))
0229 - If memory is an issue, the Geant4 memory consumption can be reduced using the smartless option of
0230 G4LogicalVolume entities. This MR exposes this feature of Geant4 to dd4hep.
0231 Example fragment of the code:
0232 ```
0233 Volume vol = ....;
0234 // 2 is the Geant4 voxelization default. 0 means no voxelization,
0235 // values bigger than 2 will need more memory.
0236 int value = 0 .... 5;
0237 vol.setSmartlessValue(value);
0238 ```
0239 Fixes #1361
0240 - An example (+test) is supplied as well:
0241 - ClientTests/compact/DriftChamber.xml
0242 - ClientTests/scripts/DriftChamber.py
0243 where the voxelization is reduced.
0244
0245 * 2024-12-10 Andre Sailer ([PR#1366](https://github.com/aidasoft/DD4hep/pull/1366))
0246 - DDSim: Clarify that event processing includes Initialisation time, fixes #1364
0247
0248 * 2024-12-09 ybedfer ([PR#1365](https://github.com/aidasoft/DD4hep/pull/1365))
0249 - Adding a `CartesianGridUV` segmentation class, providing for a stereo readout, *i.e.* a readout at an angle w.r.t. the axes of the sensitive volume.
0250 - The class is a straightforward derivation of `CartesianGridXY`, with only few extras needed to register the _angle_ parameter and execute the rotation.
0251
0252 * 2024-12-05 Andre Sailer ([PR#1362](https://github.com/aidasoft/DD4hep/pull/1362))
0253 - Geant4AssemblyVolume: use the same copy ID for the Geant4 Volume as was set in DD4hep geometry construction, fixes #1360 .
0254
0255 * 2024-11-28 BrieucF ([PR#1359](https://github.com/aidasoft/DD4hep/pull/1359))
0256 - Increased the limit on the maximum number of particles one can provide with the hepevt format from 1 to 50 M, fixes #1356
0257
0258 * 2024-11-22 Alvaro Tolosa Delgado ([PR#1358](https://github.com/aidasoft/DD4hep/pull/1358))
0259 - Drift chamber data extension `DCH_info_struct` has been extended with functions to calculate the projection of a point into a wire
0260
0261 * 2024-11-21 ybedfer ([PR#1357](https://github.com/aidasoft/DD4hep/pull/1357))
0262 Bug fix in `CylindricalGridPhiZ`:
0263 - In the `cellId` member method, one now refrains from reducing the phi parameter modulo 2pi when its IDdescriptor is signed.
0264 - When the offset is null, this means that the phi range is now [-pi,pi], instead of the previously [0,2pi] which is not appropriate for a signed quantity.
0265
0266 * 2024-11-19 Andre Sailer ([PR#1355](https://github.com/aidasoft/DD4hep/pull/1355))
0267 - CMake: fix for using Geant4 with internal CLHEP, fix linking error where -lG4clhep was not found. Fixes #1354
0268
0269 * 2024-11-11 Andre Sailer ([PR#1352](https://github.com/aidasoft/DD4hep/pull/1352))
0270 - DDG4: add possibility to control verbosity for physics constructors
0271 - DDSim: add new `--output.physics` parameter to control output level for physics constructors, fixes #1351
0272
0273 * 2024-11-07 Andre Sailer ([PR#1349](https://github.com/aidasoft/DD4hep/pull/1349))
0274 - PythonPlugin: replace deprecated Eval with Exec (root 6.36 need)
0275
0276 * 2024-11-07 Alvaro Tolosa Delgado ([PR#1348](https://github.com/aidasoft/DD4hep/pull/1348))
0277 - DDRec/DCH_info.h: make inline definition of insertion operator of DCH_info class. This fixes 'multiple definition' compilation error when header is included more than once.
0278
0279 * 2024-11-04 Markus Frank ([PR#1347](https://github.com/aidasoft/DD4hep/pull/1347))
0280 - Remove plenty of override warnings from DDG4 compilation
0281 - Spotted by accidence when checking LHCb nightly builds.
0282
0283 * 2024-10-24 Andre Sailer ([PR#1342](https://github.com/aidasoft/DD4hep/pull/1342))
0284 - DDSim: add SignalHandler, add disableSignalHandler flag to turn it off (cf. #1330)
0285 - Examples: make RICH depend on DDG4 for the test
0286 - DDCad: make two tests depend on DDG4
0287
0288 * 2024-10-22 Markus Frank ([PR#1341](https://github.com/aidasoft/DD4hep/pull/1341))
0289 - Addendum to MR https://github.com/AIDASoft/DD4hep/pull/1300.
0290
0291 * 2024-10-21 Markus Frank ([PR#1339](https://github.com/aidasoft/DD4hep/pull/1339))
0292 - Addendum to MR https://github.com/AIDASoft/DD4hep/pull/1336 which fixes a compilation error on MACOS.
0293
0294 * 2024-10-21 Andre Sailer ([PR#1338](https://github.com/aidasoft/DD4hep/pull/1338))
0295 - CI: add macOS build again
0296
0297 * 2024-10-18 Andre Sailer ([PR#1337](https://github.com/aidasoft/DD4hep/pull/1337))
0298 - CMake: explicitly ask for ROOTEve component if it exists so we potentially find the non-builtin nlohmann_json
0299
0300 * 2024-10-18 Markus Frank ([PR#1336](https://github.com/aidasoft/DD4hep/pull/1336))
0301 Add implementation for signal handling.
0302 - The generic signal handler in DDCore may be used and specialized by applications as shon in the DDG4 package (see for details src/Geant4Kernel.h)
0303 - Use generic signal handler in DDG4 for controlled shutdown on CTRL-C.
0304 - Add test DDG4_SIGINT_handler in examples/DDG4
0305 to enable the signal handling use from python:
0306 ```
0307 geant4 = DDG4.Geant4(kernel, tracker='Geant4TrackerCombineAction')
0308 geant4.registerInterruptHandler()
0309 ```
0310 Please note: The signal handler must be explicitly installed. DDG4 is a library framework and does not intervene in actions which users possibly want to handle themselves! This mechanism looks simple enough that it should not be annoying.
0311 - This MR should implement [issue#1330](https://github.com/AIDASoft/DD4hep/issues/1330) and supposedly supersedes [PR#1300](https://github.com/AIDASoft/DD4hep/pull/1300)
0312
0313 * 2024-10-17 Andre Sailer ([PR#1334](https://github.com/aidasoft/DD4hep/pull/1334))
0314 - checkOverlaps: move from DDG4 to DDCore as this does not depend on Geant4, no impact on users
0315 - checkGeometry: move from DDG4 to DDCore as this does not depend on Geant4, no impact on users
0316 - CI: Key4hep: set CMAKE_INSTALL_LIBDIR=lib because Qt6 sets GNUInstallDir
0317
0318 * 2024-10-17 jmcarcell ([PR#1333](https://github.com/aidasoft/DD4hep/pull/1333))
0319 - Use `edm4hep::labels::CellIDEncoding` instead of "CellIDEncoding"
0320 - Use `podio::collMetadataParamName` instead of hardcoding the convention of adding `__`
0321
0322 * 2024-10-17 Andre Sailer ([PR#1332](https://github.com/aidasoft/DD4hep/pull/1332))
0323 - ImportTest: change 'error' to 'fehler' to avoid triggering test failures for spurious warning from gosam package in lcg stacks
0324
0325 * 2024-10-16 Andre Sailer ([PR#1331](https://github.com/aidasoft/DD4hep/pull/1331))
0326 - Conditions: change FIRST_KEY, LAST_KEY to constexpr instead of anonymous enum
0327
0328 * 2024-10-15 BrieucF ([PR#1329](https://github.com/aidasoft/DD4hep/pull/1329))
0329 - ddsim: Set `edm4hep` the default output format in case DD4hep is compiled with both `DDD4HEP_USE_LCIO` `DD4HEP_USE_EDM4HEP` ON
0330 - ddsim: Change the name of the default output file from dummyOutput to ddsimOutput
0331
0332 * 2024-10-15 Bohdan Dudar ([PR#1326](https://github.com/aidasoft/DD4hep/pull/1326))
0333 - Add xercesc parsing of environment variables in the xml path https://github.com/iLCSoft/Marlin/issues/60
0334
0335 * 2024-10-03 Dmitry Kalinkin ([PR#1327](https://github.com/aidasoft/DD4hep/pull/1327))
0336 * ASSIMPWriter: fix "warning: unqualified call to 'std::move'"
0337
0338 * 2024-09-19 Markus Frank ([PR#1324](https://github.com/aidasoft/DD4hep/pull/1324))
0339 Add warning if TGeo materialScan hits TGeoTessellated volumes.
0340
0341 The DDRec MaterialManager and hence the corresponding MaterialScan use TGeo tracking through volumes.
0342 Tracking in TGeo is not implemented for tessellated shapes as they result from CAD shapes. Though TGeo tracking is used
0343 in the material scanner.... In TGeo tessellated surfaces behave like their bounding box. Hence they have no real shape
0344 and for this reason you only see a "box".
0345 TGeo tracking for tessellated shapes will only be implemented once TGeo moves to VecGeom. This will still take some time.
0346
0347
0348 See github issue https://github.com/AIDASoft/DD4hep/issues/1322 for details about the discussion.
0349
0350 # v01-30
0351
0352 * 2024-08-25 Andre Sailer ([PR#1317](https://github.com/aidasoft/dd4hep/pull/1317))
0353 - 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
0354
0355 * 2024-08-15 Sanghyun Ko ([PR#1315](https://github.com/aidasoft/dd4hep/pull/1315))
0356 - DDSim: prevent Geometry.regexSensitiveDetector from always throwing exception when called with argument.
0357
0358 * 2024-08-13 Andre Sailer ([PR#1312](https://github.com/aidasoft/dd4hep/pull/1312))
0359 - GitlabCI: drop Flake check, since we have that on github as well
0360
0361 * 2024-08-12 Andre Sailer ([PR#1310](https://github.com/aidasoft/dd4hep/pull/1310))
0362 - GitlabCI: Use an el9 container to build documentation for the webpage
0363
0364 * 2024-08-12 Andre Sailer ([PR#1309](https://github.com/aidasoft/dd4hep/pull/1309))
0365 - CLICSiD AClick tests: avoid running in parallel, tests might break
0366
0367 * 2024-08-12 Andre Sailer ([PR#1308](https://github.com/aidasoft/dd4hep/pull/1308))
0368 - Geant4RegexSensitivesConstruction: allow using regex that don't match the full volume path, reduce time by 40% or so
0369 - DDSim: add interface for Geant4RegexSensitivesConstruction to geometry construction
0370
0371 * 2024-07-30 Leonhard Reichenbach ([PR#1303](https://github.com/aidasoft/dd4hep/pull/1303))
0372 - Added a Geant4TVUserParticleHandler that can utilise an arbitrary tracking volume as introduced in https://github.com/AIDASoft/DD4hep/pull/384
0373
0374 * 2024-07-24 ybedfer ([PR#1294](https://github.com/aidasoft/dd4hep/pull/1294))
0375 - Adding a "CylindricalGridPhiZ" segmentation class.
0376 - N.B.: the class has a "radius" data member, registered by the constructors.
0377
0378 * 2024-07-22 Markus Frank ([PR#1301](https://github.com/aidasoft/dd4hep/pull/1301))
0379 - 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.
0380
0381 * 2024-07-22 Andre Sailer ([PR#1299](https://github.com/aidasoft/dd4hep/pull/1299))
0382 - CI: use alma9 stack for python lint check
0383 - CI: move key4hep stack to alma9
0384
0385 * 2024-07-22 Sanghyun Ko ([PR#1298](https://github.com/aidasoft/dd4hep/pull/1298))
0386 - Geant4Converter: Improve lookup speed of `GeoHandler::i_collect` by using `std::set` instead of `std::find` (issue #1291)
0387
0388 * 2024-07-06 jmcarcell ([PR#1290](https://github.com/aidasoft/dd4hep/pull/1290))
0389 - Add the missing header unistd.h in a file to find `::open` and `::close`
0390 - Fix a few warnings about unused variables or shadowing
0391 - Add .cache and compile_commands.json to .gitignore
0392
0393 * 2024-07-05 Markus Frank ([PR#1289](https://github.com/aidasoft/dd4hep/pull/1289))
0394 * Add RegexSD example for illustration: See https://github.com/AIDASoft/DD4hep/pull/1288
0395
0396 * 2024-07-05 Markus Frank ([PR#1288](https://github.com/aidasoft/dd4hep/pull/1288))
0397 - 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.
0398 - 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.
0399 - To illustrate, an example detector `BoxOfStraws` was constructed with a flag in the xml description:
0400
0401 ```
0402 <detector id="1" name="BoxOfStrawsDet" type="DD4hep_BoxOfStraws" readout="BoxOfStrawsHits" vis="VisibleGreen" region="StrawRegion" limits="BoxOfStrawsLimitSet">
0403 <box x="1*m" y="1*m" z="1000*mm" limits="BoxOfStrawsLimitSet" vis="VisibleRed"/>
0404 <straw rmax="0.5*mm" y="1*m" thickness="0.1*mm" vis="VisibleBlue">
0405 <material name="Iron"/>
0406 </straw>
0407 <gas vis="VisibleGreen">
0408 <material name="Argon"/>
0409 <non_sensitive/>
0410 </gas>
0411 <position x="0*m" y="0*m" z="0*m"/>
0412 <rotation x="0" y="0" z="0"/>
0413 </detector>
0414 ```
0415
0416 Change `<non_sensitive/>` to `<sensitive/>` and the different behavor of memory allocation when starting Geant4 can be observed.
0417 The corresponding Geant4 python script can be found here:
0418
0419 ```
0420 <DD4hep>/examples/ClientTests/scripts/BoxOfStraws.py
0421 ```
0422
0423 The memory consumption differs then as follows (depending on the thickness of the straws, which determine the number of sensitive pathes):
0424
0425 ```
0426 With explicit sensitive volumes:
0427 before Geant4VolumeManager: Virtual: 903.3m resident: 690.5m
0428 after Geant4VolumeManager: Virtual: 1848.2m resident: 1.6g
0429
0430
0431 With Sensitives matching regex and not sensitive volumes declared:
0432 before Geant4VolumeManager: Virtual: 903.3m Resident: 690.6m
0433 after Geant4VolumeManager: Virtual: 903.3m Resident: 690.6m
0434 Simulating: Virtual: 903.5m Resident: 692.6m
0435 ```
0436
0437 Hence this is a possibility to significantly reduce memory consumption for highly granular subdetectors.
0438
0439 * 2024-07-01 Markus Frank ([PR#1287](https://github.com/aidasoft/dd4hep/pull/1287))
0440 - As noted by Ben, the global alignment does not work in the presence of assemblies.
0441 This PR together with https://github.com/root-project/root/pull/15905 fixes this deficiency.
0442 - An example was added to convert a globally misaligned geometry to Geant4:
0443 ` $ python examples/AlignDet/scripts/AlephTPC.py -batch -events 5 -alignments examples/AlignDet/compact/AlephTPC_alignment.xml`
0444
0445 * 2024-07-01 jmcarcell ([PR#1286](https://github.com/aidasoft/dd4hep/pull/1286))
0446 - Fix warnings related to unused variables and shadowing of already existing variables
0447 - Don't use the deprecated `PySys_SetArgv`
0448
0449 * 2024-06-26 Andre Sailer ([PR#1284](https://github.com/aidasoft/dd4hep/pull/1284))
0450 - DDG4.inputHandling: do not simulate rejectPDG particles even if they are called stable by the generator file, fixes #1282
0451
0452 * 2024-06-26 Andre Sailer ([PR#1283](https://github.com/aidasoft/dd4hep/pull/1283))
0453 - DDSim: Do not check for existence of files behind a URL like root://, fixes #1281
0454
0455 * 2024-06-24 jmcarcell ([PR#1280](https://github.com/aidasoft/dd4hep/pull/1280))
0456 - CMake: Allow finding version 1.0 (and newer) for podio
0457
0458 * 2024-06-21 Markus Frank ([PR#1279](https://github.com/aidasoft/dd4hep/pull/1279))
0459 - The conquest against tainted variables in coverity
0460
0461 * 2024-06-20 Markus Frank ([PR#1278](https://github.com/aidasoft/dd4hep/pull/1278))
0462 - Fight coverity tainted variables.
0463
0464 # v01-29
0465
0466 * 2024-06-06 Andre Sailer ([PR#1277](https://github.com/aidasoft/DD4hep/pull/1277))
0467 - Geant4Converter: fix the order of the TGeoNode conversion to Geant4 volumes, using vector instead of set. Maybe fixes #1271
0468
0469 * 2024-05-26 Andre Sailer ([PR#1276](https://github.com/aidasoft/DD4hep/pull/1276))
0470 - XMLElements: fix build when not using XercesC, failing to include header files
0471
0472 * 2024-05-23 Markus Frank ([PR#1275](https://github.com/aidasoft/DD4hep/pull/1275))
0473 - The battle agains coverity
0474 - The last defects I know how to solve. For the rest more expertise is required.
0475
0476 * 2024-05-23 MarkusFrankATcernch ([PR#1274](https://github.com/aidasoft/DD4hep/pull/1274))
0477 - Allow coverity scans being started manually
0478
0479 * 2024-05-23 Markus Frank ([PR#1272](https://github.com/aidasoft/DD4hep/pull/1272))
0480 - The battle agains coverity. Try to fix various defects.
0481
0482 * 2024-05-22 Markus Frank ([PR#1270](https://github.com/aidasoft/DD4hep/pull/1270))
0483 - The battle agains coverity: Attack and reduce coverity errors
0484
0485 * 2024-05-22 Markus Frank ([PR#1269](https://github.com/aidasoft/DD4hep/pull/1269))
0486 - Code maintenance: change quoted include statements to angular brackets in subpackage DDG4.
0487
0488 * 2024-05-22 Markus Frank ([PR#1268](https://github.com/aidasoft/DD4hep/pull/1268))
0489 Code maintenance:
0490 - change quoted include statements in DDCore to angular brackets
0491 - Add the odd licence statement
0492 - Remove obsolete file DD4hep/TGeoUnits.h: Take TGeoUnits from ROOT if needed.
0493 This file dates back to the time TGeoUnits.h did not exist in ROOT.
0494
0495 * 2024-05-21 Markus Frank ([PR#1267](https://github.com/aidasoft/DD4hep/pull/1267))
0496 - Try to eliminate more coverity code deficiencies
0497 (See https://scan.coverity.com/projects/dd4hep?tab=overview)
0498
0499 * 2024-05-16 Andre Sailer ([PR#1266](https://github.com/aidasoft/DD4hep/pull/1266))
0500 - DDSim: make setupUserFunction be documented in the steering file
0501 - Fix random typos in comments and doxygen strings
0502 - Geant4Handle: Fix error message when plugin casting did not succeed
0503
0504 * 2024-05-16 Markus Frank ([PR#1265](https://github.com/aidasoft/DD4hep/pull/1265))
0505 - Fix some coverity problems
0506
0507 * 2024-05-16 tmadlener ([PR#1264](https://github.com/aidasoft/DD4hep/pull/1264))
0508 - 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))
0509
0510 * 2024-05-16 Thomas Latham ([PR#1263](https://github.com/aidasoft/DD4hep/pull/1263))
0511 - Enhance handling of transformations in VolumeBuilder
0512
0513 * 2024-05-15 Markus Frank ([PR#1262](https://github.com/aidasoft/DD4hep/pull/1262))
0514 - Add optional instantiation of the G4ScoringManager together with the G4RunManager.
0515 The instantiation can be steered by option to the Geant4Kernel:
0516 ```
0517 import DDG4
0518 g4 = DDG4.Geant4()
0519 g4.kernel().HaveScoringManager = True
0520 ```
0521 For rational, please see issue: https://github.com/AIDASoft/DD4hep/issues/1261
0522
0523 * 2024-05-13 Alvaro Tolosa Delgado ([PR#1253](https://github.com/aidasoft/DD4hep/pull/1253))
0524 - 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.
0525
0526 * 2024-05-10 Andre Sailer ([PR#1260](https://github.com/aidasoft/DD4hep/pull/1260))
0527 - 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
0528 - DDG4: Geant4InputAction: move setting of generator status bits to a common place, reduce code duplication.
0529
0530 * 2024-05-07 Markus Frank ([PR#1259](https://github.com/aidasoft/DD4hep/pull/1259))
0531 - Protect Geant4 Primary creation against negative masses.
0532 - See issue https://github.com/AIDASoft/DD4hep/issues/1233 for a detailed discussion of the problem.
0533 - Allow shapes to be defined recursively using shape creation plugin.
0534 - Show how to properly use CAD shapes with a non-zero origin (Issue : https://github.com/AIDASoft/DD4hep/issues/1200)
0535 examples/DDCAD/compact/DD4hep_Issue_1134_resolved.xml
0536 Once the CAD shape (aka volume) is placed correctly into the origin of a mother mother, the mother can then be placed
0537 rotated and shifted according to the the boxed mother's origin like any other volume.
0538
0539 * 2024-05-07 Andre Sailer ([PR#1258](https://github.com/aidasoft/DD4hep/pull/1258))
0540 - DDSim: correct the number of events when running over all events (-1), fixes #1257
0541 - GenerationActionInit: declare properties to access number of processed runs (numberOfRuns) and events (numberOfEVents)
0542 - DDG4: decode or eval all properties out of str or cppyy.gbl.string types
0543
0544 * 2024-04-23 Andre Sailer ([PR#1255](https://github.com/aidasoft/DD4hep/pull/1255))
0545 - Geant4GFlashShowerModel: remove wrong unit conversions from particleBound properties. Caused particle bounds to be off by 1e3 when GEANT_UNITS were enabled.
0546
0547 * 2024-04-22 tmadlener ([PR#1252](https://github.com/aidasoft/DD4hep/pull/1252))
0548 - 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.
0549 - Geant4Output2EDM4hep: Switch to a non-deprecated setter for setting the MCParticle for a SimTrackerHit once EDM4hep ships with it.
0550
0551 * 2024-04-19 Andre Sailer ([PR#1254](https://github.com/aidasoft/DD4hep/pull/1254))
0552 - CMake: drop possible use of ROOT::PyROOT target, always use ROOT::ROOTTPython
0553 - Python: remove the use of (dd)six, fix issues pointed out by new version of flake8
0554
0555 * 2024-04-18 Andre Sailer ([PR#1242](https://github.com/aidasoft/DD4hep/pull/1242))
0556 - CI: change which LCG_releases/ROOT versions DD4hep is tested.
0557 - Fix various issues with latest version of ROOT (6-32-patches, master) and cppyy in ROOT.
0558 - :warning: : You may encounter issues with python setup complaining about mismatched types, strings, conversions
0559
0560 * 2024-04-04 Andre Sailer ([PR#1251](https://github.com/aidasoft/DD4hep/pull/1251))
0561 - EDM4hepOutput: determine momentum vector type automagically. Make it work with any EDM4hep version correctly, fixes #1250
0562
0563 * 2024-04-02 Andre Sailer ([PR#1248](https://github.com/aidasoft/DD4hep/pull/1248))
0564 - ddsim now exits with non-zero exit code when something went wrong during simulation
0565
0566 * 2024-04-02 Wouter Deconinck ([PR#1245](https://github.com/aidasoft/DD4hep/pull/1245))
0567 - fix adding individual planes to existing Polycone
0568
0569 * 2024-03-26 Andre Sailer ([PR#1247](https://github.com/aidasoft/DD4hep/pull/1247))
0570 - DDSim: add checks that input files and compact files exist before doing anything extensive and provide proper error message. Fixes #1246
0571
0572 * 2024-03-21 Markus Frank ([PR#1244](https://github.com/aidasoft/DD4hep/pull/1244))
0573 * 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'
0574
0575 * 2024-03-20 Alvaro Tolosa Delgado ([PR#1243](https://github.com/aidasoft/DD4hep/pull/1243))
0576 - Fixed TwistedTube when only half-length is provided, making the tube is symmetric along Z axis
0577
0578 * 2024-03-13 Andre Sailer ([PR#1241](https://github.com/aidasoft/DD4hep/pull/1241))
0579 - 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
0580 - CMake: dd4hep_add_dictionary: remove duplicates from definition and include_directory options when calling rootcling
0581
0582 * 2024-02-29 Markus Frank ([PR#1238](https://github.com/aidasoft/DD4hep/pull/1238))
0583 - Adapt documentation for Tube(...) constructor to reality.
0584 See issue https://github.com/AIDASoft/DD4hep/issues/1236
0585
0586 # v01-28
0587
0588 * 2024-02-19 Markus Frank ([PR#1228](https://github.com/aidasoft/dd4hep/pull/1228))
0589 - Fix DD4hep_DetectorDump plugin to avoid crash if a DetElement placement is invalid,
0590 which is not allowed, but also should not end up in a crash.
0591 - Add test to check if DetElements have proper placement set using MiniTel example
0592 (see examples/ClientTests/compact/MiniTel_err_place.xml) and
0593 test MiniTel_check_missing_placements
0594 - The fake DD4hep object TwistedTube did not correctly emulate the different constructors when converted
0595 to Geant4. This should be fixed with this PR.
0596
0597 * 2024-02-16 Andre Sailer ([PR#1231](https://github.com/aidasoft/dd4hep/pull/1231))
0598 - CMake: use the LCIO::lcio target instead of LCIO::LCIO
0599
0600 * 2024-02-15 Andre Sailer ([PR#1230](https://github.com/aidasoft/dd4hep/pull/1230))
0601 - XML: add missing std:: when building with TinyXML
0602 - DetectorSurfaces: silence printout when creating SurfaceList, fixes #1229
0603
0604 * 2024-02-13 Wouter Deconinck ([PR#1225](https://github.com/aidasoft/dd4hep/pull/1225))
0605 - upgrade CI to checkout@v4, cvmfs@v4, upload-artifact@v4
0606
0607 * 2024-02-12 Alvaro Tolosa Delgado ([PR#1227](https://github.com/aidasoft/dd4hep/pull/1227))
0608 - Twisted tube: twisted angle unit conversion now works properly
0609
0610 * 2024-02-12 Markus Frank ([PR#1226](https://github.com/aidasoft/dd4hep/pull/1226))
0611 Multiple commits. Most important one (on user request):
0612 - Implement CONST properties to optical sufaces. (Requires new release of ROOT)
0613 See issue: https://github.com/AIDASoft/DD4hep/issues/1223
0614
0615 Otherwise:
0616 - Remove support for very old versions of ROOT < 6.10.0
0617 - Remove support for very old versions of ROOT < 6.26.0.
0618 - Remove default use of std namespace from most implementation files.
0619
0620 * 2024-02-12 Wouter Deconinck ([PR#1218](https://github.com/aidasoft/dd4hep/pull/1218))
0621 - add command line options to pass stepping (etc) action plugins to ddsim
0622
0623 * 2024-02-08 tmadlener ([PR#1219](https://github.com/aidasoft/dd4hep/pull/1219))
0624 - Make the upcoming renaming of `edm4hep::TrackerHit` to `edm4hep::TrackerHit3D` (https://github.com/key4hep/EDM4hep/pull/252) transparent as far as DD4hep is concerned.
0625
0626 * 2024-02-07 jmcarcell ([PR#1221](https://github.com/aidasoft/dd4hep/pull/1221))
0627 - Change ROOTFrame{Writer,Reader} to ROOT{Writer,Reader} following https://github.com/AIDASoft/podio/pull/549
0628
0629 * 2024-02-02 tmadlener ([PR#1198](https://github.com/aidasoft/dd4hep/pull/1198))
0630 - Set the momenta of the `edm4hep::MCParticle` as double instead of float once it becomes possible.
0631
0632 * 2024-01-18 Markus Frank ([PR#1217](https://github.com/aidasoft/dd4hep/pull/1217))
0633 - Enable energy deposit collection in FiberTubeCalorimeter example.
0634
0635 * 2024-01-18 Markus Frank ([PR#1216](https://github.com/aidasoft/dd4hep/pull/1216))
0636 - Update FiberTubeCalorimeter example
0637 - Fix overlapping volumes
0638
0639 * 2024-01-17 Markus Frank ([PR#1215](https://github.com/aidasoft/dd4hep/pull/1215))
0640 - Fix creation of tessellated shapes from CAD files.
0641 - Properly hand quadri-linear facets from CAD files.
0642 - See also: https://github.com/root-project/root/pull/14327
0643 - See also: https://github.com/AIDASoft/DD4hep/pull/1212
0644
0645 * 2024-01-16 Markus Frank ([PR#1214](https://github.com/aidasoft/dd4hep/pull/1214))
0646 - Fix to MR https://github.com/AIDASoft/DD4hep/pull/1212
0647
0648 * 2024-01-15 Markus Frank ([PR#1213](https://github.com/aidasoft/dd4hep/pull/1213))
0649 - Adapt material scan to be aware of the different compilation modes for TGeo units and Geant4 units.
0650 See also issue https://github.com/AIDASoft/DD4hep/issues/1163.
0651
0652 * 2024-01-15 Andre Sailer ([PR#1212](https://github.com/aidasoft/dd4hep/pull/1212))
0653 - Assimp: adapt to changes in TGeoTessellated for ROOT 6.32
0654 - ShapeUtilities: adapt to changes in TGeoTessellated for ROOT 6.32
0655
0656 * 2024-01-12 Markus Frank ([PR#1211](https://github.com/aidasoft/dd4hep/pull/1211))
0657 - Implement required chnges for new ROOT 6.31.X.
0658 See issue https://github.com/AIDASoft/DD4hep/issues/1210 for details.
0659
0660 * 2024-01-08 Markus Frank ([PR#1209](https://github.com/aidasoft/dd4hep/pull/1209))
0661 - Restore behavior of teveDisplay. See issue https://github.com/AIDASoft/DD4hep/issues/1208 for details.
0662
0663 * 2023-12-19 Andre Sailer ([PR#1206](https://github.com/aidasoft/dd4hep/pull/1206))
0664 - CI: Coverity: use el9 based stack
0665
0666 # v01-27-02
0667
0668 * 2023-12-15 Andre Sailer ([PR#1205](https://github.com/aidasoft/dd4hep/pull/1205))
0669 - Geant4PrimaryHandling: fix issue with multiple vertices in Geant4 GeneralParticleSource, fixes #1204
0670
0671 * 2023-12-14 Markus Frank ([PR#1201](https://github.com/aidasoft/dd4hep/pull/1201))
0672 - Incorporate type fix from https://github.com/AIDASoft/DD4hep/pull/1172
0673 - Propagate polish setting from ROOT surfaces to Geant4
0674 - Improve debugging capabilities of detector checksums by improved dumping possibilities.
0675
0676 * 2023-12-14 Andre Sailer ([PR#1196](https://github.com/aidasoft/dd4hep/pull/1196))
0677 - NestedBoxReflection_geo.cpp: use std::abs instead of abs
0678 - HexGrid: use std::abs instead of abs
0679 - DDSim: better logging of which sensitive detector is used when defaults are used
0680
0681 * 2023-12-14 Paul Gessinger ([PR#1195](https://github.com/aidasoft/dd4hep/pull/1195))
0682 - Replace usage of the `imp` module that was removed in Python 3.12 with `importlib` and `types`.
0683
0684 * 2023-11-24 Andre Sailer ([PR#1192](https://github.com/aidasoft/dd4hep/pull/1192))
0685 - DetectorChecksum: use fabs to check if values are 0.0, fixes #1188
0686
0687 # v01-27-01
0688
0689 * 2023-11-20 jmcarcell ([PR#1191](https://github.com/aidasoft/DD4hep/pull/1191))
0690 - CMake: Add a check for the c++ standard that Geant4 was compiled with, and fail if it is
0691 different from the one required for DD4hep.
0692
0693 * 2023-11-19 Wouter Deconinck ([PR#1190](https://github.com/aidasoft/DD4hep/pull/1190))
0694 - Use TROOT::GetIconPath to find icons in DDEve
0695
0696 * 2023-11-17 Markus Frank ([PR#1187](https://github.com/aidasoft/DD4hep/pull/1187))
0697 - Implement startup flags to set the visualization depth in teveDisplay like for geoDisplay.
0698 See Issue: See deeper hierarchy in teveDisplay https://github.com/AIDASoft/DD4hep/issues/1186 for details.
0699
0700 * 2023-11-17 Dmitry Kalinkin ([PR#1184](https://github.com/aidasoft/DD4hep/pull/1184))
0701 - Fixed runtime issues during initialization caused by incorrectly placed `DECLARE_SEGMENTATION` for CartesianGridXYStaggered and HexGrid.
0702
0703 # v01-27
0704
0705 * 2023-10-19 Alvaro Tolosa Delgado ([PR#1174](https://github.com/aidasoft/dd4hep/pull/1174))
0706 - Geant4OpticalTracker: Kill optical photons (instead of all other particles) as soon they enter into a Optical Tracker sensitive detector
0707
0708 * 2023-10-19 Wouter Deconinck ([PR#1148](https://github.com/aidasoft/dd4hep/pull/1148))
0709 - Allow several DDRec c'tors to work on `const Detector&` instead of `Detector&`
0710
0711 * 2023-10-18 Markus Frank ([PR#1181](https://github.com/aidasoft/dd4hep/pull/1181))
0712 Allow for XML processing of files relative to xml tag location:
0713 - For some tags the relative placement of include files was not possible.
0714 This pull request is supposed to close these missing include features.
0715 - See issue https://github.com/AIDASoft/DD4hep/issues/1180 for details)
0716 - See the examples ClientTests: minitel_config_plugins_include_command_xml
0717 with the compact file ClientTests/compact/IncludePlugins.xml for an example.
0718
0719 * 2023-10-17 Alvaro Tolosa Delgado ([PR#1179](https://github.com/aidasoft/dd4hep/pull/1179))
0720 - DDSim: Corrected documentation of `--gun.energy`. This corresponds to the total energy including the mass of the particle
0721
0722 * 2023-10-11 Andre Sailer ([PR#1176](https://github.com/aidasoft/dd4hep/pull/1176))
0723 - DDG4: G4VTouchable: for Geant4 11.1.ref09 cannot forward declare the class any more
0724
0725 * 2023-10-11 Markus Frank ([PR#1175](https://github.com/aidasoft/dd4hep/pull/1175))
0726 - Handle request from issue 1166: Allow to load CAD files with relative path w/r to declaring xml file
0727 - Add illustrating example: t_DDCAD_Check_Shape_RelativePath
0728
0729 * 2023-09-20 Dhevan Gangadharan ([PR#1170](https://github.com/aidasoft/dd4hep/pull/1170))
0730 - Extend usage of dumpBfield to asymmetric X,Y,Z ranges.
0731
0732 * 2023-09-20 Sebouh Paul ([PR#1161](https://github.com/aidasoft/dd4hep/pull/1161))
0733 - DDSegmentation: added segmentation HexGrid for hexagonal segmentation
0734 - DDSegmentation: added CartesionGridXYStaggered for rectangular segmentation that can be staggered for every other layer
0735
0736 * 2023-09-19 Dmitry Kalinkin ([PR#1171](https://github.com/aidasoft/dd4hep/pull/1171))
0737
0738
0739 * 2023-09-15 jmcarcell ([PR#1169](https://github.com/aidasoft/dd4hep/pull/1169))
0740 - CMake: DDG4: Check if the CLHEP target exists before creating it in DD4hepBuild.cmake, since if it exists cmake will error.
0741
0742 * 2023-09-15 Wouter Deconinck ([PR#1168](https://github.com/aidasoft/dd4hep/pull/1168))
0743 - ddsim: handle run header exception when the user has no username.
0744
0745 * 2023-08-31 Dmitry Kalinkin ([PR#1165](https://github.com/aidasoft/dd4hep/pull/1165))
0746 - DDG4: HepMC3Input: Fix loading of run info for RootTree HepMC3 input format
0747
0748 * 2023-08-25 Andre Sailer ([PR#1162](https://github.com/aidasoft/dd4hep/pull/1162))
0749 - DDEve Webdisplay: fix issue with ROOT master with RGeomViewer no longer being in the experimental namespace.
0750
0751 * 2023-08-24 Andre Sailer ([PR#1160](https://github.com/aidasoft/dd4hep/pull/1160))
0752 - SiliconBlockGFlash: add maximal energy for using parametrisation, for electron and positron, fixes #1153
0753
0754 * 2023-08-24 Markus Frank ([PR#1155](https://github.com/aidasoft/dd4hep/pull/1155))
0755 - Implement correct transparency handling of ROOT:
0756 The transparency setting was connected to the material of the volume.
0757 This led to the same transparency setting for all volumes of the same material.
0758 It was not possible to change them at the level of the volume though
0759 the API suggested so.
0760 See: https://github.com/AIDASoft/DD4hep/issues/1117
0761 See: https://github.com/root-project/root/pull/13402
0762 - Add test examples/ClientTests/compact/visTestEx.xml and visTest.xml.
0763 From the inversion of tubes with the same material, for ROOT >= 6.29
0764 the correct transparency settings are shown, whereas for ROOT < 6.29
0765 the transparency settings are the same for all volumes.
0766 Also see scripts/visTest.C
0767
0768 * 2023-08-23 Ben Couturier ([PR#1159](https://github.com/aidasoft/dd4hep/pull/1159))
0769 - Improved _getEnviron to deal with the case when multiple variables are to be evaluated in the string
0770
0771 * 2023-08-22 Dmitry Kalinkin ([PR#1158](https://github.com/aidasoft/dd4hep/pull/1158))
0772 - DDSim: Fix reading HepMC3 input files via xrootd, fixes #1156
0773
0774 * 2023-08-22 Wouter Deconinck ([PR#1157](https://github.com/aidasoft/dd4hep/pull/1157))
0775 - Geant4Output2EDM4hep: allow use of identical collection names across multiple detectors
0776
0777 * 2023-08-04 Andre Sailer ([PR#1152](https://github.com/aidasoft/dd4hep/pull/1152))
0778 - CI: use clang16 for header guards check
0779
0780 * 2023-08-04 jmcarcell ([PR#1151](https://github.com/aidasoft/dd4hep/pull/1151))
0781 - Limits object: fix string creation of Limit::toString, this will now also print the relevant "particles"
0782 - Shapes: remove "move" from return of dimensions()
0783
0784 # v01-26
0785
0786 * 2023-07-24 Andre Sailer ([PR#1147](https://github.com/aidasoft/DD4hep/pull/1147))
0787 - Add reading of HepMC3 run info and forwarding it to output files: fixes #1114. Reliably this will only work for HepMC3 >= 3.2.6.
0788
0789 * 2023-07-18 Markus Frank ([PR#1146](https://github.com/aidasoft/DD4hep/pull/1146))
0790 - By default do not keep hash string for detector checksum to minimize resource usage.
0791 As pointed out in Issue https://github.com/AIDASoft/DD4hep/issues/1143 keeping the hash string of detector
0792 components is very often too resource/memory consuming. Hence keep the hashed strings only if requested
0793 e.g. for debugging purposes. By default the hash strings are not kept.
0794 This means the produces hash sums are NOT backwards compatible, because during the checksum creation the
0795 hash strings from sub-components were used. These are now consequently replaced by the corresponding hash codes.
0796
0797 * 2023-07-18 Andre Sailer ([PR#1145](https://github.com/aidasoft/DD4hep/pull/1145))
0798 - DDSim: ConfigHelper: prevent using unknown properties everywhere but in Meta, where we want to allow adding arbitrary information, fixes #1072
0799
0800 * 2023-07-17 Andre Sailer ([PR#1144](https://github.com/aidasoft/DD4hep/pull/1144))
0801 - DDSim: change the default output file name on how DD4hep was built. Fixes #1101
0802 - Add outputConfig.forceLCIO, outputConfig.forceEDM4HEP, outputConfig.forceDD4HEP switches to force a particular output plugin
0803 - If LCIO was used, slcio is still the default
0804 - If EDM4hep was used but not LCIO, EDM4hep is the default and used for all root output files.
0805 - 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
0806
0807 - DDSim: remove python2 legacy shims
0808 - Geant4UIManager: fail when pre or post run commands are not successfully executed.
0809
0810 * 2023-07-14 Andre Sailer ([PR#1142](https://github.com/aidasoft/DD4hep/pull/1142))
0811 - DDSim: add the possibility to configure execution of Geant4 UI commands during the different Geant4 UI phases (fixes #1010)
0812
0813 * 2023-07-13 Wouter Deconinck ([PR#1141](https://github.com/aidasoft/DD4hep/pull/1141))
0814 - Support TGeoTessellated volumes in DetectorChecksum
0815
0816 * 2023-07-13 tmadlener ([PR#1140](https://github.com/aidasoft/DD4hep/pull/1140))
0817 - 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.
0818
0819 * 2023-06-24 Markus Frank ([PR#1139](https://github.com/aidasoft/DD4hep/pull/1139))
0820 - Add test for issue #1134
0821
0822 * 2023-06-23 tmadlener ([PR#1138](https://github.com/aidasoft/DD4hep/pull/1138))
0823 - Make the default return value of `DetElementCreator::process` non-zero to avoid erroneously raising an exception after finishing.
0824 - Add a test case that checks that things work
0825
0826 * 2023-06-22 Markus Frank ([PR#1136](https://github.com/aidasoft/DD4hep/pull/1136))
0827 - Adds missing parts to: https://github.com/AIDASoft/DD4hep/pull/1135
0828 - Enable CLICSiD GDML exports and import tests and fix the broken import test.
0829
0830 * 2023-06-22 Andre Sailer ([PR#1133](https://github.com/aidasoft/DD4hep/pull/1133))
0831 - DDSim: OutputConfig: correct the example to be valid python in all cases.
0832
0833 * 2023-06-21 tmadlener ([PR#1132](https://github.com/aidasoft/DD4hep/pull/1132))
0834 - Add conversion from of `TGeoPara` to `G4Para`
0835
0836 * 2023-06-16 Markus Frank ([PR#1131](https://github.com/aidasoft/DD4hep/pull/1131))
0837 - Fix compile error on MacOS
0838 See issue https://github.com/AIDASoft/DD4hep/issues/1130
0839
0840 * 2023-06-14 Wouter Deconinck ([PR#1129](https://github.com/aidasoft/DD4hep/pull/1129))
0841 - fix: exit(0) when --dumpParameter/dumpSteeringFile
0842
0843 * 2023-06-13 Markus Frank ([PR#1128](https://github.com/aidasoft/DD4hep/pull/1128))
0844 - Move DDDigi edm4hep I/O to new frame writing.
0845 - Improve DDG4 edm4hep I/O (remove debug statements)
0846 - Protect DDDigi edm4hep output against races
0847 - Fix some compiler warnings
0848
0849 * 2023-06-12 Wouter Deconinck ([PR#1108](https://github.com/aidasoft/DD4hep/pull/1108))
0850 - Delay writing EDM4hep collections until `commit` at end of event, allowing for multiple collections with same name
0851
0852 * 2023-06-09 Markus Frank ([PR#1125](https://github.com/aidasoft/DD4hep/pull/1125))
0853 - Define the CellID and the VolumeID data types of segmentations as uint64_t rather than signed integers.
0854 Reasoning: Please see issue: 1090 (https://github.com/AIDASoft/DD4hep/issues/1090)
0855
0856 * 2023-06-09 tmadlener ([PR#1113](https://github.com/aidasoft/DD4hep/pull/1113))
0857 - Remove the copy&past `DigiFrame.h` and use the upstream `podio/Frame.h` as all functionality is available from there.
0858 - Increase the minimum podio version to 0.16.3
0859
0860 * 2023-06-09 tmadlener ([PR#1112](https://github.com/aidasoft/DD4hep/pull/1112))
0861 - Use the templated `getMap` access functionality for `podio::GenericParameters` as the non-templated versions will be removed.
0862
0863 * 2023-06-08 Markus Frank ([PR#1126](https://github.com/aidasoft/DD4hep/pull/1126))
0864 - Allow to user-set world material in compact description:
0865 ```
0866 <world material="Steel235">
0867 </world>
0868 ```
0869 See issue https://github.com/AIDASoft/DD4hep/issues/1116 for details.
0870 - Add test t_minitel_config_world_material illustrating the feature.
0871
0872 * 2023-06-02 tmadlener ([PR#1124](https://github.com/aidasoft/DD4hep/pull/1124))
0873 - DDDigi: Make the `get{Value,}TypeName` calls work with the upcoming switch to `std::string_view` return types in podio.
0874
0875 * 2023-06-01 Andre Sailer ([PR#1123](https://github.com/aidasoft/DD4hep/pull/1123))
0876 - Volumes.h: rearrange implementation of classes, fix needed for gcc13/root 6.28/04, c++20
0877
0878 * 2023-06-01 Juraj Smiesko ([PR#1122](https://github.com/aidasoft/DD4hep/pull/1122))
0879 - ddsim: fix indentation from steeringfile produced by `ddsim --dumpSteeringFile`
0880
0881 * 2023-06-01 Dmitry Kalinkin ([PR#1089](https://github.com/aidasoft/DD4hep/pull/1089))
0882 - 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
0883
0884 * 2023-05-31 Markus Frank ([PR#1120](https://github.com/aidasoft/DD4hep/pull/1120))
0885 - Fix example arguments
0886
0887 * 2023-05-31 Dmitry Kalinkin ([PR#1106](https://github.com/aidasoft/DD4hep/pull/1106))
0888 - DetectorImp::getRefChild() will no longer print to error context to std::cout, it will instead appear in the message of the runtime_exception thrown.
0889
0890 * 2023-05-30 Markus Frank ([PR#1119](https://github.com/aidasoft/DD4hep/pull/1119))
0891 - Disable DDCMS Geant4 example to resolve MR chain
0892
0893 * 2023-05-30 Paul Gessinger ([PR#1109](https://github.com/aidasoft/DD4hep/pull/1109))
0894 - Remove `using namespace std;` in `Printout.cpp`
0895
0896 * 2023-05-30 Andre Sailer ([PR#1100](https://github.com/aidasoft/DD4hep/pull/1100))
0897 - CMake: increase required version of Cmake from 3.12 to 3.14
0898
0899 * 2023-05-30 Markus Frank ([PR#1098](https://github.com/aidasoft/DD4hep/pull/1098))
0900 - MiniTel Generate example should replect the detector in issue (https://github.com/AIDASoft/DD4hep/issues/1091)
0901
0902 * 2023-05-04 Wouter Deconinck ([PR#1105](https://github.com/aidasoft/DD4hep/pull/1105))
0903 - allow rotation/position transformation on entire CAD_MultiVolume
0904
0905 * 2023-04-26 Andre Sailer ([PR#1099](https://github.com/aidasoft/DD4hep/pull/1099))
0906 - thisdd4hep.sh: make the Geant4 path discovery compatible with Geant4 11.1.1
0907
0908 * 2023-04-25 Andre Sailer ([PR#1097](https://github.com/aidasoft/DD4hep/pull/1097))
0909 - 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.
0910
0911 * 2023-04-21 scott snyder ([PR#1093](https://github.com/aidasoft/DD4hep/pull/1093))
0912 - ddsim: Fix handling of --meta.runNumberOffset and --meta.eventNumberOffset command-line switches.
0913
0914 * 2023-04-21 Frank Gaede ([PR#1088](https://github.com/aidasoft/DD4hep/pull/1088))
0915 - fix units in `Geant4FastSimShowerModel::constructSensitives`
0916 - used for energy check in `Geant4FastSimShowerModel::check_trigger` for fast simulation
0917
0918 * 2023-04-21 Andre Sailer ([PR#1074](https://github.com/aidasoft/DD4hep/pull/1074))
0919 - 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
0920
0921 * 2023-03-31 Markus Frank ([PR#1087](https://github.com/aidasoft/DD4hep/pull/1087))
0922 - Improve plugin information
0923 - inline in StandardPlugins.cpp and ShapePlugins.cpp
0924 - In DD4hep manual
0925
0926 * 2023-03-30 Andre Sailer ([PR#1086](https://github.com/aidasoft/DD4hep/pull/1086))
0927 - HepMC3: use all vertex information to create primary vertices, including time, fixes #1082
0928
0929 * 2023-03-29 Markus Frank ([PR#1084](https://github.com/aidasoft/DD4hep/pull/1084))
0930 - Upgrade standard plugins. Add some help information
0931
0932 * 2023-03-29 Markus Frank ([PR#1083](https://github.com/aidasoft/DD4hep/pull/1083))
0933 - Add plugin to assign VolumIDs to DetElements
0934 Normally this functionality id done by the VolumeManager. However, some clients prefer to not use the volume manager.
0935 With this plugin this basic functionality can be maintained.
0936 - Update plugin DD4hep_DetectorDump to optionally output the accumulated volume identifiers when traversing
0937 the DetElement tree.
0938
0939 To test both, invoke e.g.:
0940 ```
0941 $> geoPluginRun -input ../DD4hep/DDDetectors/compact/SiD.xml \
0942 -plugin DD4hep_DetElementVolumeIDs -detector /world \
0943 -plugin DD4hep_DetectorDump -sensitive -volids
0944 ```
0945
0946 * 2023-03-23 Markus Frank ([PR#1081](https://github.com/aidasoft/DD4hep/pull/1081))
0947 Allow users to add track user information to G4 tracks, which then moves to Geant4Particle for saving
0948 Use class Geant4ParticleInformation to extend the Geant4Particle object.
0949 Wrapper to store any user information as a `G4VUserTrackInformation` in a `G4Track`.
0950 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`.
0951 Hence: Be careful to not assign the entity by default!
0952
0953 The data in the subclass of `ParticleExtension` defined by the user
0954 requires a dictionary to be stored to ROOT.
0955
0956 - Example: examples/DDG4_MySensDet. See examples/DDG4_MySensDet/src/MyTrackerSDAction.cpp for details.
0957 - Great thanks to ROOT for now being able to store std::unique_ptr<T>!
0958 - This is sort of a sub-issue to https://github.com/AIDASoft/DD4hep/issues/1073
0959
0960 * 2023-03-23 Christopher Dilks ([PR#1069](https://github.com/aidasoft/DD4hep/pull/1069))
0961 - rename `OpticalTracker` example to `RICH`
0962
0963 * 2023-03-22 Markus Frank ([PR#1080](https://github.com/aidasoft/DD4hep/pull/1080))
0964 - Fix bug in B field component access after a space transformation of multipole fields.
0965 See issue MultipoleMagnet rotation #1073 https://github.com/AIDASoft/DD4hep/issues/1073 for details.
0966
0967 * 2023-03-22 Markus Frank ([PR#1079](https://github.com/aidasoft/DD4hep/pull/1079))
0968 - Optimize sensitive detector callbacks in DDG4.
0969 Many operations were performed twice: once in the sensitive detector, and once again in the computation of
0970 the MC contribution to the hit. This MR removes multiple computations and uses the results from the MC
0971 contribution to create the hit.
0972 The change should be fully compatible and delivers numerically identical results.
0973
0974 - Remove deprecated DetElement factories.
0975 To not clutter the global namespace with factory names, factories in the DDDetectors area were declared
0976 deprecated many years ago. At a time these factories were replaced by identical factoris with a name prefix "DD4hep_".
0977 These factories are "official" and should be used instead.
0978 On creation such factories issued a warning message.
0979 It is now time to remove these factories completely.
0980
0981 * 2023-03-21 Christopher Dilks ([PR#1065](https://github.com/aidasoft/DD4hep/pull/1065))
0982 - Add test for average energy deposition in `OpticalTracker` example, for `Geant4SensitiveAction<Geant4OpticalTracker>`
0983
0984 * 2023-03-15 Markus Frank ([PR#1078](https://github.com/aidasoft/DD4hep/pull/1078))
0985 - See issue 1076 https://github.com/AIDASoft/DD4hep/issues/1076
0986
0987 * 2023-03-15 Wouter Deconinck ([PR#1075](https://github.com/aidasoft/DD4hep/pull/1075))
0988 - ddsim: Support for setting etaMin and etaMax. These override the respective theta settings!
0989
0990 * 2023-03-03 Markus Frank ([PR#1071](https://github.com/aidasoft/DD4hep/pull/1071))
0991 - Verify and enhance the possibility to import plugin definitions from an external XML file
0992 (See isue: https://github.com/AIDASoft/DD4hep/issues/1062).
0993 The corresponding examples are:
0994 -- minitel_config_plugins_include_command_line, which shows how to perform the task by parsing sequentially the
0995 XML input files like:
0996 ```
0997 $> geoPluginRun -input <path>/compact/MiniTel.xml -input <path>/compact/ExamplePlugins.xml
0998 ```
0999 -- minitel_config_plugins_include_command_xml, where the second XML file is simply included:
1000
1001 <includes>
1002 <file ref=<path>/examples/ClientTests/compact/BoxTrafos.xml/>
1003 <file ref=<path>/examples/ClientTests/compact/ExamplePlugins.xml/>
1004 </includes>
1005 where `BoxTrafos` is the entire original XML containing the geometry.
1006 - Add plugins: configure Volume/SensitiveDetector object instances from information in XML Nodes. Given an XML tag like:
1007 ```
1008 <plugin type="config" name="DD4hep_DetElementConfig" path="/world" debug="true">
1009 <volume>
1010 <regionref name="world_region"/>
1011 <limitsetref name="world_limits"/>
1012 <visref name="world_vis"/>
1013 </volume>
1014 </plugin>```
1015 Can be used directly to modify the settings of s DetElement identified by its path. Similar for sensitive detector objects:
1016 ```
1017 <plugin type="config" name="DD4hep_SensitiveDetectorConfig" detector="MyLHCBdetector5" debug="true">
1018 <combine_hits value="true"/>
1019 <verbose value="true"/>
1020 <type value="tracker"/>
1021 <ecut value="5*keV"/>
1022 <hits_collection value="hits_collection_5"/>
1023 </plugin>
1024 ```
1025 - This construct also allows to configure the world volume as part of the resolution of issue https://github.com/AIDASoft/DD4hep/issues/1064
1026 ```
1027 <world debug="true">
1028 <regionref name="world_region"/>
1029 <limitsetref name="world_limits"/>
1030 <visref name="world_vis"/>
1031 </world>
1032 ```
1033 Technically the implementation are XML utilities, which are used both by the plugin and the Compact converter.
1034
1035 - 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)
1036 - Side product: Add debug flags for the G4 LimitSet conversion. To enable the flags in the python setup:
1037
1038 ```
1039 seq, act = m.geant4.addDetectorConstruction("Geant4DetectorGeometryConstruction/ConstructGeo")
1040 act.DebugLimits = True
1041 ```
1042 - Have the maps in DetectorData being named to ease debugging.
1043 - Add some XML attribute conversions (more user friendliness)
1044 - Add accessors to the PlacedVolume and the Volume handles to access the class name of the implementing class.
1045 - DDDigi: Add passing event parameters to the output and from the input record to the store. Needs testing though,
1046 but this requires a new release of podio.
1047
1048 * 2023-03-02 Markus Frank ([PR#1070](https://github.com/aidasoft/DD4hep/pull/1070))
1049 - PR 1068 was incomplete (OpticalTracker). Add the missing pieces.
1050
1051 * 2023-03-01 Christopher Dilks ([PR#1068](https://github.com/aidasoft/DD4hep/pull/1068))
1052 - fix: fill energy deposition for `Geant4SensitiveAction<Geant4OpticalTracker>`
1053
1054 * 2023-03-01 Markus Frank ([PR#1066](https://github.com/aidasoft/DD4hep/pull/1066))
1055 - Add include directive in <plugins> section
1056 (https://github.com/AIDASoft/DD4hep/commit/43b66bfd145c9e58c91f2189c2a3671ef9b2ef8e)
1057 See Issue 1062 (https://github.com/AIDASoft/DD4hep/issues/1062)
1058 - With test: /examples/ClientTests/compact/IncludePlugins.xml
1059 - Some (mostly cosmetic) refactorization in DDDigi
1060
1061 # v01-25-01
1062
1063 * 2023-02-24 Andre Sailer ([PR#1063](https://github.com/aidasoft/dd4hep/pull/1063))
1064 * DDG4: fix -Wnon-pod-varargs in Geant4Output2EDM4hep, which fails on clang
1065
1066 # v01-25
1067
1068 * 2023-02-23 Thomas Madlener ([PR#1059](https://github.com/aidasoft/dd4hep/pull/1059))
1069 - Propagate HepMC event weights to EDM4hep and LCIO outputs of ddsim
1070 - 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`.
1071 - Add a possibility to store `double` values in `DDG4::EventParameters`
1072
1073 * 2023-02-23 Andre Sailer ([PR#920](https://github.com/aidasoft/dd4hep/pull/920))
1074 - 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
1075 - DDSim: Catch and log exceptions for physics/userFunctions.
1076
1077 * 2023-02-21 Ben Couturier ([PR#1060](https://github.com/aidasoft/dd4hep/pull/1060))
1078 - Prevent a compact file from being loaded twice if the debug option "incguard" has been set.
1079
1080 * 2023-02-16 Andre Sailer ([PR#1061](https://github.com/aidasoft/dd4hep/pull/1061))
1081 - ddsim: make it possible to use batchmode with userInputPlugins only
1082
1083 * 2023-02-09 Markus Frank ([PR#1058](https://github.com/aidasoft/dd4hep/pull/1058))
1084 The export of dd4hep::units is problematic in the presence of identical libraries from DD4hep in the LD_LIBRARY_PATH:
1085 - 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
1086 - 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.
1087
1088 - 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.
1089
1090 * 2023-02-06 Dmitry Kalinkin ([PR#1055](https://github.com/aidasoft/dd4hep/pull/1055))
1091 - Pass `DYLD_LIBRARY_PATH` environment to listcomponents_dd4hep when generating rootmaps in CMake
1092
1093 * 2023-01-31 Paul Gessinger ([PR#1053](https://github.com/aidasoft/dd4hep/pull/1053))
1094 - Check podio version for compatibility in cmake
1095
1096 * 2023-01-30 Dmitry Kalinkin ([PR#1052](https://github.com/aidasoft/dd4hep/pull/1052))
1097 - Removed not implemented declaration of member function `PlacedVolume::flags()`
1098
1099 * 2023-01-26 Thomas Madlener ([PR#1050](https://github.com/aidasoft/dd4hep/pull/1050))
1100 - DDG4 EDM4hep Output: Write Frames into the `"runs"` category of the output file to store some run information.
1101
1102 # v01-24
1103
1104 * 2023-01-20 Andre Sailer ([PR#1048](https://github.com/AIDASoft/DD4hep/pull/1048))
1105 - add -Wno-psabi to compiler flags to ignore warnings about ABI changes that we will never have issues with. Fixes #1043
1106
1107 * 2023-01-20 Andre Sailer ([PR#1046](https://github.com/AIDASoft/DD4hep/pull/1046))
1108 - ParticleHandler: account for modified stepping actions, where tracking of a particle could be paused and later restarted.
1109
1110 * 2023-01-18 Andre Sailer ([PR#1045](https://github.com/AIDASoft/DD4hep/pull/1045))
1111 - thisdd4hep: fix an issue with environment paths getting dropped when they contain a complete substring of a path that is going to be added
1112
1113 * 2023-01-18 Markus Frank ([PR#1044](https://github.com/AIDASoft/DD4hep/pull/1044))
1114 - This PR addresses issue https://github.com/AIDASoft/DD4hep/issues/1037
1115 Rather than adding the beta as a double it was chosen to add at each step the track momentum
1116 in floats which for 4 more bytes offers more information.
1117
1118 * 2023-01-18 Andre Sailer ([PR#1042](https://github.com/AIDASoft/DD4hep/pull/1042))
1119 - ddsim: fix exception when a compactFile path not containing any slashes was given (fixes #1039 )
1120
1121 * 2023-01-17 Markus Frank ([PR#1041](https://github.com/AIDASoft/DD4hep/pull/1041))
1122 - Make DDDigi I/O interface more common and add edm4hep write/read example
1123 - Move DDG4 edm4hep writer to use podio Frames
1124
1125 * 2023-01-11 Markus Frank ([PR#1038](https://github.com/AIDASoft/DD4hep/pull/1038))
1126 - Improve DDDigi documentation when opening code sub-page
1127 - Silence flak8 warning from python
1128 - Fix a bug in the detector checksum module. Tested with TGeo units and G4 units of the CLICSiD model.
1129 - Propagate the configuration flag `DD4HEP_USE_EDM4HEP` to the generated dd4hep cmake of client projects.
1130 - Add DDDigi output module for the edm4hep format
1131 - Add DDDigi output module for the native ROOT objects including required dictionaries.
1132
1133 * 2022-12-15 Markus Frank ([PR#1032](https://github.com/AIDASoft/DD4hep/pull/1032))
1134 - Improve GDML export procedures
1135 -- Allow to set export precision in the plugin
1136 -- New ROOT release needed to properly export surfaces (current ROOT GDML export does not handle this currectly)
1137 See ROOT PR https://github.com/root-project/root/pull/11886
1138 See ROOT PR https://github.com/root-project/root/pull/11887
1139 See ROOT PR https://github.com/root-project/root/pull/11888
1140 See ROOT PR https://github.com/root-project/root/pull/11889
1141 See ROOT PR https://github.com/root-project/root/pull/11895
1142 - Remove some build errors for MAC
1143
1144 * 2022-12-09 Markus Frank ([PR#1030](https://github.com/AIDASoft/DD4hep/pull/1030))
1145 - Program GDML writer (requires new ROOT release to take advantage)
1146
1147 * 2022-12-09 Markus Frank ([PR#1029](https://github.com/AIDASoft/DD4hep/pull/1029))
1148 - Improve DDDigi package doc
1149 - Bug fix in detector checksum
1150 - Remove flak8 warnings
1151
1152 * 2022-12-06 Markus Frank ([PR#1028](https://github.com/AIDASoft/DD4hep/pull/1028))
1153 - Add detector checksum facility as plugin: Compare different detector setups
1154 - Gives identical hash results for TGeo units and G4 units
1155 - Supports detector dumps with "unified" strings for debugging
1156 ```
1157 Usage: -plugin DD4hepDetectorChecksum -arg [-arg]
1158
1159 -detector <string> Top level DetElement path. Default: '/world'
1160 -readout also hash the detector's readout properties
1161 (sensitive det, id desc, segmentation)
1162 default: false
1163
1164 Debugging: Dump individual hash codes (debug>=1)
1165 Debugging: and the hashed string (debug>2)
1166 -dump_elements Dump hashes of used elements
1167 -dump_materials Dump hashes of used materials
1168 -dump_solids Dump hashes of used solids
1169 -dump_volumes Dump hashes of used volumes
1170 -dump_placements Dump hashes of used placements
1171 -dump_detelements Dump hashes of used detelements
1172 -dump_sensitive Dump hashes of sensitive detectors
1173 -dump_readout Dump hashes of readout entities
1174 -dump_iddescriptors Dump hashes of ID descriptors
1175 -dump_segmentations Dump hashes of readout segmentations
1176
1177 Modify units in the created hash strings (deprecated):
1178 -length_unit <value> Unit of length as literal. default: mm
1179 -angle_unit <value> Unit of angle as literal. default: deg
1180 -energy_unit <value> Unit of energy as literal. default: GeV
1181 -density_unit <value> Unit of density as literal. default: g/cm3
1182 -atomic_unit <value> Unit of atomic weight as literal. default: g/mole
1183
1184 -debug <number> Enable debug printouts.
1185 -help Print this help output
1186 ```
1187
1188 * 2022-11-30 Kolja Kauder ([PR#1017](https://github.com/AIDASoft/DD4hep/pull/1017))
1189 - 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
1190
1191 * 2022-11-26 Markus Frank ([PR#1026](https://github.com/AIDASoft/DD4hep/pull/1026))
1192 - Fixed some coverity defects recently reported
1193 - Fix Geant4Converter bug: Protect for reflected assembly shapes.
1194 - Added feature to Geant4Output2ROOT to change file when the run number changes (ie. for each /run/beamOn command)
1195 - Modify and enhance the MiniTel example in ClientTests to serve as a small, but flexible testbed for DDDigi
1196 - Add multiple DDDigi tests using the modified MiniTel
1197 o Data generator using DDG4
1198 o See examples/DDDigi/scripts for the tests:
1199 o multiple interactions
1200 o spillover events
1201 o Container parallelization
1202 o Segmentation parallization
1203 - Started to implement a checksum mechanism based on well formatted XML dumps similar to GDML, but with
1204 well defined floating point precision.
1205 o See https://github.com/AIDASoft/DD4hep/issues/994 for details
1206 o first and incomplete dump for shapes.
1207 o to be completed eventually
1208 o whoever feels like it can become involved to implement such dumps for other objects:
1209 - elements, isotopes, materials, DetElements, Volumes, Placements etc.
1210
1211 * 2022-11-25 jmcarcell ([PR#1024](https://github.com/AIDASoft/DD4hep/pull/1024))
1212 - Fix compiler warning about unused variable
1213 - Fix warning in example test and fix also the test, it was comparing `char* == char*` which is almost never true
1214
1215 * 2022-11-24 Wouter Deconinck ([PR#1012](https://github.com/AIDASoft/DD4hep/pull/1012))
1216 - DDG4: Geant4TCUserParticleHandler: Allow for asymmetric tracking region with `tracker_region_zmin`
1217
1218 * 2022-11-22 Markus Frank ([PR#1023](https://github.com/AIDASoft/DD4hep/pull/1023))
1219 Take into account suggestions from PR https://github.com/AIDASoft/DD4hep/pull/1021
1220
1221 * 2022-11-22 Markus Frank ([PR#1021](https://github.com/AIDASoft/DD4hep/pull/1021))
1222 - Implemented issue https://github.com/AIDASoft/DD4hep/issues/1010: Changing Geant4 physics flags
1223 o Extended the Geant4UIManager to support command queues at various stages of the program:
1224 -- configure
1225 -- initialize
1226 -- pre-run
1227 -- post-run
1228 -- terminate
1229 o Added interface function to directly communicate with the G4UI using string commands at any time
1230 from python.
1231 o Extended Geant4Kernel functionality to allow client actions to subscribe to stages of the program
1232 and perform dedicated actions on:
1233 -- configure
1234 -- initialize
1235 -- terminate
1236 As an example please see DDG4/src/Geant4UIManager.cpp
1237
1238 - Dropped issue https://github.com/AIDASoft/DD4hep/issues/1004 after some tests and investigation:
1239 This issue cannot be resolved, because MC records may also be read without Geant4 and a physics list being initialized.
1240 Hence the event readers cannot implement such a feature if the event record does not support charge, but only the PDG code.
1241 Conclusion is to best update the charge of particles at the output stage using the PDG code or to implement an event action,
1242 which performs this actions right before the output stage.
1243 - Simplified component properties.
1244 - Improvements to DDDigi (work in progress)
1245
1246 * 2022-11-17 Andre Sailer ([PR#1019](https://github.com/AIDASoft/DD4hep/pull/1019))
1247 - LCIOConversions: fix attaching SimCaloHit collections to event, this was accidentally dropped in #922
1248
1249 * 2022-11-16 Jonas Hahnfeld ([PR#1018](https://github.com/AIDASoft/DD4hep/pull/1018))
1250 - Fix build with GCC 8
1251
1252 * 2022-11-11 Wouter Deconinck ([PR#1011](https://github.com/AIDASoft/DD4hep/pull/1011))
1253 - Allow HepMC3 ROOT input files in ddsim when they end with `.hepmc3.tree.root`
1254
1255 * 2022-11-10 Wouter Deconinck ([PR#989](https://github.com/AIDASoft/DD4hep/pull/989))
1256 - ddsim: Automatically interpret '.hepmc3' input files
1257
1258 * 2022-11-03 Andre Sailer ([PR#1005](https://github.com/AIDASoft/DD4hep/pull/1005))
1259 - Examples: OpticalTracker: declare dependency on DDRec
1260 - Docs: fix some typos noted in #1003
1261
1262 * 2022-10-30 Markus Frank ([PR#1002](https://github.com/AIDASoft/DD4hep/pull/1002))
1263 - Fix to issue https://github.com/AIDASoft/DD4hep/issues/1000 and https://github.com/AIDASoft/DD4hep/issues/999
1264
1265 * 2022-10-29 Markus Frank ([PR#998](https://github.com/AIDASoft/DD4hep/pull/998))
1266 - DDCore
1267 -- Add string hash function for 8 and 16 bit hash results
1268 -- Add position transformations (world, detector element) to volume manager
1269
1270 - DDG4
1271 -- Fix interface to Geant4StackingAction. Add missing function interface to allow access to ClassifyNewTrack.
1272 Also pass the current stacking manager reference to all user callbacks.
1273 -- Add simple example to test the functionality examples/DDG4/scrips/TestStacking.py
1274
1275 - DDDigi
1276 -- Add some processor plugins for simple data processing.
1277 -- Enhance the usage of the Key identifier.
1278 -- Add several test scripts in the example area.
1279
1280 - examples
1281 -- Reduce the test execution time of the top CPU consumers by reducing the number of simulated events.
1282
1283 * 2022-10-24 Paul Gessinger ([PR#997](https://github.com/AIDASoft/DD4hep/pull/997))
1284 - DD4HEP_RELAX_PYVER is exported to `DD4hepConfig.cmake`.
1285
1286 * 2022-10-22 Andre Sailer ([PR#996](https://github.com/AIDASoft/DD4hep/pull/996))
1287 - DDSim: fix bug preventing the use of integers for the verbosity level (-v/--printLevel, --output.input etc.) fixes #992
1288
1289 * 2022-10-17 Andre Sailer ([PR#987](https://github.com/AIDASoft/DD4hep/pull/987))
1290 - DDEve: Adapt to renamed header in upcoming ROOT 6.28
1291
1292 * 2022-10-17 Wouter Deconinck ([PR#986](https://github.com/AIDASoft/DD4hep/pull/986))
1293 - Shapes::Trap: Fix the 4-argument trapezoidal prism constructor (again)
1294
1295 * 2022-10-10 Wouter Deconinck ([PR#983](https://github.com/AIDASoft/DD4hep/pull/983))
1296 - Ensure that closed tessellated solids are converted to closed solids in geant4
1297
1298 # v01-23
1299
1300 * 2022-09-28 Wouter Deconinck ([PR#982](https://github.com/aidasoft/dd4hep/pull/982))
1301 - ddsim: set eta_min, eta_max correctly for `ddsim --gun.distribution eta`
1302
1303 * 2022-09-23 Markus Frank ([PR#980](https://github.com/aidasoft/dd4hep/pull/980))
1304 Remove using declarations in root-cling dictionary files to avoid interpreter clashes with the global namespace
1305
1306 Affected files:
1307 - DDCore/src/GeoDictionary.h
1308 - DDCore/src/PropertyDictionary.h
1309 - DDCore/src/RootDictionary.h
1310 - DDCore/src/SegmentationDictionary.h
1311 - DDEve/include/DDEve/Dictionary.h
1312 - DDG4/include/DDG4/DDG4Dict.h
1313
1314 * 2022-09-23 Marco Clemencic ([PR#979](https://github.com/aidasoft/dd4hep/pull/979))
1315 - Use explicit namespaces in DDCond dictionary
1316
1317 * 2022-09-19 Wouter Deconinck ([PR#976](https://github.com/aidasoft/dd4hep/pull/976))
1318 - `geoConverter -compact2tgeo` to write TGeo geometry to ROOT file
1319
1320 * 2022-09-19 Christopher Dilks ([PR#974](https://github.com/aidasoft/dd4hep/pull/974))
1321 - add example RICH detector, demonstrating and testing `Geant4OpticalTrackerAction`
1322
1323 * 2022-09-16 Wouter Deconinck ([PR#975](https://github.com/aidasoft/dd4hep/pull/975))
1324 - materialBudget: enable use with asymmetric detectors: adding thetaMin/thetaMax/etaMin to the steering file
1325
1326 * 2022-09-15 Wouter Deconinck ([PR#967](https://github.com/aidasoft/dd4hep/pull/967))
1327 - Geant4OpticalTrackerAction which stops-and-kills optical photons for e.g. SiPM sensor planes
1328
1329 * 2022-09-12 Christopher Dilks ([PR#973](https://github.com/aidasoft/dd4hep/pull/973))
1330 - fix typo in `examples/README.md`: `cmake` option `DD4HEP_BUILD_EXAMPLES` should be `DD4HEP_EXAMPLES`
1331
1332 * 2022-09-07 Dmitry Kalinkin ([PR#972](https://github.com/aidasoft/dd4hep/pull/972))
1333 - Refactor thisdd4hep.sh to use local variables where possible to prevent user environment corruption.
1334
1335 * 2022-09-01 Andre Sailer ([PR#969](https://github.com/aidasoft/dd4hep/pull/969))
1336 - DDSim: ddsim now prints out if the defaultFilter or if no filter is used for a sensitive detector
1337
1338 * 2022-09-01 Wouter Deconinck ([PR#968](https://github.com/aidasoft/dd4hep/pull/968))
1339 - ddsin: Add `--runType qt` support for enabling the graphical Qt interface for geant4
1340 - ddsim: change shell type to tcsh: enabling tab completion when Geant4 offers it
1341
1342 * 2022-08-26 Andre Sailer ([PR#962](https://github.com/aidasoft/dd4hep/pull/962))
1343 - DDCore: DetectorInfo: make INFO attributes optional, fixes #960
1344
1345 * 2022-08-25 Andre Sailer ([PR#963](https://github.com/aidasoft/dd4hep/pull/963))
1346 - ChannelingCrystalMaterial: fix crystal_orientation to be constPropertyRef
1347
1348 * 2022-08-25 Andre Sailer ([PR#961](https://github.com/aidasoft/dd4hep/pull/961))
1349 - DDSim: fix example for adding user physics list extension
1350
1351 # v01-22
1352
1353 * 2022-08-16 Andre Sailer ([PR#957](https://github.com/aidasoft/dd4hep/pull/957))
1354 - CI: add check for header guards
1355
1356 * 2022-08-15 Andre Sailer ([PR#956](https://github.com/aidasoft/dd4hep/pull/956))
1357 - CI: Add test with Geant4Units enabled
1358
1359 * 2022-08-15 Andre Sailer ([PR#946](https://github.com/aidasoft/dd4hep/pull/946))
1360 - CI changes, for discussion
1361
1362 * 2022-08-11 Markus Frank ([PR#954](https://github.com/aidasoft/dd4hep/pull/954))
1363 Before starting to parse XML files, programatically set the locale to "C" if any of the three
1364 - LC_NUMERIC,
1365 - LC_TIME,
1366 - LC_CTYPE
1367 Is not set to "C".
1368
1369 Addresses issue https://github.com/AIDASoft/DD4hep/issues/913.
1370
1371 * 2022-08-11 Andre Sailer ([PR#953](https://github.com/aidasoft/dd4hep/pull/953))
1372 - DDSim: find the python executable used during build and set that for the hashbang, e.g. python3.9 instead of python. Fixes #952
1373
1374 * 2022-08-10 Markus Frank ([PR#951](https://github.com/aidasoft/dd4hep/pull/951))
1375 - Allow to set MeanExcEnergy, MeanEnergyPerIonPair and BirksConstant in G4Materials ionisation parameters.
1376 Specify values in the compact description of the materials:
1377 ```
1378 <material name="Ice">
1379 <D type="density" value="1.0" unit="g/cm3"/>
1380 <composite n="2" ref="H"/>
1381 <composite n="1" ref="O"/>
1382 <constant name="BirksConstant" value="123.456*mm/MeV"/>
1383 <constant name="MeanExcitationEnergy" value="79.7*eV"/>
1384 <constant name="MeanEnergyPerIonPair" value="50*eV"/>
1385 </material>
1386 ```
1387 Units will be converted to Geant4 units in the converter.
1388 See issue https://github.com/AIDASoft/DD4hep/issues/890 for details.
1389
1390 If in DDG4 the the material debugging is enabled:
1391 ```
1392 # Configure G4 geometry setup
1393 seq, act = geant4.addDetectorConstruction("Geant4DetectorGeometryConstruction/ConstructGeo")
1394 act.DebugMaterials = True
1395 ```
1396 this gives the following output:
1397 ```
1398 Ice ++ Created G4 material Material: Ice density: 1.000 g/cm3 RadL: 36.083 cm Nucl.Int.Length: 75.375 cm
1399 Imean: 79.700 eV temperature: 293.15 K pressure: 1.00 atm
1400
1401 ---> Element: H (H) Z = 1.0 N = 1 A = 1.008 g/mole
1402 ---> Isotope: H1 Z = 1 N = 1 A = 1.01 g/mole abundance: 99.989 %
1403 ---> Isotope: H2 Z = 1 N = 2 A = 2.01 g/mole abundance: 0.011 %
1404 ElmMassFraction: 11.19 % ElmAbundance 66.67 %
1405
1406 ---> Element: O (O) Z = 8.0 N = 16 A = 15.999 g/mole
1407 ---> Isotope: O16 Z = 8 N = 16 A = 15.99 g/mole abundance: 99.757 %
1408 ---> Isotope: O17 Z = 8 N = 17 A = 17.00 g/mole abundance: 0.038 %
1409 ---> Isotope: O18 Z = 8 N = 18 A = 18.00 g/mole abundance: 0.205 %
1410 ElmMassFraction: 88.81 % ElmAbundance 33.33 %
1411 log(MEE): -9.437 Birk's constant: 123.5 [mm/MeV] Mean Energy Per Ion Pair: 50 [eV]
1412 ```
1413
1414 * 2022-08-10 Markus Frank ([PR#950](https://github.com/aidasoft/dd4hep/pull/950))
1415 On request from out LHC colleagues DD4hep supports channeling physics in Geant4.
1416 To support channeling physics in Geant4 it is necessary to enable the transparent
1417 creation of G4ExtendedMaterial and G4LogicalCrystalVolume instances.
1418 This can be done in DD4hep with the supply of material and volume properties in DD4hep.
1419
1420 Material properties can be supplied in the compact description like here:
1421 ```
1422 <material name="Ice">
1423 <D type="density" value="1.0" unit="g/cm3"/>
1424 <composite n="2" ref="H"/>
1425 <composite n="1" ref="O"/>
1426 <constant name="Geant4-plugin:material" option="ChannelingCrystalMaterial"/>
1427 <constant name="Geant4-ignore:crystal_data" option="${DD4hepExamplesINSTALL}/examples/DDG4/data/Si220pl/Si220pl"/>
1428 <constant name="Geant4-ignore:crystal_orientation" option="(1,0,0)"/>
1429 </material>
1430 ```
1431 The property starting with the tag `Geant4-plugin` is used to determine the proper plugin
1432 preparing the G4ExtendedMaterial instance.
1433 All properties with tags `Geant4-ignore` are not passed as material properties to Geant4.
1434 Properties starting with this tag can be used by users to configure the G4ExtendedMaterial instance.
1435
1436 Volumes can as well have properties as this C++ example shows:
1437 ```
1438 Volume vol = Volume("Volume", solid, material);
1439 xml_elt_t ec = ...;
1440 vol.addProperty(ec.attr<std::string>(_U(name)), ec.attr<std::string>(_U(value)));
1441 ```
1442 with values supplied by XML:
1443 ```
1444 <property name="Geant4-plugin" value="ChannelingCrystalVolume"/>
1445 ```
1446 For more details see the example `<DD4hep>/examples/DDG4/compact/Channeling.xml`.
1447 Again the property `Geant4-plugin` is used to call a plugin to create sub-classes
1448 of G4LogicalVolume like G4LogicalCrystalVolume.
1449
1450 An example was prepared in `<DD4hep>/examples/DDG4` containing:
1451 - a compact description: `compact/Channeling.xml`
1452 - an example factory for the G4ExtendedMaterial: `src/ChannelingCrystalMaterial.cpp`
1453 - an example factory for the G4LogicalCrystalVolume: `src/ChannelingCrystalVolume.cpp`
1454 - A script invoking Geant4 to test this setup: `scripts/Channeling.py`
1455
1456 * 2022-08-09 Dmitry Kalinkin ([PR#949](https://github.com/aidasoft/dd4hep/pull/949))
1457 - 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.
1458
1459 * 2022-08-05 Andre Sailer ([PR#942](https://github.com/aidasoft/dd4hep/pull/942))
1460 - DDSim: add option to set userInputPlugin for simulation by adding a plugin for themselves, and this to the ddsim steering file (for #940)
1461 ```python
1462 def exampleUserPlugin(dd4hepSimulation):
1463 '''Example code for user created plugin.
1464
1465 :param DD4hepSimulation dd4hepSimulation: The DD4hepSimulation instance, so all parameters can be accessed
1466 :return: GeneratorAction
1467 '''
1468 from DDG4 import GeneratorAction, Kernel
1469 # Geant4InputAction is the type of plugin, Cry1 just an identifier
1470 gen = GeneratorAction(Kernel(), 'Geant4InputAction/Cry1' , True)
1471 # CRYEventReader is the actual plugin, steeringFile its constructor parameter
1472 gen.Input = 'CRYEventReader|' + 'steeringFile'
1473 # we can give a dictionary of Parameters that has to be interpreted by the setParameters function of the plugin
1474 gen.Parameters = {'DataFilePath': '/path/to/files/data'}
1475 gen.enableUI()
1476 return gen
1477
1478 SIM.inputConfig.userInputPlugin = exampleUserPlugin
1479 ```
1480
1481 * 2022-08-04 Andrea Ciarma ([PR#944](https://github.com/aidasoft/dd4hep/pull/944))
1482 * Mask_o1: Added the possibility to have sensitive elements of type Mask_o1_v01_geo by adding a `sensitive="sensitiveType"` attribute
1483
1484 * 2022-08-02 Juraj Smiesko ([PR#941](https://github.com/aidasoft/dd4hep/pull/941))
1485 * checkOverlaps.py: Adding possibility to provide multiple compact files
1486 * checkOverlaps.py: replace optparse by argparse for up-to-date python
1487
1488 * 2022-08-01 Markus Frank ([PR#939](https://github.com/aidasoft/dd4hep/pull/939))
1489 - Follow up of https://github.com/AIDASoft/DD4hep/pull/938.
1490 Improves the DetectorCheck plugin.
1491 - Add example with an "ill" detector description that triggers the DetectorCheck plugin
1492 to complain and to eject pathes to problematic detector elements ect.
1493
1494 * 2022-07-29 Markus Frank ([PR#938](https://github.com/aidasoft/dd4hep/pull/938))
1495 - Fix type in DDCore/src/DD4hepRootPersistency.cpp
1496 - Add operator== and operator != to handles of DetElement, SensitiveDetector
1497 Volume and PlacedVolume. Check pointer values for equality.
1498 - Add plugin DD4hep_DetectorCheck. Improves and replaces DD4hep_VolumeMgrTest.
1499 o Test checks the strutural tree of a given top element
1500 o Test checks the geometry tree of a given top element
1501 o If physical volume ids are properly placed these can also be checked.
1502 ```
1503 DD4hep_DetectorCheck -option [-option]
1504 -help Print this help message
1505 -name <subdetector name> Name of the subdetector to be checked
1506 "ALL" or "all": loop over known subdetectors
1507 "world" start from the mother of all...
1508 -structure Check structural tree consistency
1509 -geometry Check geometry tree consistency
1510 -sensitve Check consistency between detector and volume
1511 settings of sensitive detectors.
1512 -volmgr Check volume manager entries against volIDs of
1513 sensitive volume placements.
1514
1515 NOTE: Option requires proper PhysVolID setup
1516 of the sensitive volume placements !
1517 ```
1518
1519 * 2022-07-27 Juraj Smiesko ([PR#937](https://github.com/aidasoft/dd4hep/pull/937))
1520 - Improving error message when setting detector type flags
1521
1522 * 2022-07-27 Andre Sailer ([PR#935](https://github.com/aidasoft/dd4hep/pull/935))
1523 - ddsim: Fix setting of zeroTimePDGs, previously this value was not forwarded from config to the program
1524 - particle.tbl: change 523 to unstable (fixes #909)
1525 - Geant4InputHandling: add exception when encountering stable particles with daughters that are marked for simulation (implements feature of #909)
1526 - Geant4InputHandling: reject particles with GEN_DOC, GEN_BEAM, GEN_OTHER (fixes part of #918)
1527
1528 * 2022-07-26 Markus Frank ([PR#936](https://github.com/aidasoft/dd4hep/pull/936))
1529 - Recursive calls to apply-plugins overwrote the return code.
1530 - This MR fixes issue https://github.com/AIDASoft/DD4hep/issues/875
1531
1532 - Support for 1D, 2D and 3D parameterised volumes.
1533 (Outstanding request by S.Ko)
1534 1. TGeo does not support parametrized volumes intrinsically.
1535 On the dd4hep/TGeo side these are implemented by multiple placements
1536 according to the user supplied transformation matrices.
1537 For details see the calls in `dd4hep::Volume::paramVolume<dim>D(...)`
1538 2. When translated to Geant4, the structures are identified and
1539 the proper Geant4 parameterisation is created.
1540 3. An example can be found in:
1541 - `examples/ClientTests/src/ParamVolume_geo.cpp`
1542 - to display: `geoDisplay examples/ClientTests/compact/ParamVolume<dim>D.xml`
1543 - the Geant4 conversion is excercised with the scripts:
1544 ```
1545 python examples/ClientTests/scripts/ParamVolume.py \
1546 -geometry examples/ClientTests/compact/ParamVolume<dim>D.xml \
1547 -vis -macro examples/ClientTests/compact/ParamVolume.mac ```
1548
1549 # v01-21
1550
1551 * 2022-07-19 Markus Frank ([PR#933](https://github.com/aidasoft/DD4hep/pull/933))
1552 The fast simulation handling in Geant4 includes the GFlash interface
1553 as implemented in `<geant40-source>/source/parameterisations/gflash`
1554 and a fast simulation interface as provided by
1555 `<geant40-source>/source/processes/parameterisation`
1556
1557 This MR allows to handle both mechanisms using the same callbacks
1558 in the Geant4SensitiveActions using the callback specialization:
1559 ```
1560 /// GFLASH/FastSim interface: Method for generating hit(s) using the information of the fast simulation spot object.
1561 virtual bool processFastSim(const Geant4FastSimSpot* spot, G4TouchableHistory* history) final;
1562 ```
1563 in addition to the regular callback for full simulation:
1564 ```
1565 /// G4VSensitiveDetector interface: Method for generating hit(s) using the G4Step object.
1566 virtual bool process(const G4Step* step,G4TouchableHistory* history) final;
1567 ```
1568 The `Geant4FastSimSpot` is inspired by the `G4GFlashSpot`, but avoids the specialization towards GFlash
1569 given that the `G4FastHit` and the `G4GFlashEnergySpot` are equivalent.
1570 Together with the helper class `Geant4FastSimHandler` simple sensitive detector callbacks
1571 can be implemented like:
1572 ```
1573 /// GFlash/FastSim interface: Method for generating hit(s) using the information of Geant4FastSimSpot object.
1574 template <> bool
1575 Geant4SensitiveAction<Geant4Tracker>::processFastSim(const Geant4FastSimSpot* spot,
1576 G4TouchableHistory* /* hist */)
1577 {
1578 typedef Geant4Tracker::Hit Hit;
1579 Geant4FastSimHandler h(spot);
1580 Hit* hit = new Hit(h.trkID(), h.trkPdgID(), h.deposit(), h.track->GetGlobalTime());
1581 hit->cellID = cellID(h.touchable(), h.avgPositionG4());
1582 hit->energyDeposit = h.deposit();
1583 hit->position = h.avgPosition();
1584 hit->momentum = h.momentum();
1585 hit->length = 0e0;
1586 collection(m_collectionID)->add(hit);
1587 return true;
1588 }
1589 ```
1590 Callbacks with this signature are called both for GFlash and the G4 fast simulation.
1591
1592 To simplify the user defined construction of fast simulation shower models
1593 the helper class `Geant4FastSimShowerModel` is implemented as a `Geant4Action`
1594 and hence allows to have options to be set by the user (including python).
1595
1596 As an illustration two fast simulation shower models were implemented in
1597 `<dd4hep>/DDG4/plugins/Geant4P1ShowerModel.cpp` which were directly deduced
1598 from the Geant4 example `<geant4-source>/examples/extended/parameterisations/Par01`.
1599 Please see the source files for details.
1600
1601 To execute GFlash or fast simulation to simple python examples are provided
1602 using simple silicon blocks as sensitive volumes:
1603 - GFlash `<dd4hep-dir>/examples/ClientTests/scripts/SiliconBlockGFlash.py`
1604 - Fast simulation `<dd4hep-dir>/examples/ClientTests/scripts/SiliconBlockFastSim.py`
1605
1606 To enable either the following actions are required:
1607 1. Enable fast simulation for certain particles in the physics list:
1608 ``` # Build the physics list:
1609 phys = geant4.setupPhysics('FTFP_BERT')
1610 ph = DDG4.PhysicsList(kernel, str('Geant4FastPhysics/FastPhysicsList'))
1611 ph.EnabledParticles = ['e+', 'e-']
1612 ph.enableUI()
1613 phys.adopt(ph)
1614 ```
1615 This step is identical for GFlash and fast simulation physics.
1616 2. Enable the shower mode:
1617 ``` model = DDG4.DetectorConstruction(kernel, str('Geant4Par01EMShowerModel/ShowerModel'))
1618 # Mandatory model parameters
1619 model.RegionName = 'SiRegion'
1620 model.Material = 'Silicon'
1621 model.ApplicableParticles = ['e+', 'e-']
1622 model.Etrigger = {'e+': 0.1 * GeV, 'e-': 0.1 * GeV}
1623 model.Enable = True
1624 model.enableUI()
1625 ```
1626 Here the options must be set according to the parameters required by the shower models.
1627
1628 The G4 fast simulation interface is only functional for Geant4 version >= 10.07.
1629 For lower versions of Geant4 missing classes are stubbed to allow the compilation.
1630
1631 * 2022-07-18 Paul Gessinger ([PR#931](https://github.com/aidasoft/DD4hep/pull/931))
1632 - Update `VariantParameters`: `value_or` is const (returns by value anyway), add non-const `get` method
1633
1634 * 2022-07-15 Markus Frank ([PR#930](https://github.com/aidasoft/DD4hep/pull/930))
1635 - Fix some handler
1636 - Add 2 examples to test the functionality
1637
1638 * 2022-07-14 Markus Frank ([PR#929](https://github.com/aidasoft/DD4hep/pull/929))
1639 - First attempt to implement GFlash parametrization for DDG4
1640 - Example is in examples/ClientTests/scripts/SiliconBlockGFlash.py
1641 Relevant code changes are for the detector construction:
1642 ```
1643 seq, act = geant4.addDetectorConstruction('Geant4DetectorGeometryConstruction/ConstructGeo')
1644 ....
1645 # Enable GFlash shower model
1646 model = DDG4.DetectorConstruction(kernel, str('Geant4GFlashShowerModel/ShowerModel'))
1647 model.Parametrization = 'GFlashHomoShowerParameterisation'
1648 # Mandatory model parameters
1649 model.RegionName = 'SiRegion'
1650 model.Material = 'Silicon'
1651 model.Enable = True
1652 # Energy boundaries are optional
1653 model.Emin = {'e+': 0.1*GeV, 'e-': 0.1*GeV } # Units in GeV
1654 model.Ekill = {'e+': 0.1*MeV, 'e-': 0.1*MeV }
1655 model.enableUI()
1656 seq.adopt(model)
1657 ```
1658 and the physics list.
1659 ```
1660 # Now build the physics list:
1661 phys = geant4.setupPhysics('FTFP_BERT')
1662 ph = DDG4.PhysicsList(kernel, str('Geant4FastPhysics/FastPhysicsList'))
1663 ph.EnabledParticles = ['e+', 'e-']
1664 ph.BeVerbose = True
1665 ph.enableUI()
1666 phys.adopt(ph)
1667 ```
1668 The setup of the regions is crucial for GFlash to work, because it applies to regions.
1669 For concrete detector constructors the proper regional setting are mandatory, but do not affect
1670 this implementation.
1671
1672 * 2022-07-12 Andre Sailer ([PR#928](https://github.com/aidasoft/DD4hep/pull/928))
1673 - CI: Due to incompatibilities we can no longer test macOS on github
1674
1675 * 2022-07-12 Markus Frank ([PR#927](https://github.com/aidasoft/DD4hep/pull/927))
1676 Easy possibility to store condition payloads as std::any.
1677 - Use of specialized handle class `dd4hep::ConditionAny` to support the functionality.
1678 The payload is automatically bound to an object of type std::any.
1679 Example code of constructor and how to access data:
1680 ```
1681 /// Emplacement construction
1682 std::vector<int> value;
1683 ... // fill data
1684 ConditionAny c2("name", "type", std::move(value));
1685
1686 /// Construct conditions object with empty std::any
1687 ConditionAny c2("name", "type");
1688 /// Assign data (empty vector<int>) to the payload:
1689 c2.get() = vector<int>();
1690
1691 /// Access data:
1692 vector<int>& data = c2.as<vector<int> >();
1693 ```
1694 as a corollary to this approach these conditions can only be stored and retrieved from ROOT storage
1695 if the requirement for ROOT are satisfied. Otherwise no other restrictions are imposed.
1696 The corresponding grammar instance is part of the library.
1697
1698 - Add example to illustrate the functionality in example/conditions:
1699 o examples/Conditions/src/ConditionAnyExampleObjects.cpp
1700 o examples/Conditions/src/ConditionAnyExampleObjects.h
1701 o plugin: examples/Conditions/src/ConditionAnyExample_populate.cpp
1702 Invocation:
1703 ```
1704 $> geoPluginRun -destroy -plugin DD4hep_ConditionAnyExample_populate \
1705 -input ../../DD4hep/examples/AlignDet/compact/Telescope.xml -iovs 1
1706 ```
1707
1708 - Plugin example to test basic functionality and verify proper assignment works
1709 o examples/Conditions/src/Conditions_any_basic.cpp
1710 Invocation:
1711 ```
1712 $> geoPluginRun -destroy -volmgr -plugin DD4hep_Conditions_any_basic
1713
1714 ```
1715 - Add 2 tests illustrating this functionality.
1716
1717 * 2022-07-09 Markus Frank ([PR#925](https://github.com/aidasoft/DD4hep/pull/925))
1718 Easy possibility to store condition payloads as std::any.
1719 - Use of specialized handle class `dd4hep::ConditionAny` to support the functionality.
1720 The payload is automatically bound to an object of type std::any.
1721 Example code of constructor and how to access data:
1722 ```
1723 /// Emplacement construction
1724 std::vector<int> value;
1725 ... // fill data
1726 ConditionAny c2("name", "type", std::move(value));
1727
1728 /// Construct conditions object with empty std::any
1729 ConditionAny c2("name", "type");
1730 /// Assign data (empty vector<int>) to the payload:
1731 c2.get() = vector<int>();
1732
1733 /// Access data:
1734 vector<int>& data = c2.as<vector<int> >();
1735 ```
1736 as a corollary to this approach these conditions can only be stored and retrieved from ROOT storage
1737 if the requirement for ROOT are satisfied. Otherwise no other restrictions are imposed.
1738 The corresponding grammar instance is part of the library.
1739
1740 - Add example to illustrate the functionality in example/conditions:
1741 o examples/Conditions/src/ConditionAnyExampleObjects.cpp
1742 o examples/Conditions/src/ConditionAnyExampleObjects.h
1743 o plugin: examples/Conditions/src/ConditionAnyExample_populate.cpp
1744 Invocation:
1745 ```
1746 $> geoPluginRun -destroy -plugin DD4hep_ConditionAnyExample_populate \
1747 -input ../../DD4hep/examples/AlignDet/compact/Telescope.xml -iovs 1
1748 ```
1749
1750 - Plugin example to test basic functionality and verify proper assignment works
1751 o examples/Conditions/src/Conditions_any_basic.cpp
1752 Invocation:
1753 ```
1754 $> geoPluginRun -destroy -volmgr -plugin DD4hep_Conditions_any_basic
1755
1756 ```
1757
1758 * 2022-07-07 Andre Sailer ([PR#922](https://github.com/aidasoft/DD4hep/pull/922))
1759 - LCIOOutput: Fix exception when trying to use a readout for different sub-detectors
1760 - EDM4hepOutput: Fix memory leak when re-using readouts for different sub-detectors
1761
1762 * 2022-06-16 Markus Frank ([PR#917](https://github.com/aidasoft/DD4hep/pull/917))
1763 -- Improve error reporting if derived condition dependencies cannot be resolved
1764 -- Add illustrating example
1765
1766 * 2022-06-14 Paul Gessinger ([PR#911](https://github.com/aidasoft/DD4hep/pull/911))
1767 - Add `VariantParameters` extension + plugin to assign parameters to it by name.
1768
1769 * 2022-06-08 Andre Sailer ([PR#914](https://github.com/aidasoft/DD4hep/pull/914))
1770 - DDSim: add possibility to use individual compact files, e.g.:
1771 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
1772
1773 * 2022-05-18 Andre Sailer ([PR#912](https://github.com/aidasoft/DD4hep/pull/912))
1774 - Detector: some corrections to the function docstrings
1775
1776 * 2022-05-09 Marco Clemencic ([PR#910](https://github.com/aidasoft/DD4hep/pull/910))
1777 - 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)
1778
1779 * 2022-04-29 Andre Sailer ([PR#908](https://github.com/aidasoft/DD4hep/pull/908))
1780 - CMake: add a message about how to avoid errors when manuals cannot be build, fixes #907
1781
1782 * 2022-04-28 Juraj Smiesko ([PR#906](https://github.com/aidasoft/DD4hep/pull/906))
1783 - bootstrap script runs all tests
1784
1785 * 2022-04-28 Andre Sailer ([PR#905](https://github.com/aidasoft/DD4hep/pull/905))
1786 - SegmentationInterna: fix shadow warning for `s`
1787 - DDEve: fix shadow warnings for menuBar (bar), s
1788
1789 # v01-20-02
1790
1791 * 2022-04-04 Sanghyun Ko ([PR#902](https://github.com/aidasoft/dd4hep/pull/902))
1792 - Fix a bug that cannot set G4 const property, following up #884
1793
1794 * 2022-03-30 Valentin Volkl ([PR#899](https://github.com/aidasoft/dd4hep/pull/899))
1795 - cmake: DD4hepConfig: Drop unnecessary call to DD4HEP_SETUP_BOOST_TARGETS
1796
1797 * 2022-03-30 Markus Frank ([PR#898](https://github.com/aidasoft/dd4hep/pull/898))
1798 - Reduce coverity warnings
1799
1800 * 2022-03-21 Markus Frank ([PR#897](https://github.com/aidasoft/dd4hep/pull/897))
1801 See for the example
1802 -- /examples/ClientTests/src/MaterialTester_geo.cpp
1803 -- /examples/OpticalSurfaces/compact/ReadMaterialProperties.xml
1804 -- /examples/OpticalSurfaces/scripts/ReadMaterialProperties.py
1805
1806 The python file is only there to show that the G4 simulation does not get screwed.....
1807 Otherwise: to define properties, which do not participate in Geant4:
1808 ```
1809 <material name="Water">
1810 <D type="density" value="1.0" unit="g/cm3"/>
1811 <composite n="2" ref="H"/>
1812 <composite n="1" ref="O"/>
1813 <!-- Properties used by Geant4 -->
1814 <property name="RINDEX" ref="RINDEX__0x123aff00"/>
1815 <property name="ABSLENGTH" ref="ABSLENGTH__0x123aff00"/>
1816 <property name="FASTCOMPONENT" ref="FASTCOMPONENT__0x123aff00"/>
1817 <property name="SLOWCOMPONENT" ref="SLOWCOMPONENT__0x123aff00"/>
1818 <!-- Properties ignored by Geant4 -->
1819 <property name="Property_of_mine" ref="Water__0x123aff00"/>
1820 <constant name="BirksConstant" ref="Birk__Water|Geant4-ignore"/>
1821 <!-- Constants ignored by Geant4 -->
1822 <constant name="Constant_of_mine" ref="Water__Mine|Geant4-ignore"/>
1823 </material>
1824 ```
1825 where:
1826 ```
1827 <properties>
1828 <constant name="Birk__Water|Geant4-ignore" value="12.345678"/>
1829 <constant name="Water__Mine|Geant4-ignore" value="87.654321"/>
1830 </properties>
1831 ```
1832 and
1833 ```
1834 <matrix name= "Water__0x123aff00" option="Geant4-ignore" coldim="1" values="
1835 2.034*eV
1836 2.068*eV
1837 2.103*eV
1838 2.139*eV
1839 2.177*eV
1840 2.216*eV
1841 "/>
1842 </properties>
1843 ```
1844 For non-const properties you have to set the option to "Geant4-ignore",
1845 otherwise you append the string to the name. The "ref" string in the material
1846 and the property must match.
1847 In the program you can then access the propertiers by name like this:
1848 ```
1849 Material material(...)
1850 double v = material->GetConstProperty("BirksConstant");
1851 TGDMLMatrix* m = material->GetProperty("Property_of_mine");
1852 ```
1853 like any other property. See for details:
1854 /examples/ClientTests/src/MaterialTester_geo.cpp lines 78-108
1855
1856 * 2022-03-21 Wouter Deconinck ([PR#896](https://github.com/aidasoft/dd4hep/pull/896))
1857 - edm4hep: don't add particle as parent to its daughters, and vice versa
1858
1859 * 2022-03-15 Paul Gessinger ([PR#895](https://github.com/aidasoft/dd4hep/pull/895))
1860 - Allow relaxing the python version requirements at CMake level via option `DD4HEP_RELAX_PYVER`.
1861
1862 # v01-20-01
1863
1864 * 2022-03-08 Markus FRANK ([PR#894](https://github.com/AIDASoft/DD4hep/pull/894))
1865 - The refactoring of namespaces (some years ago) left some factory name discrepancies in DDEve.
1866 This PR fixes them and re-enables the various views and projections.
1867 See issue https://github.com/AIDASoft/DD4hep/issues/893.
1868 - There are still some issues when loading a new file, which are not yet entirely understood.
1869 The suspicion is that the displayed 2D histograms somehow "reside" in the opened file and disappear
1870 when the file is closed. This however needs confirmation (and eventually fixing).
1871
1872 * 2022-03-04 Wouter Deconinck ([PR#892](https://github.com/AIDASoft/DD4hep/pull/892))
1873 - Support `ddsim --gun.momentumMin 1*GeV --momentumMax 10*GeV` (default remains momentumMin = 0.0)
1874
1875 * 2022-02-25 Andre Sailer ([PR#891](https://github.com/AIDASoft/DD4hep/pull/891))
1876 - DDParsers: do not use deprecated boost headers with boost 1.78
1877 - DDG4 Particle.tbl: drop some diffr(active) particles causing warnings with Geant4 11.0
1878 - DetectorIMP: Changing message about Geant4 unit system to INFO, fixes #844
1879 - Volumes: Changing message about REFLECTION to DEBUG, fixes #844
1880
1881 # v01-20
1882
1883 * 2021-12-21 Markus Frank ([PR#888](https://github.com/aidasoft/DD4hep/pull/888))
1884 - Changes for Geant4 11.0.0.
1885 Propagate additional setup properties for optical parameters in Geant4ScintillationPhysics.
1886 Other required changes were already included when preparing for the Geant4 beta release.
1887 - Allow for Geant4 builds without GDML.
1888 Enable conditional build if the Geant4 build does not support GDML
1889
1890 * 2021-12-16 Thomas Madlener ([PR#887](https://github.com/aidasoft/DD4hep/pull/887))
1891 - 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:
1892 - Use `auto` wherever possible to remove any explicit mentioning of EDM4hep types.
1893 - Switch to range-based for-loops where possible
1894 - Keep an internal map of the collections to get rid of the `const_cast`s that were used before.
1895 - EDM4hep output: Make sure that the daughter relations are also set, because that is not done automatically in EDM4hep but is in LCIO.
1896
1897 * 2021-12-02 Wouter Deconinck ([PR#886](https://github.com/aidasoft/DD4hep/pull/886))
1898 - Add diquarks to default DDG4 rejectPDGs list
1899
1900 * 2021-11-26 Markus Frank ([PR#885](https://github.com/aidasoft/DD4hep/pull/885))
1901 - Remove another occurrency of a call to G4::GetPropertyIndex() with 2nd argument.
1902 - This PR is an addendum to the already closed request https://github.com/AIDASoft/DD4hep/pull/884
1903
1904 * 2021-11-22 Markus Frank ([PR#884](https://github.com/aidasoft/DD4hep/pull/884))
1905 - Issue https://github.com/AIDASoft/DD4hep/issues/881
1906 Next attempt for resolution. Avoid explicit use of the second argument in
1907 ```
1908 G4int GetConstPropertyIndex(const G4String& key,
1909 G4bool warning = false) const;
1910 // Get the constant property index from the key-name
1911
1912 G4int GetPropertyIndex(const G4String& key, G4bool warning = false) const;
1913 // Get the property index by the key-name.
1914 ```
1915 Should satisfy existing and future snapshots of Geant4.
1916
1917 # v01-19
1918
1919 * 2021-11-12 Markus Frank ([PR#882](https://github.com/aidasoft/DD4hep/pull/882))
1920 - See issue in github: https://github.com/AIDASoft/DD4hep/issues/881
1921 - Material properties have changed in Geant4 between version 10 and 11.
1922 - This fix should fix the compilation problems and take new properties in Geant4.11 into account.
1923
1924 * 2021-11-12 MarkusFrankATcernch ([PR#876](https://github.com/aidasoft/DD4hep/pull/876))
1925 - 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.
1926
1927 * 2021-11-10 Ben Couturier ([PR#880](https://github.com/aidasoft/DD4hep/pull/880))
1928 - Added the default move constructor and default move assignment operator to dd4hep::detail::ConditionObject and dd4hep::NamedObject
1929
1930 * 2021-11-03 Markus Frank ([PR#877](https://github.com/aidasoft/DD4hep/pull/877))
1931 - To not compromize client code with an enforced termination handler, the DD4hep termination handler
1932 moved to DDG4, where it actually is needed. In DDG4 the termination handler is activated when the main
1933 Geant4Kernel instance is created.
1934 Reasoning: Please see issue https://github.com/AIDASoft/DD4hep/issues/874 .
1935 - 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)
1936 Please see issue: https://github.com/AIDASoft/DD4hep/issues/878.
1937
1938 * 2021-10-13 Markus Frank ([PR#873](https://github.com/aidasoft/DD4hep/pull/873))
1939 - Remove internal classes from evaluator. Use STL provided classes
1940 - Remove hidden clashes with CLHEP evaluator (move internal class Item to anonymous namespace)
1941
1942 * 2021-09-22 Wouter Deconinck ([PR#872](https://github.com/aidasoft/DD4hep/pull/872))
1943 - Allow for specifying MomentumMin and MomentumMax in Geant4IsotropeGenerator
1944
1945 * 2021-09-15 Markus Frank ([PR#871](https://github.com/aidasoft/DD4hep/pull/871))
1946 - Finalize CAD stuff.
1947 - Fix issue https://github.com/AIDASoft/DD4hep/issues/870
1948
1949 # v01-18
1950
1951 * 2021-09-07 Wouter Deconinck ([PR#869](https://github.com/aidasoft/DD4hep/pull/869))
1952 - Use G4OpticalParameters in geant4.10.7 and newer
1953
1954 * 2021-09-06 Andre Sailer ([PR#863](https://github.com/aidasoft/DD4hep/pull/863))
1955 - DDSim: add possibility for users to inject configurations for their own output plugins. See example in OutputConfig section of the steering file
1956
1957 * 2021-08-31 Markus Frank ([PR#867](https://github.com/aidasoft/DD4hep/pull/867))
1958 - Mainly update reference files for CAD shape tests, since the order of the vertices changed when adding facets
1959 with vertex indices rather than coordinates.
1960
1961 * 2021-08-30 Markus Frank ([PR#866](https://github.com/aidasoft/DD4hep/pull/866))
1962 - The export of beoolean shapes (union, subtraction, intersection) to was not properly working
1963 and actually casued segment vialotions. This PR fixes the problem and handles these shapes
1964 properly using the RootCsg operations for boolean shapes.
1965 - Examples geometries were provided by Gerri from FCC: examples/ClientTests/compact/FCCmachine and files thereein.
1966 - Test example is in DDCAD: DDCAD_export_FCC_machine and DDCAD_import_FCC_machine
1967 - This PR addresses the issues: https://github.com/AIDASoft/DD4hep/issues/813 , https://github.com/AIDASoft/DD4hep/issues/858
1968
1969 * 2021-08-25 Markus Frank ([PR#865](https://github.com/aidasoft/DD4hep/pull/865))
1970 - In cmake tests use the macro ${Python_EXECUTABLE} to invoke the python interpreter rather than
1971 only `python`.
1972 - if `FIND_PACKAGE(Python ${REQUIRE_PYTHON_VERSION} EXACT QUIET COMPONENTS Interpreter)`
1973 does not resolve the python executable fall back to `python${Python_VERSION_MAJOR}`.
1974
1975 * 2021-08-24 Markus FRANK ([PR#864](https://github.com/aidasoft/DD4hep/pull/864))
1976 - Support for multiple readouts or (G4VUserParallelWorld equivalent)
1977 Issue https://github.com/AIDASoft/DD4hep/issues/861
1978 Example:
1979 examples/CLICSiD/compact/SiD_ECAL_Parallel_Readout.xml +
1980 examples/CLICSiD/scripts/SiD_ECAL_Parallel_Readout.py
1981
1982 For a given subdetector the sequence of sensitive actions can be enhanced
1983 having multiple sensitive actions where each one can have its own Readout
1984 definition. Hence each action can produce its own set of hits depending on the
1985 readout geometry (segmentation).
1986 in XML these readout structures must first be defined:
1987 ```
1988 <readouts>
1989 <readout name="EcalBarrelHits">
1990 <segmentation type="CartesianGridXY" grid_size_x="3.5" grid_size_y="3.5" />
1991 <id>system:8,barrel:3,module:4,layer:6,slice:5,x:32:-16,y:-16</id>
1992 </readout>
1993
1994 <readout name="EcalBarrelHits_0">
1995 <segmentation type="CartesianGridXY" grid_size_x="1" grid_size_y="1" />
1996 <id>system:8,barrel:3,module:4,layer:6,slice:5,x:32:-16,y:-16</id>
1997 </readout>
1998 ....
1999 </readouts>
2000
2001 ```
2002 and can then be assigned to the sensitive actions in the python setup:
2003 ``` det = str('EcalBarrel')
2004 typ = sid.geant4.sensitive_types['calorimeter']
2005 seq = DDG4.SensitiveSequence(sid.kernel, str('Geant4SensDetActionSequence/') + det)
2006 seq.enableUI()
2007 act = DDG4.SensitiveAction(sid.kernel, str(typ + '/EcalBarrelHandler'), det)
2008 act.enableUI()
2009 seq.add(act)
2010 # Add extra parallel readout action with readout EcalBarrelHits_0
2011 act = DDG4.SensitiveAction(sid.kernel, str(typ + '/EcalBarrelHandler_0'), det)
2012 act.ReadoutName = 'EcalBarrelHits_0'
2013 act.enableUI()
2014 seq.add(act)
2015 # Add extra parallel readout action with readout EcalBarrelHits_1
2016 act = DDG4.SensitiveAction(sid.kernel, str(typ + '/EcalBarrelHandler_1'), det)
2017 act.ReadoutName = 'EcalBarrelHits_1'
2018 ...
2019 ```
2020
2021 * 2021-08-10 Wouter Deconinck ([PR#860](https://github.com/aidasoft/DD4hep/pull/860))
2022 - Optionally import gdml physvol below top level, avoiding world
2023
2024 * 2021-08-03 Valentin Volkl ([PR#855](https://github.com/aidasoft/DD4hep/pull/855))
2025 - [testing] separate import test for ddg4 and rest of dd4hep
2026
2027 * 2021-07-29 Markus FRANK ([PR#853](https://github.com/aidasoft/DD4hep/pull/853))
2028 - Implement fix as proposed in issue https://github.com/AIDASoft/DD4hep/issues/850.
2029
2030 * 2021-07-27 Whitney Armstrong ([PR#851](https://github.com/aidasoft/DD4hep/pull/851))
2031 - Using `ref="OtherVisName"` attribute with the `vis` tag, the visualization attribute is an extension of
2032 `"OtherVisName"` which is used to initialize the new vis attribute.
2033 - The new VisAttr inherits all the properties of the ref and additional arguments override these values.
2034
2035 Example where the only difference is the `alpha` value.
2036
2037 ```
2038 <vis name="SiVertexBarrelModuleVis"
2039 alpha="1.0" r="1.0" g="0.75" b="0.76"
2040 drawingStyle="wireframe"
2041 showDaughters="false"
2042 visible="true"/>
2043
2044 <vis name="SiVertexEndcapModuleVis"
2045 ref="SiVertexBarrelModuleVis"
2046 alpha="0.5"/>
2047 ```
2048
2049 * 2021-07-22 Whitney Armstrong ([PR#849](https://github.com/aidasoft/DD4hep/pull/849))
2050 - Fix G4Sphere construction to use delta theta/phi instead of TGeo's ending angles phi2/theta2.
2051
2052 * 2021-07-21 Placido Fernandez Declara ([PR#847](https://github.com/aidasoft/DD4hep/pull/847))
2053 - EDM4hepOutput: On collection creation for EDM4hep, save CellIDEncodingString
2054
2055 * 2021-06-24 Thomas Madlener ([PR#843](https://github.com/aidasoft/DD4hep/pull/843))
2056 - Explicitly enable `C` as language to avoid problems in the build file generation step of cmake (see spack/spack#24232)
2057
2058 # v01-17-00
2059
2060 * 2021-06-02 Andre Sailer ([PR#838](https://github.com/aidasoft/DD4hep/pull/838))
2061 - Geant4ShapeConverter: ExtrudedSolid: convert all vertices, fix #836, https://github.com/cms-sw/cmssw/issues/33656
2062
2063 * 2021-06-01 Marko Petric ([PR#840](https://github.com/aidasoft/DD4hep/pull/840))
2064 - Do not propagate CMAKE_BUILD_TYPE in DD4hepConfig.cmake
2065
2066 * 2021-05-27 Markus FRANK ([PR#835](https://github.com/aidasoft/DD4hep/pull/835))
2067 - On divisions the created solids did not carry the proper tag to identify them.
2068 This PR fixes this issue when multi-volumes are imported in dd4hep.
2069 See issue https://github.com/AIDASoft/DD4hep/issues/833
2070
2071 * 2021-05-17 Markus FRANK ([PR#829](https://github.com/aidasoft/DD4hep/pull/829))
2072 - Add missing Solid instantiation for TGeoCtub
2073
2074 * 2021-05-12 Andre Sailer ([PR#823](https://github.com/aidasoft/DD4hep/pull/823))
2075 - DDSim: add possibility for users to extend the physics setup with Physics.setupUserFunction
2076
2077 * 2021-05-07 Markus FRANK ([PR#825](https://github.com/aidasoft/DD4hep/pull/825))
2078 - Fix as reported from CMS
2079
2080 * 2021-05-01 Markus FRANK ([PR#821](https://github.com/aidasoft/DD4hep/pull/821))
2081 - Fix issue #820
2082
2083 * 2021-04-27 Andre Sailer ([PR#817](https://github.com/aidasoft/DD4hep/pull/817))
2084 - Move `create_segmentation` to DDCore/include/DD4hep/detail/SegmentationsInterna.h to allow segmentation creation in other libraries
2085 - Removed REGISTER_SEGMENTATION macro and DDSegmentation::SegmentationFactory class because they are obsolete. Use DECLARE_SEGMENTATION to create a plugin entry for segmentations.
2086
2087 * 2021-04-24 Markus FRANK ([PR#816](https://github.com/aidasoft/DD4hep/pull/816))
2088 - Following requests, the support to output Volumes as CAD meshes.
2089 Depending on the underlying technology material names and visual attributes are supported
2090 - Improve CAD imports to take into account material names and visual attributes if supported
2091 by the underlying CAD format.
2092 - Add two examples showing the import and export technique.
2093
2094 * 2021-04-15 Markus FRANK ([PR#809](https://github.com/aidasoft/DD4hep/pull/809))
2095 - DDG4: Extend existing sensitive detectors to be used for GFlash parametrized fast simulations
2096 - DDG4: Remove legacy sensitive detectors, since they are no longer used by FCC
2097
2098 * 2021-04-15 Markus FRANK ([PR#808](https://github.com/aidasoft/DD4hep/pull/808))
2099 - Disable copy and move construction/assignment in Geant4 data
2100 See issue https://github.com/AIDASoft/DD4hep/issues/807
2101 - Adopt new naming convention for Geant4 assembly imprints
2102 See issue https://github.com/AIDASoft/DD4hep/issues/804
2103 - Add G4FastSimulationManagerProcess for GFlash
2104
2105 * 2021-04-12 Marko Petric ([PR#803](https://github.com/aidasoft/DD4hep/pull/803))
2106 - Fix bug in evaluator reported by Coverity
2107
2108 # v01-16-01
2109
2110 * 2021-03-26 Andre Sailer ([PR#799](https://github.com/AIDASoft/DD4hep/pull/799))
2111 - DDG4: flush the geant4 strstream buffer after run. fixes #798
2112
2113 * 2021-03-26 Marko Petric ([PR#793](https://github.com/AIDASoft/DD4hep/pull/793))
2114 - Account for possible units rounding bug in Tube creation (address #784 )
2115
2116 * 2021-03-23 Andre Sailer ([PR#797](https://github.com/AIDASoft/DD4hep/pull/797))
2117 - DDG4Dict: Adapt to changes in Root 6.24
2118
2119 * 2021-03-23 Andre Sailer ([PR#796](https://github.com/AIDASoft/DD4hep/pull/796))
2120 - RootDictionary: fix incompatibility with Root 6.24
2121
2122 * 2021-03-23 Andre Sailer ([PR#795](https://github.com/AIDASoft/DD4hep/pull/795))
2123 - Geant4Input: Add debug output for accepting or rejecting Particles
2124
2125 * 2021-03-14 Markus FRANK ([PR#794](https://github.com/AIDASoft/DD4hep/pull/794))
2126 - Address Coverity issues
2127
2128 * 2021-03-12 Marko Petric ([PR#792](https://github.com/AIDASoft/DD4hep/pull/792))
2129 - Use `CMAKE_SHARED_LIBRARY_SUFFIX` to define suffix of assimp libs
2130 - Define `BUILD_BYPRODUCTS` for compatibility with `ninja`
2131
2132 * 2021-03-12 Markus FRANK ([PR#791](https://github.com/AIDASoft/DD4hep/pull/791))
2133 - Remove a bunch of Coverity warnings.
2134
2135 * 2021-03-12 MarkusFrankATcernch ([PR#790](https://github.com/AIDASoft/DD4hep/pull/790))
2136 - update materialBudget utility
2137 - allow to optionally use pseudo rapidity eta rather than polar angle
2138
2139 * 2021-03-12 Marko Petric ([PR#788](https://github.com/AIDASoft/DD4hep/pull/788))
2140 - Use flag `--as-needed` for GNU linkers
2141
2142 * 2021-03-11 Markus FRANK ([PR#789](https://github.com/AIDASoft/DD4hep/pull/789))
2143 - Fix several coverity warnings
2144 - Fix bug in extracting unsigned int/long from xml: conversion to unsigned values had a bug.
2145 - Remove unnecessary printout in Geant4Converter
2146
2147 # v01-16
2148
2149 * 2021-03-02 Markus FRANK ([PR#787](https://github.com/AIDASoft/DD4hep/pull/787))
2150 - Resolves #786. Also add an example to reproduce the Fix.
2151 - Add protection in Detector object against registering DetElements without placement
2152 - Modernize loop handling according to C++ 17 standards
2153
2154 * 2021-02-15 Andre Sailer ([PR#783](https://github.com/AIDASoft/DD4hep/pull/783))
2155 - Adapt to new ROOT mechanism for switching the unit system.
2156 Units can be switched now multiple times provided the units are unlocked in the TGeoManager.
2157 See TGeoManager::LockDefaultUnits(Bool_t new_value).
2158 This is only available for ROOT versions >= 6.22.08
2159 - Improve examples/Conditions. Allow for more complex dependencies. Not enabled by default.
2160
2161 * 2021-01-31 Markus FRANK ([PR#779](https://github.com/AIDASoft/DD4hep/pull/779))
2162 - Propagate changes in ComponentCast to the EDM module
2163
2164 * 2021-01-30 Markus FRANK ([PR#778](https://github.com/AIDASoft/DD4hep/pull/778))
2165 - Move the header DD4hep/detail/Grammar_parsed.h to DD4hep/GrammarParsed.h
2166 - Move the header DD4hep/detail/Grammar_unparsed.h to DD4hep/GrammarUnparsed.h
2167 - Try to improve type agnostic ABI cast. Works for down casts only.
2168
2169 * 2021-01-08 Markus FRANK ([PR#772](https://github.com/AIDASoft/DD4hep/pull/772))
2170 - 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.
2171 - 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.
2172 - 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.
2173 - Remove inclusions of `Plugins.h` from being processed by rootcling. Plugins.h uses `#include <any>`, which cannot be processed.
2174
2175 * 2020-12-18 Marko Petric ([PR#771](https://github.com/AIDASoft/DD4hep/pull/771))
2176 - Expand list of cmake versions that have bug in detecting python version (see AIDASoft/podio#162)
2177
2178 # v01-15
2179
2180 * 2020-12-08 Frank Gaede ([PR#740](https://github.com/AIDASoft/DD4hep/pull/740))
2181 - add back the Geant4Output2EDM4hep plugin from EDM4hep
2182 - use optional flag `D4HEP_USE_EDM4HEP` to build this
2183 - requires podio and EDM4hep to be present
2184 - fix treatment of units in Geant4Output2EDM4hep
2185 - DDTest: add optional ddsim tests with edm4hep and lcio output (A.Sailer)
2186 - enable `D4HEP_USE_EDM4HEP` in CI for dev (A.Sailer)
2187
2188 * 2020-12-07 Christopher Jones ([PR#767](https://github.com/AIDASoft/DD4hep/pull/767))
2189 - Made internal classes used by Evaluator to be less stateful
2190 - Switch to using a read/write lock as modifications to the Evaluator are much less frequent than reads.
2191 - Added unit test for Evaluator
2192
2193 * 2020-12-04 Andre Sailer ([PR#766](https://github.com/AIDASoft/DD4hep/pull/766))
2194 - DDG4: hepmc3reader: add checks for read and skip success
2195 - DDTest: test hepmc3 reader, make lcio and hepmc3 reader tests depend on configuration.
2196
2197 * 2020-12-04 Andre Sailer ([PR#765](https://github.com/AIDASoft/DD4hep/pull/765))
2198 - 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
2199
2200 * 2020-12-03 MarkusFrankATcernch ([PR#753](https://github.com/AIDASoft/DD4hep/pull/753))
2201 - Always use `CLHEP/Units/SystemOfUnits.h` and never `G4SystemOfUnits.hh`
2202 - in `G4SystemOfUnits.hh`units are directly in the top level namespace
2203 - in `CLHEP/Units/SystemOfUnits.h` units are in the `CLHEP::` namespace
2204 - Remove all usage `using namespace CLHEP` and `using CLHEP::__some_unit__` to clarify which unit is used
2205
2206 * 2020-12-02 MarkusFrankATcernch ([PR#764](https://github.com/AIDASoft/DD4hep/pull/764))
2207 - Make scaled shapes includes conditional on Geant4 version (>=10.3)
2208 - Improve thread safety of expression evaluator
2209
2210 * 2020-12-02 Andre Sailer ([PR#754](https://github.com/AIDASoft/DD4hep/pull/754))
2211 - ddsim: fix problem with `--dumpSteeringFile` in python3
2212 - ddsim: fix issue in where isotrop was False, when distribution was set (python3)
2213 - ddsim: fix exception in exceptions for gun direction and position
2214 - ddsim: fix problem where `hepmc.useHepMC3` was always True by default
2215 - 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.
2216 - DDG4Dict: remove `dd4hep::sim::Geant4InputAction::Particles;` as this is available under a different name, fixes warning
2217 - 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
2218
2219 * 2020-11-24 MarkusFrankATcernch ([PR#757](https://github.com/AIDASoft/DD4hep/pull/757))
2220 - 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.
2221
2222 * 2020-11-24 Marko Petric ([PR#751](https://github.com/AIDASoft/DD4hep/pull/751))
2223 - Resolve which type of linker is used and assign proper linking flags
2224
2225 * 2020-11-21 Markus FRANK ([PR#756](https://github.com/AIDASoft/DD4hep/pull/756))
2226 - Remove from Geant4 conversion of scaled shapes artifacts of the prior implementation of reflections.
2227 This was a wrong implementation and should now be fixed.
2228 This PR should fix issue https://github.com/AIDASoft/DD4hep/issues/750
2229 - Introduce the Scale (based on TGeoScaledShape) as a separate shape om DD4hep.
2230 - Add test for scaled shape
2231
2232 * 2020-11-19 Marko Petric ([PR#749](https://github.com/AIDASoft/DD4hep/pull/749))
2233 - Add explanation of the system of units to the user manual
2234
2235 * 2020-11-19 MarkusFrankATcernch ([PR#748](https://github.com/AIDASoft/DD4hep/pull/748))
2236 - Review documentation
2237 o Add chapter to describe MC truth handling for DDG4
2238 o Review shape and shape plugin section in the DD4hep manual
2239 - Adapt ConeSegment shape plugin to allow for standard syntax
2240 - Fix Torus shape plugin and test
2241 - Add copyright notice to various test files
2242
2243 * 2020-11-19 Ole Hansen ([PR#745](https://github.com/AIDASoft/DD4hep/pull/745))
2244 - 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
2245
2246 * 2020-11-19 Ole Hansen ([PR#743](https://github.com/AIDASoft/DD4hep/pull/743))
2247 - Fix compilation warnings from Apple Clang 12
2248 - Fix broken `t_CLICSiD_DDG4_g4geometry_scan_LONGTEST` test condition which always matched.
2249
2250 * 2020-11-18 Ole Hansen ([PR#744](https://github.com/AIDASoft/DD4hep/pull/744))
2251 - CMake: Fix regression that examples and example tests can now be built and run together with the main project
2252
2253 * 2020-11-16 Markus FRANK ([PR#747](https://github.com/AIDASoft/DD4hep/pull/747))
2254 - Add documentation of DDG4 Monte-Carlo truth handler
2255 - Add documentation of DDG4 ROOT output module
2256
2257 * 2020-11-13 Markus FRANK ([PR#742](https://github.com/AIDASoft/DD4hep/pull/742))
2258 - Add example for CMS CSC: tests divisions
2259 - Add example for CMS ECAL: tests reflections
2260 - 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
2261 The example also includes a small script to read back the data generated with this example:
2262 Command line usage:
2263 * $> root.exe
2264 * ....
2265 * root [0] gSystem->Load("libDDG4Plugins.so");
2266 * root [1] gSystem->Load("libDDG4_MySensDet.so");
2267 * root [2] SomeExperiment::Dump::dumpData(<num-ebents>,<file-name>);
2268
2269 - Remove the odd shadowing warning.
2270 - Improve visualization attributes:
2271 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.
2272 This should be fixed by asking for the transparent color only once at the level of the attribute rather then for each volume.
2273
2274 * 2020-11-11 Frank Gaede ([PR#738](https://github.com/AIDASoft/DD4hep/pull/738))
2275 - fix units in DDG4/LCIO conversions
2276 - prepend namespace CLHEP where missing
2277
2278 * 2020-11-10 Markus FRANK ([PR#736](https://github.com/AIDASoft/DD4hep/pull/736))
2279 - Update DDCMS example to take into account new xml tags.
2280 - Improve some core object helpers
2281
2282 * 2020-11-06 Markus FRANK ([PR#734](https://github.com/AIDASoft/DD4hep/pull/734))
2283 - No new implementation for reflections. Still uses TGeo way with scaled shape.
2284 This implementation is not supposed to be used.
2285 - Added test to debug reflections
2286
2287 * 2020-11-05 Ianna Osborne ([PR#732](https://github.com/AIDASoft/DD4hep/pull/732))
2288 - Examples.DDCMS: add CMS EcalEndcap description to test reflected volumes
2289
2290 * 2020-11-03 Andre Sailer ([PR#731](https://github.com/AIDASoft/DD4hep/pull/731))
2291 - Tests: Always run AClick tests sequentially, fixes #730
2292
2293 * 2020-11-03 Andre Sailer ([PR#728](https://github.com/AIDASoft/DD4hep/pull/728))
2294 * CMake: fix python version compatibility check between python and root used for python. Add exception for CMake 3.17.1
2295 * Tests: fix some test configuration to run all tests after `-D DD4HEP_BUILD_EXAMPLES=ON`
2296 * Tests: fix tests for root 6.22.04 and master
2297
2298 * 2020-11-02 Andre Sailer ([PR#725](https://github.com/AIDASoft/DD4hep/pull/725))
2299 - CMake: fail if ROOT and DD4hep python disagree
2300
2301 * 2020-10-14 Ianna Osborne ([PR#723](https://github.com/AIDASoft/DD4hep/pull/723))
2302 - SpecParRegistry: remove need for TBB
2303 - TBB has a slight overhead compare to std containers
2304 - Using std containers allows to return references to the containers in the registry
2305
2306 - Reverse the plan to process XML files in parallel
2307
2308 # v01-14-01
2309
2310 * 2020-10-02 Markus Frank ([PR#720](https://github.com/AIDASoft/DD4hep/pull/720))
2311 - Add the ability to access the `DetElement` in a derived condition. Access to it is enabled now for all
2312 compilations (Debug + Release).
2313 - When parsing compact, it is possible to inject plugins to create tables with tabulated properties in C++
2314 - When parsing compact, it is possible to inject plugins to assign property tables to materials.
2315
2316 * 2020-09-28 Marko Petric ([PR#718](https://github.com/AIDASoft/DD4hep/pull/718))
2317 - Replace deprecated `PyOS_AfterFork` with `PyOS_AfterFork_Child` for python 3.7 and above
2318
2319 # v01-14
2320
2321 * 2020-09-26 Markus Frank ([PR#717](https://github.com/aidasoft/dd4hep/pull/717))
2322 - Propagate condition names for printouts. Names are enabled by default. The feature can be disabled
2323 to minimize conditions memory footprint. Comment `DD4HEP_CONDITIONS_HAVE_NAME` in `DD4hep/config.h`
2324
2325 - 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.
2326
2327 - Update and fix some tests, which were assuming names
2328
2329 * 2020-09-25 Marko Petric ([PR#715](https://github.com/aidasoft/dd4hep/pull/715))
2330 - Rename `TruncatedTube` `zHalf` accessor with `dZ` resolves #714
2331 - Add to `Trap` missing `dZ` accessor resolves #713
2332
2333 * 2020-09-23 Andre Sailer ([PR#712](https://github.com/aidasoft/dd4hep/pull/712))
2334 - Cmake: add configuration option DD4HEP_BUILD_DEBUG, if ON or OFF enable or disable the DD4HEP_DEBUG definition
2335 if not set, enable if BuildType is Debug, fixes #708
2336
2337 * 2020-09-23 bcouturi ([PR#709](https://github.com/aidasoft/dd4hep/pull/709))
2338 - Added geoWebDisplay command that uses jsroot to render the Geometry, requires ROOT7 ROOTEve
2339
2340 * 2020-09-23 Andre Sailer ([PR#707](https://github.com/aidasoft/dd4hep/pull/707))
2341 - DDG4.HepEvtReader: fix reading of input particles, fixes #706
2342 - DDG4.HepEvtReader: fix the units, expecting GeV, mm as units of input files.
2343 - DDG4.HepEvtReader: add abort if the file cannot be read, e.g., when the content doesn't match what is expected
2344
2345 * 2020-09-22 Marko Petric ([PR#710](https://github.com/aidasoft/dd4hep/pull/710))
2346 - Fix variable name`SIGNATURE` in `Plugins.h` and `Plugins.inl` that conflicts with `#define` from `utmpx.h` in macOS libc implementation. Resolves #700
2347 - Migrate CI from Travis-CI to GitHub Actions and include macOS and ubuntu18 tests
2348
2349 * 2020-09-17 Marko Petric ([PR#704](https://github.com/aidasoft/dd4hep/pull/704))
2350 - Apply `clang-tidy` `llvm-header-guard` fixer
2351
2352 * 2020-09-16 Andre Sailer ([PR#705](https://github.com/aidasoft/dd4hep/pull/705))
2353 - DDSim: add options to select which sensitive detectors are trackers and calorimeters, defaults unchanged
2354 - DDSim: tweak log output formatting, logging goes now to stdout instead of stderr
2355 - SiD example: remove `track_length_max` and `time_max` from silicon limits (fixes part of #703 )
2356
2357 * 2020-09-07 Markus Frank ([PR#702](https://github.com/aidasoft/dd4hep/pull/702))
2358 - Add `starttheta`, `endtheta`, `endphi` xml accessors.
2359 - Fix sphere shape creator and update shape example.
2360
2361 * 2020-09-04 Markus Frank ([PR#697](https://github.com/aidasoft/dd4hep/pull/697))
2362 - 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.
2363
2364 * 2020-09-03 Marko Petric ([PR#699](https://github.com/aidasoft/dd4hep/pull/699))
2365 - Set search order for python on macOS to search for system/framework python last (change in behavior of cmake 3.14->3.15)
2366
2367 * 2020-07-31 Markus Frank ([PR#692](https://github.com/aidasoft/dd4hep/pull/692))
2368 - Protect XML file handling against non-existing files.
2369
2370 * 2020-07-30 Markus Frank ([PR#691](https://github.com/aidasoft/dd4hep/pull/691))
2371 - Improve matrix helpers: Add extractors for scale and translation as `XYZVector` from `TGeoMatrix`.
2372 - Add example to simulate the MiniTel with DDG4 using a HepMC input file
2373 - Add example to load a sub-detector geometry from gdml.
2374
2375 * 2020-07-27 Markus Frank ([PR#690](https://github.com/aidasoft/dd4hep/pull/690))
2376 1) New example to show the usage of multiple compact input files being processed from the command line.
2377 The example illustrates how to maniplulate the opening and the closing of the geometry using the compact notation.
2378 ```
2379 geoDisplay -input file:SiD_multiple_inputs.xml \
2380 -input file:SiD_detectors_1.xml \
2381 -input file:SiD_detectors_2.xml \
2382 -input file:SiD_close.xml \
2383 -print INFO -destroy -volmgr -load```
2384 2) New example to scan the geometry starting from a given position in a certain direction. Command line like for g4MaterialScan.
2385 The output shows then the pathes to the volumes traversed, the shape and the material of these volumes.
2386
2387 `g4GeometryScan --compact=DDDetectors/compact/SiD.xml --position=0,0,0 --direction=0,1,0`
2388
2389 Resulting output:
2390 ```
2391 GeometryScan WARN Starting tracking action for track ID=1
2392 +--------------------------------------------------------------------------------------------------------------------------------------------------
2393 | Material scan between: x_0 = ( 0.00, 0.00, 0.00) [cm] and x_1 = ( 0.00,3000.00, 0.00) [cm] TrackID:1:
2394 +--------------------------------------------------------------------------------------------------------------------------------------------------
2395 | \ Path
2396 | Num. \ Thickness Length Endpoint Volume , Shape , Material
2397 | Layer \ [cm] [cm] ( cm, cm, cm)
2398 +--------------------------------------------------------------------------------------------------------------------------------------------------
2399 | 1 2.4500 2.450 ( 0.00, 2.45, 0.00) Path:"/world/BeamPipeVacuum_62" Shape:G4Polycone Mat:Vacuum
2400 | 2 0.0500 2.500 ( 0.00, 2.50, 0.00) Path:"/world/Beampipe_53" Shape:G4Polycone Mat:Beryllium
2401 | 3 0.1802 2.680 ( 0.00, 2.68, 0.00) Path:"/world/av_3_impr_1_layer1_pv_0" Shape:G4Tubs Mat:Air
2402 | 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
2403 | 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
2404 | 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
2405 | 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
2406 | 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
2407 | 9 0.1596 2.900 ( 0.00, 2.90, 0.00) Path:"/world/av_3_impr_1_layer1_pv_0" Shape:G4Tubs Mat:Air
2408 | 10 0.7000 3.600 ( 0.00, 3.60, 0.00) Path:"/world" Shape:G4Box Mat:Air
2409 | 11 0.1844 3.784 ( 0.00, 3.78, 0.00) Path:"/world/av_3_impr_1_layer2_pv_1" Shape:G4Tubs Mat:Air
2410 | 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
2411 ....
2412 ```
2413
2414 # v01-13-01
2415
2416 * 2020-07-10 Markus Frank ([PR#686](https://github.com/AIDASoft/DD4hep/pull/686))
2417 - Fix bug in `VolumeBuilder` where `VolIDs` were not properly set to physical volumes if the `xml` supported an `id` tag.
2418
2419 # v01-13
2420
2421 * 2020-07-02 MarkusFrankATcernch ([PR#684](https://github.com/AIDASoft/DD4hep/pull/684))
2422 - Fix compiler issue for clang 3.9 (resolves #683)
2423
2424 * 2020-07-02 Andre Sailer ([PR#682](https://github.com/AIDASoft/DD4hep/pull/682))
2425 - CMake: add option `DD4HEP_USE_TBB` to require TBB or not
2426 - `Filter` and `SpecParRegistry` classes from CMSSW (see #675)
2427
2428 * 2020-07-01 vvolkl ([PR#679](https://github.com/AIDASoft/DD4hep/pull/679))
2429 - Add CPack Configuration
2430
2431 * 2020-06-30 Markus Frank ([PR#680](https://github.com/AIDASoft/DD4hep/pull/680))
2432 - adopt IOV changes from @pikacic to work on macOS (see #678).
2433
2434 * 2020-06-30 Marco Clemencic ([PR#678](https://github.com/AIDASoft/DD4hep/pull/678))
2435 - Modernization and clean up of `dd4hep::IOV` (`using` instead of `typedef`, `constexpr` instead of `enum`)
2436 - Make `dd4hep::IOV::Key` uniform wrt first and second type
2437 - Use `std::int64_t`instead of `long` for `dd4hep::IOV::Key` elements
2438
2439 * 2020-06-18 lintao ([PR#677](https://github.com/AIDASoft/DD4hep/pull/677))
2440 - Fixed the `CLHEP::mm` to `dd4hep::mm` conversion problem in `DDG4/src/Geant4SensitiveDetector.cpp`
2441
2442 * 2020-06-11 Markus FRANK ([PR#676](https://github.com/AIDASoft/DD4hep/pull/676))
2443 - Fix problem with missing header in DDEve appearing in ROOT head.
2444
2445 * 2020-06-08 Marko Petric ([PR#673](https://github.com/AIDASoft/DD4hep/pull/673))
2446 - Use unique include guard in `BitFieldCoder.h`
2447 - fix ambiguity in test between `BitField64` in LCIO and DD4hep
2448 - Cast to string `coll_nam` in `DDG4.py` before using further, otherwise string concatenation does not work
2449
2450 * 2020-05-29 Andre Sailer ([PR#672](https://github.com/AIDASoft/DD4hep/pull/672))
2451 - Use unique include guards
2452
2453 * 2020-04-24 Frank Gaede ([PR#663](https://github.com/AIDASoft/DD4hep/pull/663))
2454 - fix compilation of `DigiKernel.cpp` with TBB
2455
2456 * 2020-04-09 Andre Sailer ([PR#660](https://github.com/AIDASoft/DD4hep/pull/660))
2457 - DDG4: fix behaviour of ParticleRejectFilter and ParticleSelectFilter, They now properly select or reject the given particle type, instead of the opposite. Fixes #657
2458
2459 * 2020-04-09 Markus FRANK ([PR#659](https://github.com/AIDASoft/DD4hep/pull/659))
2460 - 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.
2461
2462 * 2020-04-09 Marko Petric ([PR#654](https://github.com/AIDASoft/DD4hep/pull/654))
2463 - Rewrite rpath usage on macOS and make it relocatable with help of `@rpath`
2464 - itroduce new option `DD4HEP_SET_RPATH` default `ON`
2465 - adopt `thisdd4hep.sh` and other `.sh` scripts to work with zsh (new default for macOS 10.15)
2466 - Drop `MakeGaudiMap.cmake` and call directly `listcomponents`
2467 - fix env settings for macOS
2468 - Drop deprecated `-std=` flag in dictionary creation
2469
2470 * 2020-03-23 Andre Sailer ([PR#652](https://github.com/AIDASoft/DD4hep/pull/652))
2471 - Documentation: fix broken mathml, fixes #651
2472
2473 * 2020-03-20 Andre Sailer ([PR#649](https://github.com/AIDASoft/DD4hep/pull/649))
2474 - 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)"
2475
2476 * 2020-03-20 Andre Sailer ([PR#632](https://github.com/AIDASoft/DD4hep/pull/632))
2477 - CMake: Adapt to ROOT 6.22 python library ROOTTPython
2478
2479 * 2020-03-18 Andre Sailer ([PR#636](https://github.com/AIDASoft/DD4hep/pull/636))
2480 - DDG4: add reader for HepMC3 files
2481 - DDG4: add generic EventParameters class to pass event level parameters from different input sources to different output sources, supercedes the LCIOEventParameters class
2482
2483 * 2020-03-11 Markus Frank ([PR#647](https://github.com/AIDASoft/DD4hep/pull/647))
2484 - 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:
2485 ```xml
2486 <XXX ref="file-name" material="material-name">
2487 <material name="material-name"/> <!-- alternative: child or attr -->
2488
2489 Envelope: Use special envelop shape (default: assembly)
2490 The envelope tag must match the expected pattern of the utility
2491 dd4hep::xml::createStdVolume(Detector& desc, xml::Element e)
2492 <envelope name="volume-name" material="material-name">
2493 <shape name="shape-name" type="shape-type" args....>
2494 </shape>
2495 </envelope>
2496
2497 Option 1: No additional children. use default material
2498 and place all children in the origin of the envelope
2499
2500 Option 2: Volume with default material
2501 <volume name="vol-name"/>
2502
2503 Option 3: Volume with non-default material
2504 <volume name="vol-name" material="material-name"/>
2505
2506 Option 4: Volume with optional placement. No position = (0,0,0), No rotation = (0,0,0)
2507 <volume name="vol-name" material="material-name"/>
2508 <position x="0" y="0" z="5*cm"/>
2509 <rotation x="0" y="0" z="0.5*pi*rad"/>
2510 </volume>
2511
2512 For sensitive volumes: add physical volume IDs:
2513 <volume name="vol-name" material="material-name"/>
2514 <physvolid name="layer" value="1"/>
2515 <physvolid name="slice" value="10"/>
2516 </volume>
2517 </XXX>
2518 ```
2519
2520 # v01-12-01
2521
2522 * 2020-03-03 Marko Petric ([PR#641](https://github.com/AIDASoft/DD4hep/pull/641))
2523 - DDSim: make the output of `ddsim --dumpSteeringFile` visible again
2524 - DDSim: fix exception in ConfigHelper.printOptions, called by `--dumpParameters` option
2525 - DDSim: fix parsing of vector command line parameters, gun.position, gun.direction etc.
2526 - DDSim: better testing of command line parameters
2527
2528 * 2020-03-03 vvolkl ([PR#640](https://github.com/AIDASoft/DD4hep/pull/640))
2529 - DDSim: add option to use edm4hep output
2530
2531 # v01-12
2532
2533 * 2020-02-26 Andre Sailer ([PR#637](https://github.com/aidasoft/dd4hep/pull/637))
2534 - LcioEventReader: fix setting of color flow, second coordinate was never set
2535
2536 * 2020-02-25 Markus Frank ([PR#633](https://github.com/aidasoft/dd4hep/pull/633))
2537 - 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.
2538 - DDCAD used the [assimp](https://github.com/assimp/assimp) librray to interprete the CAD files.
2539 - Simplify grammar instantiation.
2540 - For grammars to be parsed with `boost::spirit` simply include
2541 `#include "DD4hep/detail/Grammar_parsed.h"`
2542 - For Grammars which should **not be parsed** with `boost::spirit` include
2543 `#include "DD4hep/detail/Grammar_unparsed.h"`
2544 - To instantiate the code and to register the instantiation call:
2545 `template <> dd4hep::Grammar<my-class>;`
2546 - If the Grammar is supposed to be registered call instead/in addition:
2547 `static auto s_registry = GrammarRegistry::pre_note<my-class>();`
2548 - All other macros are gone.
2549
2550 * 2020-02-21 Andre Sailer ([PR#631](https://github.com/aidasoft/dd4hep/pull/631))
2551 - Only build DDG4 Python dependent libraries and pcms if Python and PyROOT are found
2552
2553 * 2020-02-21 Andre Sailer ([PR#627](https://github.com/aidasoft/dd4hep/pull/627))
2554 - MakeGaudiMap: better inference of listcomponents and library location by using target properties
2555 - MakeGauiMap: Detailed information about the command is not only printed when VERBOSE=1
2556
2557 * 2020-02-19 Marko Petric ([PR#626](https://github.com/aidasoft/dd4hep/pull/626))
2558 - Check in python modules that load `libglapi` is only called if the library is not already loaded.
2559
2560 * 2020-02-19 Sebastien Ponce ([PR#624](https://github.com/aidasoft/dd4hep/pull/624))
2561 - Fixed bug in the `dd4hep_add_test_reg` function which was only taking into account the last dependency of a test when several were present.
2562
2563 * 2020-02-19 Marko Petric ([PR#622](https://github.com/aidasoft/dd4hep/pull/622))
2564 - Add missing conversion from `unicode` to `str` for python 2 case in `DDrec.py`
2565 - Add test to check dd4hep python module imports
2566 - Fixes for tests from examples:
2567 - typo in tessellated example
2568 - make gdml read test dependent on the gdml write test
2569 - Add check to test if the version of python used to build ROOT is the same to the version detected by CMake to build DD4hep (works only from ROOT 6.20)
2570
2571 * 2020-02-17 Andre Sailer ([PR#621](https://github.com/aidasoft/dd4hep/pull/621))
2572 - Cmake: dd4hep_add_dictionary: directly use command, no longer created bash script to be called. See details of call with `make VERBOSE=1`
2573 - PluginServiceV2: use `boost::split` instead of walking of char arrays, fix bug when two colons are in the environment variable. Fixes #600
2574
2575 * 2020-02-13 Sebastien Ponce ([PR#620](https://github.com/aidasoft/dd4hep/pull/620))
2576 - added missing dependency of Persist_CLICSiD_Geant4 test on Persist_CLICSiD_Save_LONGTEST
2577
2578 * 2020-02-11 Marko Petric ([PR#618](https://github.com/aidasoft/dd4hep/pull/618))
2579 - Fix from which version of ROOT `TGeoTessellated` is supported (starting only in 6.22)
2580 - Fix location of test file in tessellated example
2581
2582 * 2020-02-06 Hadrien Grasland ([PR#613](https://github.com/aidasoft/dd4hep/pull/613))
2583 - Use the official CMake configuration mechanism provided by TBB >= 2017 U7.
2584 - Do not delete move constructors in DigiKernel as this breaks current versions of TBB.
2585
2586 * 2020-02-05 Markus Frank ([PR#610](https://github.com/aidasoft/dd4hep/pull/610))
2587 - Thanks to @agheata, ROOT now supports tessellated shapes. These new shapes are now supported by DD4hep including the automatic translation to Geant4. The tessellated shapes feature is only supported when compiling against ROOT 6.20.0 or higher.
2588 - Added a basic shape test for the tessellated shape.
2589
2590 * 2020-02-03 Markus Frank ([PR#608](https://github.com/aidasoft/dd4hep/pull/608))
2591 - SInce we do not use DTD checking all DTD links from lcdd xml files have been removed in examples.
2592 - Add 2 examples to check the usage of NTP and STP temperature/pressure conditions
2593
2594 * 2020-01-09 Markus Frank ([PR#606](https://github.com/aidasoft/dd4hep/pull/606))
2595 - Resolves #605
2596 - There was an apparent bug when cloning `DetElement` trees. Not only for the top element, which should receive a new ID, this top ID was propagated to all children. This was clearly wrong. The correct solution is:
2597 - Top element gets a new ID
2598 - Children keep their ID
2599 - If a user wants to preserve the old functionality the flag `DetElement::PROPAGATE_PARENT_ID` must be set in the clone statement.
2600
2601 * 2019-12-18 Markus Frank ([PR#604](https://github.com/aidasoft/dd4hep/pull/604))
2602 - Allow to set ambient temperature and pressure for all materials.
2603 - predefined settings: STP, NTP
2604 - Example:
2605 - `examples/ClientTests/compact/Check_Air.xml`
2606 - Apply global temperature and pressure for all materials and especially for one single material.
2607 - Verification for Geant4: `examples/ClientTests/scripts/Check_Air.py`
2608 - DDG4: allow Geant4 messengers to pass parameter string.
2609
2610 * 2019-12-16 Markus Frank ([PR#603](https://github.com/aidasoft/dd4hep/pull/603))
2611 - Resolves #599
2612 - Resolves #601
2613 - Work on #595
2614
2615 * 2019-11-27 Markus Frank ([PR#597](https://github.com/aidasoft/dd4hep/pull/597))
2616 - Intermediate release to store improvements in the development of DDDigi:
2617 Start implementing noise chains
2618 - Fix cmake build if CLHEP is included in Geant4 and not external.
2619
2620 * 2019-11-16 Markus Frank ([PR#596](https://github.com/aidasoft/dd4hep/pull/596))
2621 - Requre that all materials must be entered explicitly.
2622 - The default ROOT element table is disabled.
2623 - Fix examples, which relied on the default ROOT elements being present
2624 - Fix #595 for DDCMS:
2625 - The density was not re-normalized to the units TGeo was expecting. Same for atomic weights.
2626 - Fill missing elements to `DDCMS/data/materials.xml` (Values to be cross-checked by CMS)
2627
2628 * 2019-11-09 Markus Frank ([PR#593](https://github.com/aidasoft/dd4hep/pull/593))
2629 - Fix Geant4 conversion for Polyhedra and Polycone if start_phi != 0 (See issue https://github.com/AIDASoft/DD4hep/issues/578)
2630 - Preparatory work to have placeholder volumes for twisted tubes (See issue https://github.com/AIDASoft/DD4hep/issues/588)
2631
2632 * 2019-10-29 Andre Sailer ([PR#590](https://github.com/aidasoft/dd4hep/pull/590))
2633 - DumpBField: correct the column unit printout and prepare for eventual change of default length unit
2634 - MagneticFields example: correct the unit for the Z parameter of the MultiPole to tesla
2635
2636 # v01-11-01
2637 * patch release for v01-11 that adds this PR to v01-11:
2638 * 2020-02-26 Andre Sailer (PR#637)
2639 - LcioEventReader: fix setting of color flow, second coordinate was never set
2640
2641 # v01-11
2642
2643 * 2019-10-23 MarkusFrankATcernch ([PR#587](https://github.com/AidaSoft/DD4hep/pull/587))
2644 - Have separate compilation unit for shape utilities like `set_dimension(...)`, `dimension()`, `isA()`, `instanceOf()`...
2645 - Improvements to basic shape test
2646
2647 * 2019-10-23 Andre Sailer ([PR#579](https://github.com/AidaSoft/DD4hep/pull/579))
2648 - CMake: Add possibility to build only shared libraries, fixes #493:
2649 - Usage `cmake ... -D BUILD_SHARED_LIBS=OFF ...`
2650
2651 * 2019-10-23 Andre Sailer ([PR#575](https://github.com/AidaSoft/DD4hep/pull/575))
2652 * CMake: Add `DD4HEP_USE_EXISTING_DD4HEP` option which together with `DD4HEP_BUILD_PACKAGES` can be used to rebuild, for example only DDG4.
2653 * This creates a new Package called "DD4hepSelected" which can then be used alongside the full DD4hep Package in a third project.
2654
2655 * 2019-10-22 Marko Petric ([PR#586](https://github.com/AidaSoft/DD4hep/pull/586))
2656 - Remove deprecated rootcling flags (`-cint`, `-c`, `-p`, `-std=c++`) from dictionary creation script
2657
2658 * 2019-10-22 Marko Petric ([PR#585](https://github.com/AidaSoft/DD4hep/pull/585))
2659 - Fix bug that the c++ filesystem check is called from `${DD4hep_ROOT}`
2660 - Install `DD4hepConfig.cmake` only in `__prefix__/cmake` to avoid path detection confusion
2661 - Enable choosing examples in the `examples/CMakeLists.cmake` via cmake flag `-DDD4HEP_BUILD_EXAMPLES=OpticalSurfaces` (recommended method)
2662 - Make each example folder to compile standalone (not recommended method)
2663 - Update cmake of Segmentation example to more current state and fix resulting errors
2664 - include segmentation example as test
2665 - Resolves #582 and resolves #583
2666
2667 * 2019-10-21 MarkusFrankATcernch ([PR#584](https://github.com/AidaSoft/DD4hep/pull/584))
2668 - Add function `bool isInstance(const Handle<TGeoShape>& solid)`
2669 - compares types of shapes and behaves like `dynamic_cast`, similar to python's `isinstance(obj,type)`
2670 - remove deprecated function `instanceOf` in favour of `isInstance`. Same behavior.
2671 - Add function `bool isA(const Handle<TGeoShape>& solid)`
2672 - compares types of shapes and requires exact match, no polymorphism allowed.
2673 - Add Geant4 conversion for shape `TGeoCtub` -> `G4CutTube`
2674
2675 * 2019-10-14 Marko Petric ([PR#572](https://github.com/AidaSoft/DD4hep/pull/572))
2676 - Install python files in `lib/pythonX.Y/site-packages` resolves #562
2677 - adapt `thisdd4hep.sh` scripts
2678 - Add missing RPATH to examples (basically bug fix for mac)
2679 - Add DDG4 tools to bin to make them more accessible to users:
2680 - `g4MaterialScan`, `checkGeometry`, `checkOverlaps`
2681
2682 * 2019-10-03 MarkusFrankATcernch ([PR#577](https://github.com/AidaSoft/DD4hep/pull/577))
2683 - Inhibit not allowed use of `DetectorImp.h`
2684
2685 * 2019-10-03 Andre Sailer ([PR#574](https://github.com/AidaSoft/DD4hep/pull/574))
2686 - CMake: When needing `boost::filesystem` (c++14, gcc < 8) require at least Boost 1.56, see #567
2687
2688 * 2019-10-03 Markus Frank ([PR#573](https://github.com/AidaSoft/DD4hep/pull/573))
2689 - Fix memory leak introduced when generalizing placements to include left-handed coordinate systems.
2690
2691 * 2019-10-03 Markus Frank ([PR#571](https://github.com/AidaSoft/DD4hep/pull/571))
2692 - Add example to the volume reflection mechanism
2693 - Fix bug in volume reflection
2694
2695 * 2019-10-02 Markus Frank ([PR#569](https://github.com/AidaSoft/DD4hep/pull/569))
2696 - First implementation to support reflection with left-handed volumes/solids
2697 - Changes for volumes and solids.
2698 - Conversion handling of `TGeoScaledShape` in DDG4
2699
2700 * 2019-09-30 Andre Sailer ([PR#566](https://github.com/AidaSoft/DD4hep/pull/566))
2701 - PythonBindings: fix issue when source files were not available, fixes #565
2702 - CMake: drop DDCores dependency on DD4hepGaudiPluginMgr
2703 - CMake: DD4hepConfig: use find_dependency instead of find_package
2704
2705 * 2019-09-24 Marko Petric ([PR#564](https://github.com/AidaSoft/DD4hep/pull/564))
2706 - Added test for Python3 compliance of code
2707 - Added test to require flake8 python code formatting
2708
2709 * 2019-09-13 Marko Petric ([PR#540](https://github.com/AidaSoft/DD4hep/pull/540))
2710 - Make python code compatible to python 2 and 3
2711 - add `absolute_import` and `unicode_literals` to all files
2712 - fix API calls and cast `unicode` to `string` when needed
2713 - replace print statement with logging
2714 - remove old octal literal
2715 - use future division
2716 - use `six`:
2717 - replace `dict.iteritems` with `six.iteritems`
2718 - replace `xrange` with `range` from `six.move`
2719 - replace `basestring` with `six.string_types`
2720 - replace `raw_input` with `input` from `six.moves`
2721 - added a copy of six.py named ddsix.py to DDCore
2722 - Replace deprecated `execfile` with call to `open`, `compile` and `exec`
2723 - Remove usage of `apply`
2724 - use `io.open` instead of standard `open`
2725 - convert `except a,b` to `except a as b`
2726 - change `dict.has_key` to `key in dict`
2727 - Require DD4hep Python3 CI tests to pass
2728 - Remove obsolete `lcdd.py`
2729 - Remove deprecated `SystemOfUnits.py` and replace everywhere with `g4units.py`
2730 - Flake8 all files
2731
2732 * 2019-09-02 Andre Sailer ([PR#561](https://github.com/AidaSoft/DD4hep/pull/561))
2733 - 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.
2734 - CMake add option `DD4HEP_BUILD_EXAMPLES` to enable compilation of examples together with the main DD4hep packages. Default OFF
2735 - CMake: add `DD4hep::` aliases for all libraries and some executables
2736
2737 * 2019-08-26 Andre Sailer ([PR#559](https://github.com/AidaSoft/DD4hep/pull/559))
2738 - DD4hepConfig: make all DD4HEP_USE variables behave as booleans
2739
2740 * 2019-08-22 Markus Frank ([PR#554](https://github.com/AidaSoft/DD4hep/pull/554))
2741 - Fix property table translation to Geant4 according to suggestions from Dong Liu
2742 (see issue https://github.com/AIDASoft/DD4hep/issues/440 )
2743
2744 * 2019-08-22 Andre Sailer ([PR#552](https://github.com/AidaSoft/DD4hep/pull/552))
2745 * 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
2746
2747 * 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.
2748
2749 * PluginManager: only link against boost filesystem if the compiler and standard library do not support the filesystem library
2750
2751 * DD4hep Requirements: Now require cmake version 3.12
2752
2753 * DD4hep Requirements: Now require c++ standard 14
2754
2755 * 2019-08-21 Markus Frank ([PR#553](https://github.com/AidaSoft/DD4hep/pull/553))
2756 - 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
2757 - If an external world volume is supplied, the material `Air` is deduced from this solid (only used by CMS).
2758
2759 * 2019-08-15 Frank Gaede ([PR#550](https://github.com/AidaSoft/DD4hep/pull/550))
2760 - make compatible with MacOS (10.14.6)
2761 - address latest developments w/ new Gaudi Plugin Manager
2762
2763 * 2019-08-14 Markus Frank ([PR#551](https://github.com/AidaSoft/DD4hep/pull/551))
2764 - Moved `setDimensions` call out of the individual dd4hep shapes into the base Solid.
2765 - 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.
2766 - Upgraded shape tests to also check the shapes (using mesh vertices) after a re-dimension using the same parameters.
2767 - Geant4FieldTrackingSetup: Any failure in the creation of the `G4EquationOfMotion` or the `G4MagIntegratorStepper` is now FATAL and causes an exception.
2768
2769 * 2019-08-12 Markus Frank ([PR#549](https://github.com/AidaSoft/DD4hep/pull/549))
2770 - 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`.
2771 - Improve GDML saving from ROOT. (requires ROOT >= 6.20)
2772 - Fix ROOT persistency for the volume manager.
2773 - Fix Geant4FieldTrackingSetup: Issue warning if the `G4MagIntegratorStepper` cannot be created.
2774 - Examples: based the CLICSiD example on the XML sources of DDDetectors. This ensures XML sources match C++ sources.
2775
2776 * 2019-08-12 Andre Sailer ([PR#548](https://github.com/AidaSoft/DD4hep/pull/548))
2777 - Shapes: fix conversion of `startTheta` for Sphere::setDimensions
2778 - Shapes::get_shape_dimension: add return value conversion for angles to internal unit (radians)
2779
2780 * 2019-08-12 MarkusFrankATcernch ([PR#547](https://github.com/AidaSoft/DD4hep/pull/547))
2781 - make compatible w/ macos (c++14)
2782 - replace `std::make_any` w/ make_any (defined in Any.h)
2783 - use `std::lock_guard<std::mutex>`
2784
2785 * 2019-08-07 MarkusFrankATcernch ([PR#545](https://github.com/AidaSoft/DD4hep/pull/545))
2786 - Fix bug in Polyhedra shape (See #544).
2787 - Update optical surface example (resolves #440) .
2788
2789 * 2019-07-16 Markus Frank ([PR#539](https://github.com/AidaSoft/DD4hep/pull/539))
2790 - Remove clang warnings.
2791
2792 * 2019-07-16 MarkusFrankATcernch ([PR#538](https://github.com/AidaSoft/DD4hep/pull/538))
2793 - Fix coverity errors
2794 - Fix Trap shape conversion to Geant4. The theta/phi angle was not converted from degree to radians (Resolves #536).
2795
2796 * 2019-07-15 Marko Petric ([PR#537](https://github.com/AidaSoft/DD4hep/pull/537))
2797 - Add a Python 3 pipeline to the CI (currently set to `allow_failure`)
2798
2799 * 2019-07-13 Marko Petric ([PR#535](https://github.com/AidaSoft/DD4hep/pull/535))
2800 - Update CI to be based on LCG 96 (ROOT 6.18, Geant 10.5, C++17)
2801 - Remove `FindXercesC.cmake` since it is in CMake
2802
2803 * 2019-07-10 Markus Frank ([PR#533](https://github.com/AidaSoft/DD4hep/pull/533))
2804 - Optimize STL containers: replace insert/push with emplace. 2nd. episode.
2805
2806 * 2019-07-10 Marko Petric ([PR#532](https://github.com/AidaSoft/DD4hep/pull/532))
2807 - Remove `dd_sim` (resolves #435)
2808
2809 * 2019-07-10 Marko Petric ([PR#531](https://github.com/AidaSoft/DD4hep/pull/531))
2810 - Remove shadow warnings related to code interfacing only ROOT 6.18
2811 - Add `DBoost_NO_BOOST_CMAKE=ON` to examples cmake call as it is necessary now
2812 - Set CMP0074 policy to NEW if can be set
2813
2814 * 2019-07-10 Markus Frank ([PR#530](https://github.com/AidaSoft/DD4hep/pull/530))
2815 - Optimize STL containers: replace insert/push with emplace
2816
2817 * 2019-07-09 Markus Frank ([PR#528](https://github.com/AidaSoft/DD4hep/pull/528))
2818 * Allow for various material scan types from the root interactove prompt
2819
2820 Examples: from DDDetectors/compact/SiD.xml
2821 $> materialScan file:checkout/DDDetectors/compact/SiD.xml -interactive
2822
2823 1) Simple scan:
2824 root [0] gMaterialScan->print(5,5,0,5,5,400)
2825 2) Scan a given subdetector:
2826 root [0] de=gDD4hepUI->instance()->detector("LumiCal");
2827 root [1] gMaterialScan->setDetector(de);
2828 root [2] gMaterialScan->print(5,5,0,5,5,400)
2829 3) Scan by material:
2830 root [0] gMaterialScan->setMaterial("Silicon");
2831 root [1] gMaterialScan->print(5,5,0,5,5,400)
2832 4) Scan by region:
2833 root [0] gMaterialScan->setRegion("SiTrackerBarrelRegion");
2834 root [1] gMaterialScan->print(0,0,0,100,100,0)
2835
2836 * Added copyright notices to the DDRec files.
2837
2838 * 2019-07-09 Marko Petric ([PR#527](https://github.com/AidaSoft/DD4hep/pull/527))
2839 - Update CI to macOS Mojave 10.14
2840 - Make `PluginService.cpp` C++17 compliant (addresses partially #525)
2841 - replace `ptr_fun` with `lambda`
2842 - Remove deprecated code that uses `auto_prt`
2843 - Remove deprecated `set_unexpected` from `DetectorImp.cpp`
2844 - Remove code associated to `DD4HEP_DD4HEP_PTR_AUTO`
2845
2846 * 2019-07-08 Markus Frank ([PR#524](https://github.com/AidaSoft/DD4hep/pull/524))
2847 - Get the new package formally into the same shape as the other packages together with an example section.
2848 - Add small example to test the basic development framework
2849
2850 * 2019-07-04 Markus Frank ([PR#520](https://github.com/AidaSoft/DD4hep/pull/520))
2851 - 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.
2852 - A new package was created, which shall host the dd4hep digitization components.
2853 A small tbb based multi threaded framework was put in place. Now the real work can start.
2854 - The material scanner has now a switch to run in interactive mode from the ROOT prompt.
2855 To invoke: materialScan compact.xml x0 y0 z0 x1 y1 z1 -interactive
2856 If the interactive switch is missing, the old behavior is preserved.
2857
2858 * 2019-06-26 Markus Frank ([PR#517](https://github.com/AidaSoft/DD4hep/pull/517))
2859 - Material properties use now default dd4hep units
2860 - Translated and updated surface example from geant4 to dd4hep
2861 - Added shape identification using `instanceOf operator (function)`
2862 - Improved handling of xml files if improperly terminated
2863
2864 * 2019-06-26 MarkusFrankATcernch ([PR#516](https://github.com/AidaSoft/DD4hep/pull/516))
2865 - 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
2866
2867 * 2019-06-06 Andre Sailer ([PR#514](https://github.com/AidaSoft/DD4hep/pull/514))
2868 - Gean4ExtraParticles: no longer add decay process to extra particles, this is done by Geant4 resolves #513
2869 - ddsim: disable physics.decays by default. This should only be enabled if completely new physics lists are created resolves #513
2870
2871 * 2019-05-09 Markus Frank ([PR#510](https://github.com/AidaSoft/DD4hep/pull/510))
2872 - Add debug printout of MEE in Geant4 material conversion
2873
2874 * 2019-04-29 MarkusFrankATcernch ([PR#508](https://github.com/AidaSoft/DD4hep/pull/508))
2875 * Geant4GDMLWriteAction:
2876 * Add properties to Geant4GDMLWriteAction to steer writing of regions, cuts and sensitive detectors. See github issue #507
2877 * Property: Export region information to the GDML: ExportRegions, default: True
2878 * Property: Export energy cut information to the GDML: ExportEnergyCuts, default: True
2879 * Property: Export sensitive detector information to the GDML: ExportSensitiveDetectors, default: True
2880 * **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**
2881 ```
2882 /run/beamOn 0
2883 ```
2884 before writing the GDML file!
2885 You also need to setup a minimal generation action like:
2886 ```py
2887 sid.geant4.setupGun('Gun','pi-',10*GeV,Standalone=True)
2888 ```
2889
2890 * 2019-04-29 Frank Gaede ([PR#506](https://github.com/AidaSoft/DD4hep/pull/506))
2891 - add utility materialBudget.cpp
2892 - create plots w/ integrated radiation and interaction lengths
2893 - bug fix in materialScan.cpp
2894 - print correct endpoint
2895
2896 * 2019-04-17 Marko Petric ([PR#503](https://github.com/AidaSoft/DD4hep/pull/503))
2897 - 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
2898 - DDG4: DDSim: fix parsing of rejectPDGs values from the command line
2899
2900 * 2019-04-12 Marko Petric ([PR#502](https://github.com/AidaSoft/DD4hep/pull/502))
2901 - DDSim: Add Higgs PDG code 25 to rejected codes for reading events
2902
2903 * 2019-04-10 MarkusFrankATcernch ([PR#501](https://github.com/AidaSoft/DD4hep/pull/501))
2904 - Add access to all Geant4Action derivatives to the Geant4 top level physical volume (world).
2905 - Add Geant4 GDML writer action accessible and configurable from the Geant4 prompt
2906
2907 * 2019-04-09 Mircho Rodozov ([PR#496](https://github.com/AidaSoft/DD4hep/pull/496))
2908 - Added powerpc macros check to include header `cxxabi.h`
2909
2910 * 2019-04-01 Markus Frank ([PR#494](https://github.com/AidaSoft/DD4hep/pull/494))
2911 - Use shared_ptr instead of home made ref counting for ConditionUpdateCalls
2912 - 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.
2913 - Add move constructors to handles
2914 - Improve const-ness of detector object in DDG4
2915
2916 * 2019-03-11 Markus Frank ([PR#491](https://github.com/AidaSoft/DD4hep/pull/491))
2917 - Implemented basic handles to support surface objects
2918 - Implemented import of surface optical objects in compact to create TGeo surface objects and tabulated properties.
2919 - Implemented the translation from TGeo to Geant4
2920 - Added physics components for DDG4 handling Cerekov, Scintillation and generic optical photon physics
2921 - Added examples
2922
2923 Please Note:
2924 1) This is only enabled for a ROOT version > 6.17 (which is supposed to come)
2925 2) There are still changes in ROOT in the pipeline. The code shall have to be adapted accordingly once these changes are activated.
2926
2927 * 2019-03-06 ebrianne ([PR#489](https://github.com/AidaSoft/DD4hep/pull/489))
2928 - Added Initialization of G4EmSaturation to initialize birks coefficients - for g4 version > 10.03
2929
2930 * 2019-02-19 Andre Sailer ([PR#486](https://github.com/AidaSoft/DD4hep/pull/486))
2931 - DDRec: Surface: add accessor to DetElement member
2932 - DDRec: DetectorData: add Extension holding a map of String to Doubles
2933
2934 * 2019-02-14 Paul Gessinger ([PR#485](https://github.com/AidaSoft/DD4hep/pull/485))
2935 * In `DD4hepConfig.cmake`, figure out if build has compatible standard set and print error if not
2936
2937 * 2019-02-13 Frank Gaede ([PR#483](https://github.com/AidaSoft/DD4hep/pull/483))
2938 - fix drawing of surfaces for z-disks and cylinders (resolves #482)
2939
2940 # v01-10
2941
2942 * 2019-01-31 Markus Frank ([PR#480](https://github.com/aidasoft/dd4hep/pull/480))
2943 - Fix bug in `geoDisplay` to allow passing the volume display depth as an argument
2944 - 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.
2945 - Allow direct access to the solid instance of the DetElements's placement.
2946
2947 * 2019-01-15 Markus Frank ([PR#478](https://github.com/aidasoft/dd4hep/pull/478))
2948 - Fix bug in `geoDisplay` see #477
2949
2950 * 2019-01-10 Markus Frank ([PR#476](https://github.com/aidasoft/dd4hep/pull/476))
2951 - Fix bug in ConditionsUserPool whan scanning DetElement conditions
2952 - Improve conditions handling: Allow to bind sub-class entities of ConditionObject to thew opaque data block.
2953
2954 * 2018-12-14 Markus Frank ([PR#475](https://github.com/aidasoft/dd4hep/pull/475))
2955 - Add named shape constructors (see #469)
2956
2957 * 2018-12-13 Markus Frank ([PR#474](https://github.com/aidasoft/dd4hep/pull/474))
2958 - Fix possible access violation
2959
2960 * 2018-12-13 MarkusFrankATcernch ([PR#473](https://github.com/aidasoft/dd4hep/pull/473))
2961 - Improve handling of condition dependencies ( main work item)
2962 - Improve logic flow in the DDCond/ConditionDependencyHandler
2963 - 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.
2964 - Add a shape check for eight-point solids.
2965
2966 * 2018-12-07 Frank Gaede ([PR#470](https://github.com/aidasoft/dd4hep/pull/470))
2967 - add `#include <memory>` to `run_plugin.h` (needed for `std::unique_ptr` and gcc 4.9)
2968
2969 * 2018-12-06 Markus Frank ([PR#468](https://github.com/aidasoft/dd4hep/pull/468))
2970 - 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).
2971 - 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`.
2972
2973 - Added conversion between `TGeoArb8` and `G4GenericTrap`, fixes #465
2974
2975 * 2018-12-05 Markus Frank ([PR#467](https://github.com/aidasoft/dd4hep/pull/467))
2976 - 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:
2977 ```cpp
2978 /// Legacy: Constructor to create a new identifiable tube object with attribute initialization
2979 Tube(const std::string& nam, double rmin, double rmax, double dz, double startPhi, double endPhi)
2980 ```
2981 Here opposite to all other constructors delta_phi was used as such - in contradiction to other constructors of the same class. This was rectified.
2982
2983 * 2018-11-30 Andre Sailer ([PR#462](https://github.com/aidasoft/dd4hep/pull/462))
2984 - Introduce compile flag to minimize conditions footprint
2985
2986 * 2018-11-27 Markus Frank ([PR#461](https://github.com/aidasoft/dd4hep/pull/461))
2987 - 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.
2988
2989 * 2018-11-22 Markus Frank ([PR#459](https://github.com/aidasoft/dd4hep/pull/459))
2990 - Fix bug in DDCodex geometry, add debugging to VolumeBuilder
2991
2992 * 2018-11-14 Markus Frank ([PR#458](https://github.com/aidasoft/dd4hep/pull/458))
2993 - Improve ROOT persistency: flag user extensions as persistent only while saving/loading
2994 - 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.
2995
2996 * 2018-11-13 Markus Frank ([PR#457](https://github.com/aidasoft/dd4hep/pull/457))
2997 ## Provide support for Volume divisions.
2998 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.
2999
3000 Hence: **If you use DD4hep: Never call the raw TGeo routines.**
3001
3002 For any further documentation please see the following ROOT documentation on [TGeo](http://root.cern.ch/root/html/TGeoVolume.html)
3003
3004 For an example see `examples/ClientTests/src/VolumeDivisionTest.cpp`
3005 and `examples/ClientTests/compact/VolumeDivisionTest.xml`
3006
3007 To execute:
3008 ```
3009 geoDisplay -input file:<path>/examples/ClientTests/compact/VolumeDivisionTest.xml
3010 ```
3011
3012 * 2018-11-13 Hadrien Grasland ([PR#438](https://github.com/aidasoft/dd4hep/pull/438))
3013 - Make FindPackage(DD4hep) work even if thisdd4hep.sh was not sourced
3014
3015 * 2018-11-09 Frank Gaede ([PR#456](https://github.com/aidasoft/dd4hep/pull/456))
3016 - add `#include <memory>` in `VolumeAssembly_geo.cpp` gcc 4.9 compatibility
3017
3018 * 2018-11-07 Markus Frank ([PR#455](https://github.com/aidasoft/dd4hep/pull/455))
3019 - Improve VolumeBuilder pattern matcher
3020 - Allow XML based volume creation based on factories.
3021
3022 * 2018-11-02 Markus Frank ([PR#454](https://github.com/aidasoft/dd4hep/pull/454))
3023 - Improve generic Volume assembly and XML volume builder
3024
3025 * 2018-11-01 Markus Frank ([PR#452](https://github.com/aidasoft/dd4hep/pull/452))
3026 - Fixed the DetElement cloning mechanism it to properly replicate DetElement trees.
3027 - Tested with one LHCb upgrade detector.
3028 - Added numeric epsilon to the default math dictionary of the expression evaluator:
3029 ```cpp
3030 int:epsilon --> std::numeric_limits<int>::epsilon()
3031 long:epsilon --> std::numeric_limits<long>::epsilon()
3032 float:epsilon --> std::numeric_limits<float>::epsilon()
3033 double:epsilon --> std::numeric_limits<double>::epsilon()
3034 ```
3035
3036 * 2018-10-30 Markus Frank ([PR#451](https://github.com/aidasoft/dd4hep/pull/451))
3037 - Add copyright notices
3038 - Make ddeve a program not only a ROOT script
3039
3040 * 2018-10-30 Markus Frank ([PR#450](https://github.com/aidasoft/dd4hep/pull/450))
3041 - 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.
3042 - Issue #449 should be fixed now.
3043 - The XML volume builder utility was improved.
3044
3045 * 2018-10-18 Markus Frank ([PR#447](https://github.com/aidasoft/dd4hep/pull/447))
3046 - Fix plugin manager cmake file by removing explicit dependency on c++ standard.
3047
3048 # v01-09
3049
3050 * 2018-10-15 Markus Frank ([PR#442](https://github.com/aidasoft/DD4hep/pull/442))
3051 - DDCMS: Update to support namespaces
3052 - DDUpgrade test example for the LHCb upgrade
3053 - Fix nested detectors (in fact worked only for first level parents)
3054 - Add VolumeBuilder XML utility to work on XML-tree patterns
3055
3056 * 2018-09-12 Hadrien Grasland ([PR#437](https://github.com/aidasoft/DD4hep/pull/437))
3057 - Remove if string equals ON/OFF in cmake IF statements and check default CMake truth values
3058
3059 * 2018-08-20 Oleksandr Viazlo ([PR#434](https://github.com/aidasoft/DD4hep/pull/434))
3060 - DD4hep_Mask_o1_v01_geo
3061 - allow rotation around x-axis (instead of y)
3062 - phi1 and phi2 cone angles configurable from the xml-file
3063
3064 * 2018-08-10 Markus Frank ([PR#433](https://github.com/aidasoft/DD4hep/pull/433))
3065 - Fix DDCMS example to use true namespace names rather than using "_"
3066 This should resolve issue https://github.com/AIDASoft/DD4hep/issues/421
3067
3068 * 2018-08-09 Markus Frank ([PR#432](https://github.com/aidasoft/DD4hep/pull/432))
3069 - Make the expression evaluator understand variable names with namespaces
3070 - Variable names containing a `:` or `::` are now accepted by the expression evaluator. This is first step towars resolving #421
3071 - It has now to be seen what has to be done further. The DCMS example was not yet updated to use this feature.
3072 - Add new example in `examples/ClientTests` to test this functionality.
3073
3074 * 2018-08-09 Andre Sailer ([PR#429](https://github.com/aidasoft/DD4hep/pull/429))
3075 - DDG4: add possibility to simulate all events in a file by passing NumberOfEvents < 0. Fixes #237
3076 * The de-facto limit is ~2 billion, which should be fine for input files.
3077
3078 * 2018-08-08 Markus Frank ([PR#430](https://github.com/aidasoft/DD4hep/pull/430))
3079 - Fix HEPMC reader for unknown generator status codes
3080 - Update DDCodex example, feature imports from plain ROOT file
3081 - Allow debugging Geant4VolumeManager
3082
3083 * 2018-08-07 Mircho Rodozov ([PR#428](https://github.com/aidasoft/DD4hep/pull/428))
3084 - Adapt to root interfaces changes for `TGeoMatrix::Inverse` (https://github.com/root-project/root/pull/2365), fixes #426
3085
3086 * 2018-08-06 Andre Sailer ([PR#424](https://github.com/aidasoft/DD4hep/pull/424))
3087 - CMake: Ensure proper tls flag (global-dynamic) for Geant4 build, added option DD4HEP_IGNORE_GEANT4_TLS to override the check. Closes #419
3088
3089 * 2018-07-31 Andre Sailer ([PR#420](https://github.com/aidasoft/DD4hep/pull/420))
3090 - DDG4: Import the ddsim python program from https://github.com/iLCSoft/lcgeo
3091 For example:
3092 - `ddsim --help`
3093 - `ddsim --dumpSteeringFile > mySteer.py`
3094 - `ddsim --steeringFile=mySteer.py --compactFile myDetector.xml`
3095
3096 # v01-08
3097
3098 * 2018-07-02 Markus Frank ([PR#418](https://github.com/aidasoft/dd4hep/pull/418))
3099 - Add DDCodexB in standalone mode with simulation script and basic skeleton for DDEve
3100
3101 * 2018-06-28 Markus Frank ([PR#417](https://github.com/aidasoft/dd4hep/pull/417))
3102 - Steer debug printouts in CondDB2DDDB and DDDB2Objects by parsing xml files.
3103
3104 * 2018-06-26 Markus Frank ([PR#416](https://github.com/aidasoft/dd4hep/pull/416))
3105 - Separate the hit class and add dictionary. No base class - entirely independent.
3106 - Allow to save the hit class to ROOT (but without MC truth)
3107 See MyTrackerHit.h for details.
3108
3109 * 2018-06-26 Markus Frank ([PR#415](https://github.com/aidasoft/dd4hep/pull/415))
3110 - Add small example how to specialize a new sensitive action and attach it to a detector in DDG4.
3111
3112 * 2018-06-26 Frank Gaede ([PR#414](https://github.com/aidasoft/dd4hep/pull/414))
3113 - bug fix in Geant4EventReaderGuineaPig
3114 - fix ignoring input lines with 'nan'
3115
3116 * 2018-06-26 Shaojun Lu ([PR#412](https://github.com/aidasoft/dd4hep/pull/412))
3117 - Added one more if statement: If the track went into new Volume,
3118 - then extracted the hit in previous Volume,
3119 - and start a new hit in this current Volume,
3120 - in this current process, also allow the same following treatments for the new hit.
3121
3122 * 2018-06-21 Markus Frank ([PR#409](https://github.com/aidasoft/dd4hep/pull/409))
3123 - Support out-of-source builds of DD4hep examples.
3124 Comes with an expense: A new environment DD4hepExamplesINSTALL.
3125 has to be defined to support internal file accesses and loads.
3126 The builds were also checked with read-only installation directories.
3127 Solves issue https://github.com/AIDASoft/DD4hep/issues/382
3128 - Smallish improvement to the ConditionsManager.
3129
3130 * 2018-06-21 Andre Sailer ([PR#408](https://github.com/aidasoft/dd4hep/pull/408))
3131 - Cmake: fix for configuring with Geant4 with internal CLHEP, fixes #406
3132 - Cmake: fix for configuring with BUILD_TESTING=OFF, fixes #407
3133
3134 * 2018-06-07 Markus Frank ([PR#404](https://github.com/aidasoft/dd4hep/pull/404))
3135 - Fix basic shape tests for PseudoTrap
3136
3137 * 2018-06-07 Markus Frank ([PR#403](https://github.com/aidasoft/dd4hep/pull/403))
3138 - patch for truncated tubes shapes.
3139
3140 * 2018-06-04 Markus Frank ([PR#402](https://github.com/aidasoft/dd4hep/pull/402))
3141 - Fix truncated tube shape
3142
3143 * 2018-06-04 Markus Frank ([PR#400](https://github.com/aidasoft/dd4hep/pull/400))
3144 - 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.
3145 - Add new basic shape tests.
3146
3147 * 2018-06-01 Markus Frank ([PR#399](https://github.com/aidasoft/dd4hep/pull/399))
3148 - As discussed in issue #398 The use of TGeoUnits is inconvenient. The dd4hep units are now exposed in the python modules.
3149 - Basic shapes are now tested in the regular ctest executions. The mesh vertices of the shapes were
3150 saved to a reference file and are compared to in subsequent runs. The reference files reside in
3151 `examples/ClienTests/ref`. See `examples/ClientTests/compact/Check_Shape_*.xml` for details.
3152 - The ROOT UI and some dump plugins were enhanced to expose more information.
3153
3154 * 2018-05-30 Markus Frank ([PR#397](https://github.com/aidasoft/dd4hep/pull/397))
3155 - Enable to start DDG4 using a saved detector description in a ROOT file.
3156 - Added corresponding test: `Persist_CLICSiD_Geant4_LONGTEST`
3157 - Fix shape constructors for Trap and PseudoTrap
3158 - The python module `DD4hep.py` is gone as discussed in the developers meeting use `dd4hep.py` instead.
3159 - 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.
3160 - Add example for LHCb CODEX-b.
3161
3162 * 2018-05-29 Markus Frank ([PR#394](https://github.com/aidasoft/dd4hep/pull/394))
3163 - Consistently handle cmake command line options in case no Geant4 or no documentation should be built.
3164
3165 * 2018-05-28 Markus Frank ([PR#393](https://github.com/aidasoft/dd4hep/pull/393))
3166 - Improvements to `geoPluginRun`.
3167 `$> geoPluginRun -ui -interactive`
3168 results in DD4hep enabled ROOT prompt.
3169 - DD4hepUI: improvements to interact with DD4hep instance from ROOT prompt
3170 - DDDB improve configuration for printing and debugging
3171 - DDDB: allow to block certain XML branches
3172
3173 * 2018-05-22 Frank Gaede ([PR#389](https://github.com/aidasoft/dd4hep/pull/389))
3174 - fix bug in input handling, for details see discussion #387
3175 - exclude leptons with zero lifetime from Geant4
3176
3177 * 2018-05-22 Markus Frank ([PR#388](https://github.com/aidasoft/dd4hep/pull/388))
3178 - Update doxygen information for some undocumented classes.
3179 - Add licence header to files where not present.
3180
3181 * 2018-05-22 Marko Petric ([PR#380](https://github.com/aidasoft/dd4hep/pull/380))
3182 - Update LICENSE to LGPLv3
3183 - 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.`
3184
3185 * 2018-05-16 Markus Frank ([PR#386](https://github.com/aidasoft/dd4hep/pull/386))
3186 - Fix bug in variable order of `ExtrudedPolygon` (x<->y)
3187
3188 * 2018-05-15 Markus Frank ([PR#384](https://github.com/aidasoft/dd4hep/pull/384))
3189 # Implementation of non-cylindrical tracking region (resolves #371)
3190 - 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
3191 ```cpp
3192 dd4hep::Volume parallel = dd4hep::Description::parallelWorldVolume()
3193 ```
3194 This parallel world volume is created when the geometry is opened together (and with the same dimensions) as the world volume itself.
3195 - 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:
3196 ```cpp
3197 dd4hep::Volume trackers = dd4hep::Description::trackingVolume()
3198 ```
3199 - Although the concept is available in the DD4hep core, its configuration from XML is only implemented for the compact notation. For details see the example `examples/ClientTests/compact/TrackingRegion.xml`.
3200 - 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.
3201
3202 ```xml
3203 <parallelworld_volume name="tracking_volume" anchor="/world" material="Air" connected="true" vis="VisibleBlue">
3204 <shape type="BooleanShape" operation="Subtraction">
3205 <shape type="BooleanShape" operation="Subtraction">
3206 <shape type="BooleanShape" operation="Subtraction" >
3207 <shape type="Tube" rmin="0*cm" rmax="100*cm" dz="100*cm"/>
3208 <shape type="Cone" rmin2="0*cm" rmax2="60*cm" rmin1="0*cm" rmax1="30*cm" z="40*cm"/>
3209 <position x="0*cm" y="0*cm" z="65*cm"/>
3210 </shape>
3211 <shape type="Cone" rmin1="0*cm" rmax1="60*cm" rmin2="0*cm" rmax2="30*cm" z="40*cm"/>
3212 <position x="0" y="0" z="-65*cm"/>
3213 </shape>
3214 <shape type="Cone" rmin2="0*cm" rmax2="55*cm" rmin1="0*cm" rmax1="55*cm" z="30*cm"/>
3215 <position x="0" y="0" z="0*cm"/>
3216 </shape>
3217 <position x="0*cm" y="50*cm" z="0*cm"/>
3218 <rotation x="pi/2.0" y="0" z="0"/>
3219 </parallelworld_volume>
3220 ```
3221
3222
3223 # Enhancement of assemblies, regions and production cuts (resolves #373)
3224 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`).
3225
3226 - The hierarchy of cuts being applied is:
3227 - If present particle specific production cuts for a region are applied.
3228 - else the "cut" attribute of the compact region specification is used
3229 - else the global Geant4 cut is automaticallly applied by Geant4.
3230
3231 ```xml
3232 <limits>
3233 <limitset name="VXD_RegionLimitSet">
3234 <!--
3235 These are particle specific limits applied to the region
3236 ending in Geant4 in a G4UserLimits instance
3237 -->
3238 <limit name="step_length_max" particles="*" value="5.0" unit="mm" />
3239 <limit name="track_length_max" particles="*" value="5.0" unit="mm" />
3240 <limit name="time_max" particles="*" value="5.0" unit="ns" />
3241 <limit name="ekin_min" particles="*" value="0.01" unit="MeV" />
3242 <limit name="range_min" particles="*" value="5.0" unit="mm" />
3243
3244 <!--
3245 These are particle specific production cuts applied to the region
3246 ending in Geant4 in a G4ProductionCuts instance
3247 -->
3248 <cut particles="e+" value="2.0" unit="mm" />
3249 <cut particles="e-" value="2.0" unit="mm" />
3250 <cut particles="gamma" value="5.0" unit="mm" />
3251 </limitset>
3252 </limits>
3253 ```
3254
3255 # SensitiveDetector types not changed by Geant4SensDetActionSequence (resolves #378)
3256 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:
3257 ```cpp
3258 declareProperty("DefaultSensitiveType", m_dfltSensitiveDetectorType = "Geant4SensDet");
3259 ```
3260 - 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.
3261
3262 * 2018-05-15 David Blyth ([PR#379](https://github.com/aidasoft/dd4hep/pull/379))
3263 - Geant4FieldTrackingConstruction now properly overrides `constructField()`
3264
3265 * 2018-05-03 David Blyth ([PR#377](https://github.com/aidasoft/dd4hep/pull/377))
3266 - Geant4Handle unhandled reference to shared actions. This affected the destruction of shared actions.
3267
3268 * 2018-05-03 Markus Frank ([PR#375](https://github.com/aidasoft/dd4hep/pull/375))
3269 - Development of a small user example on how to do analysis in `DDG4`.
3270 - See `examples/DDG4/src/HitTupleAction.cpp`
3271 - Simply collect the energy deposits of hits and write an N-tuple with them.
3272 - The example shows how to access the hit collections and to extract the data in order to write other more sophisticated analyses.
3273
3274 - This `DDG4` action is used in one of the Minitel examples: `examples/ClientTests/srcipts/MiniTelEnergyDeposits.py`
3275
3276 * 2018-05-02 Markus Frank ([PR#374](https://github.com/aidasoft/dd4hep/pull/374))
3277 - recommission the multithreaded SiD example
3278 - `DDG4/examples/SiDSim_MT.py` vs. `DDG4/examples/SiDSim.py`
3279
3280 * 2018-04-19 Markus Frank ([PR#370](https://github.com/aidasoft/dd4hep/pull/370))
3281 * 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)
3282 * Move from `DD4hep.py` to `dd4hep.py`, since `DD4hep.py` has to disappear due to conflicts on MAC.
3283
3284 * 2018-04-13 Markus Frank ([PR#367](https://github.com/aidasoft/dd4hep/pull/367))
3285 - resolves #361
3286 The Detector object has a state `Detector::state()` with three values:
3287 ```cpp
3288 /// The detector description states
3289 enum State {
3290 /// The detector description object is freshly created. No geometry nothing.
3291 NOT_READY = 1<<0,
3292 /// The geometry is being created and loaded. (parsing ongoing)
3293 LOADING = 1<<1,
3294 /// The geometry is loaded.
3295 READY = 1<<2
3296 };
3297 ```
3298 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!
3299
3300 - Address some compiler warnings.
3301 - Mainly add override/final statements in header files.
3302 - Implement a module to invoke python as a DD4hep plugin:
3303 invoked e.g. by: `geoPluginRun -plugin DD4hep_Python -dd4hep -prompt`
3304 ```
3305 geoPluginRun -plugin DD4hep_Python -help
3306 Usage: -plugin <name> -arg [-arg]
3307 name: factory name DD4hep_Python
3308 -import <string> import a python module, making its classes available.
3309 -macro <string> load a python script as if it were a macro.
3310 -exec <string> execute a python statement (e.g. import ROOT.
3311 -eval <string> evaluate a python expression (e.g. 1+1)
3312 -prompt enter an interactive python session (exit with ^D)
3313 -dd4hep Equivalent to -exec "import dd4hep"
3314 -help Show this online help message.
3315
3316 Note: entries can be given multiple times and are executed in exactly the
3317 order specified at the command line!
3318 ```
3319 Implementation wise the plugin is a simple CLI wrapper for TPython.
3320
3321 * 2018-04-12 Marko Petric ([PR#362](https://github.com/aidasoft/dd4hep/pull/362))
3322 - Update DD4hepManual
3323
3324 * 2018-04-12 Markus Frank ([PR#360](https://github.com/aidasoft/dd4hep/pull/360))
3325 - Examples: only build some examples depending on the availability of dependencies.
3326 - DDCore: Add interface to allow URI blocking during file parsing. Default is as now.
3327 - DDCMS: Add conversion of new shapes.
3328
3329 * 2018-04-10 Markus Frank ([PR#359](https://github.com/aidasoft/dd4hep/pull/359))
3330 - Bunch of fixes. Mostly in `examples/DDDB`
3331 - Only build `examples/DDDB` if XercesC is present.
3332 - Only build `examples/DDCMS` if CLHEP is present
3333
3334 * 2018-04-09 Markus Frank ([PR#357](https://github.com/aidasoft/dd4hep/pull/357))
3335 - Add configuration options for loading DDDB
3336
3337 * 2018-04-05 Markus Frank ([PR#351](https://github.com/aidasoft/dd4hep/pull/351))
3338 - To avoid unwanted disappearing conditions sub pools, a conditions slice may be instructed to collect shared references to the used pools in the slice.
3339 - For python:
3340 - Move DDG4/SystemOfUnits.py to DDG4/g4units.py
3341 Keep SystemOfUnits.py with deprecation warning
3342 - move DD4hep.py to dd4hep.py.
3343 import dd4hep also imports all TGeoUnit units into its namespace.
3344 Hence: import dd4hep; print dd4hep.m gives: "100.0"
3345 - DD4hep.py is kept for backwards compatibility issuing a deprecation warning
3346 - DDG4.py: imports g4units as G4Units: DDG4.G4Units.m etc.
3347 - DDG4.py: imports TGeoUnit as TGeo4Units: DDG4.TGeoUnits.m etc.
3348 - Some problem with replacing DD4hepUnits.h with TGeoSystemOfUnits.h
3349 Surface test complains. To be investigated. Keep old DD4hepUnits for the time being.
3350
3351 * 2018-04-05 Markus Frank ([PR#350](https://github.com/aidasoft/dd4hep/pull/350))
3352 - Merge `DDCMS` and `DDCMSTests` to `DDCMS`
3353 - Move `DDDB` to the `examples/`
3354 - Add tests `DDDB_DeVelo` and `DDDB_DeVelo_Gaudi` missing from #349
3355
3356 * 2018-04-05 Markus Frank ([PR#349](https://github.com/aidasoft/dd4hep/pull/349))
3357 - Resolves #339
3358 - DDDB conditions had a bug when loading from file base. The IOV was not handled properly. Now the resulting IOV is configurable using properties.
3359 - Added Gaudi like example use case for options handling with the DeVelo detector elements.
3360 - Configuration improvement in DDG4 action Output2ROOT:
3361 - New property "DisableParticles" allows to suppress the MCParticle record from being written to the ROOT file.
3362 - dto. the option "DisabledCollections" allows to NOT write any hit collection.
3363 - Unit tests for these options are not (yet) present.
3364 - 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.
3365
3366 * 2018-04-05 Marko Petric ([PR#344](https://github.com/aidasoft/dd4hep/pull/344))
3367 - Move `DDCMS` into examples as it is not core functionality
3368
3369 # v01-07-02
3370
3371 * 2018-06-26 Frank Gaede [PR#413](https://github.com/AIDASoft/DD4hep/pull/413)
3372 - bug fix in Geant4EventReaderGuineaPig
3373 - fix ignoring input lines with 'nan'
3374 - did not work on SL6 w/ gcc
3375
3376
3377 # v01-07-01
3378
3379 * 2018-05-17 Frank Gaede
3380 - fix bug in input handling, for details see discussion [#387](https://github.com/AIDASoft/DD4hep/issues/387)
3381 - exclude leptons with zero lifetime from Geant4
3382
3383 # v01-07
3384
3385 * 2018-03-26 Javier Cervantes Villanueva ([PR#343](https://github.com/AIDASoft/DD4hep/pull/343))
3386 - Fix bug in calculating eta, introduced in #138
3387 - use `magFromXYZ` instead of `radiusFromXYZ` to calculate pseudorapidity
3388
3389 * 2018-03-19 Frank Gaede ([PR#338](https://github.com/AIDASoft/DD4hep/pull/338))
3390 - Include fixes from Chris Burr for the alignments calculator.
3391 - Add a small study for the LHCb upgrade defining reasonable detector element conditions for the Velo pixel detector using the DDCond derived condition mechanism.
3392 - To be done: somehow get an example for this mechanism, which works outside Gaudi.
3393
3394 * 2018-03-23 Markus Frank ([PR#340](https://github.com/AIDASoft/DD4hep/pull/340))
3395 - Improvement for DDDB - case study to implement real-world detector elements.
3396
3397 * 2018-03-28 Frank Gaede ([PR#345](https://github.com/AIDASoft/DD4hep/pull/345))
3398 - Remove `DDSurfaces` folder as it was merged in `DDRec`
3399
3400 * 2018-03-28 Frank Gaede ([PR#341](https://github.com/AIDASoft/DD4hep/pull/341))
3401 - Remove top level `DDSegmentation` folder as it is not needed anymore
3402
3403 # v01-06
3404
3405 * 2018-01-31 Ete Remi ([PR#297](https://github.com/aidasoft/dd4hep/pull/297))
3406 - Geant4Output2LCIO
3407 - Switch run header writing order at beginning of run instead of end of run
3408
3409 * 2018-03-15 Marko Petric ([PR#335](https://github.com/aidasoft/dd4hep/pull/335))
3410 - Deduce CLHEP location from `CLHEP_INCLUDE_DIR` ( Fixes #314 )
3411 - Add `gSystem.Load('libglapi')` to `testDDPython.py` which failed due to TLS issues on local machine
3412 - Add Geant4 10.4 to test suite
3413
3414 * 2018-03-14 Markus Frank ([PR#336](https://github.com/aidasoft/dd4hep/pull/336))
3415 - New shape definitions for CMS
3416 Generic Polyhedra, ExtrudedPolygon, CutTube, TruncatedTube, PseudoTrap.
3417 - DDDB: allow to configure the match for the entity resolver.
3418
3419 * 2018-03-13 Daniel Jeans ([PR#333](https://github.com/aidasoft/dd4hep/pull/333))
3420 - changed utility name from graphicalMaterialScan -> graphicalScan
3421 - add visualisation of electric and magnetic fields (switched by parameter)
3422 - change order of x/y/z range parameters for ease of use
3423 - added parameter for name of output root file
3424
3425 * 2018-03-12 Markus Frank ([PR#334](https://github.com/aidasoft/dd4hep/pull/334))
3426 - `step_length_max` not propagated to Geant4 for `G4UserLimit` instances.
3427 - All limits can now be set separately for each particle type (or for all as a catchall situation if the particle type is '*'.
3428 - Fixes #327
3429
3430 * 2017-11-29 Markus Frank ([PR#271](https://github.com/aidasoft/dd4hep/pull/271))
3431 - Add `LHeD` example (contribution from Peter Kostka)
3432 - Fix to support `python3` in `DDG4`
3433 - Fix issue in Volumes.h for backwards compatibility with gcc version < 5
3434 - Fix type definition of `XmlChar` to also support Xerces-C 3.2.0
3435 - Fix `AClick` initialization files in `DDG4` (remove dependency on `libDDSegmentation`)
3436
3437 * 2017-11-29 Marko Petric ([PR#270](https://github.com/aidasoft/dd4hep/pull/270))
3438 - Fields: Remove pessimizing move and shadow warnings
3439
3440 * 2018-02-06 Ete Remi ([PR#301](https://github.com/aidasoft/dd4hep/pull/301))
3441 - Geant4Output2LCIO plugin
3442 - Added run number and event number offset properties. Enable steering of run and event counters from outside
3443 - Added 3 event parameters properties for int, float and string event parameters
3444
3445 * 2018-02-05 Markus Frank ([PR#304](https://github.com/aidasoft/dd4hep/pull/304))
3446 - Restructure the files a bit to simplify the use of the `XML` and `JSON` parsers and the spirit utilities in other projects.
3447
3448 * 2018-02-28 Frank Gaede ([PR#323](https://github.com/aidasoft/dd4hep/pull/323))
3449 - make Geant4InputHandling.cpp compatible w/ gcc49
3450 - avoid stringstream move operation
3451 - fixes #320
3452
3453 * 2018-01-24 Markus Frank ([PR#292](https://github.com/aidasoft/dd4hep/pull/292))
3454 - Fix bug in Alignment test:
3455 - A long standing bug was fixed for the test `t_AlignDet_Telescope_align_new`.
3456 - It was assumed that the `DetElements` were ordered in memory, which is **not** true (probably due to memory randomization).
3457 - Moved to path dependent ordering. Test now OK.
3458 - Closes #282
3459
3460 - Removed a Bunch of `rootcling` warnings
3461 - Apparently `rootcling` now expects a class with the name of the dictionary header file.
3462 - To satify this some dummy anonymous classes were added.
3463 - Closes #290
3464
3465 * 2018-01-26 Marko Petric ([PR#296](https://github.com/aidasoft/dd4hep/pull/296))
3466 - Check dynamic cast if it was successful
3467
3468 * 2018-01-22 Markus Frank ([PR#289](https://github.com/aidasoft/dd4hep/pull/289))
3469 - Add possibility to parse `XML` from string
3470 - Please see #288 for details.
3471 - The main interface was not changed. Rather a view to the Detector class supports this functionality.
3472 - The existing view `dd4hep::DetectorLoad` was enhanced to allow the required functionality:
3473 ```cpp
3474 Detector detector = ....;
3475 /// So here is the actual test: We parse the raw XML string
3476 DetectorLoad loader(detector);
3477 loader.processXMLString(buffer,0);
3478 ```
3479 - An example was added (`ClientTests/src/XML_InMemory.cpp`, which illustrates the usage).
3480
3481 - Improve DDCond manual
3482 - Improve that the DDCond manual reflects the source code.
3483 - The possible plugins provided are not all described. This shall be future work.
3484
3485 - Enable the GDML reader plugin
3486 - Closes #275
3487
3488 * 2018-03-01 Markus Frank ([PR#325](https://github.com/aidasoft/dd4hep/pull/325))
3489 - Add dictionaries to `DDRec`.
3490 - Consequently add the python interface to access the exported classes.
3491
3492 * 2018-03-01 Ete Remi ([PR#321](https://github.com/aidasoft/dd4hep/pull/321))
3493 - Geant4InputAction and Geant4EventReader :
3494 - Register input action pointer to event reader, enabling the event reader to access the Geant4 context
3495 - Added new class LCIOEventParameters to handle LCIO input event parameters
3496 - LCIOFileReader :
3497 - Add extension with LCIO input event parameters to Geant4event
3498 - Geant4Output2LCIO :
3499 - Get LCIO event parameters from event extension (if any) and write them to LCIO output event
3500
3501 * 2018-03-01 David Blyth ([PR#317](https://github.com/aidasoft/dd4hep/pull/317))
3502 - DDCore: added CartesianStrip segmentations
3503
3504 * 2018-03-02 Frank Gaede ([PR#328](https://github.com/aidasoft/dd4hep/pull/328))
3505 - finalize the python bindings for DDRec:
3506 - implement StructExtension(DetElement&) and toString()
3507 - add DetectorData classes to python
3508 - add example `dumpDetectorData.py`
3509 - closes #306
3510 - remove deprecated methods and classes in DDRec
3511 - resolves #326
3512
3513 * 2018-03-06 Andre Sailer ([PR#331](https://github.com/aidasoft/dd4hep/pull/331))
3514 - Geant4InputHandling: reject stable particles without lifetime (e.g., initial state electrons), fixes #330
3515
3516 * 2018-03-07 Markus Frank ([PR#329](https://github.com/aidasoft/dd4hep/pull/329))
3517 - Fixes #324
3518 - Call `TGeoMixture::ComputeDerivedQuantities()` for ROOT >= 6.12.0 (Resolves #281)
3519 - Start to address issue: https://github.com/AIDASoft/DD4hep/issues/327
3520
3521 * 2018-03-07 Daniel Jeans ([PR#322](https://github.com/aidasoft/dd4hep/pull/322))
3522 - correct coded expressions for quadrupole, sextupole and octopole fields.
3523 - correct expression for octopole field in documentation
3524
3525 * 2018-03-09 Ercan Pilicer ([PR#319](https://github.com/aidasoft/dd4hep/pull/319))
3526 - Remove unnecessary `import exceptions` from python
3527
3528 * 2017-11-30 Markus Frank ([PR#272](https://github.com/aidasoft/dd4hep/pull/272))
3529 ### DDG4 enhancements
3530 - Enable framework support in DDG4. The `Geant4Context` is the main thread specific accessor to the `dd4hep`, `DDG4` and the user framework.
3531 - The access to the `dd4hep` objects is via the `Geant4Context::detectorDescription()` call,
3532 - the access to `DDG4` as a whole is supported via `Geant4Context::kernel()` and
3533 - the access to the user gframework using a specialized implementation of:
3534 `template <typename T> T& userFramework() const;`
3535
3536 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.
3537
3538 This way any experiment/user related data processing framework can exhibit its essential tools to `DDG4` actions.
3539
3540 A possible specialized implementations would look like the following:
3541 ```cpp
3542 struct Gaudi {
3543 IMessageSvc* msg;
3544 IHistogramSvc* histos;
3545 ....
3546 };
3547 template<> Gaudi& Geant4Context::userFramework<Gaudi>() const {
3548 UserFramework& fw = m_kernel->userFramework();
3549 if ( fw.first && &typeid(T) == fw.second ) return *(T*)fw.first;
3550 throw std::runtime_error("No user specified framework context present!");
3551 }
3552 ```
3553 To access the user framework then use the following call:
3554 ```cpp
3555 Gaudi* fw = context->userFramework<Gaudi>();
3556 ```
3557 of course after having initialized it:
3558 ```cpp
3559 Gaudi * fw = ...;
3560 GaudiKernel& kernel = ...;
3561 kernel.setUserFramework(fw);
3562 ```
3563
3564 - `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:
3565 - `G4RunManager` -> factory invokes the single threaded `G4RunManager`
3566 - `G4MTRunManager `-> factory invokes the multi threaded `G4MTRunManager`
3567
3568 The factory names here are identical to the names of the native G4 classes.
3569
3570 * 2017-11-30 Marko Petric ([PR#268](https://github.com/aidasoft/dd4hep/pull/268))
3571 - Introduce new DD4hep web-site: http://dd4hep.cern.ch/
3572 - Page is automatically build from [this repo](https://gitlab.cern.ch/CLICdp/DetectorSoftware/DD4hep-website)
3573 - Restructured `doc` folder and removed not doc related stuff to `etc`
3574 - Fixes to Doxygen configuration
3575 - create reference manual `make reference`
3576 - Better integration of DD4hep tex documentation and cmake
3577 - create manuals in PDF format `make pdf` create manuals in HTML format `make html`
3578 - allow creation of documentation if dependencies are not present
3579 - 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.
3580
3581 * 2018-02-14 Markus Frank ([PR#310](https://github.com/aidasoft/dd4hep/pull/310))
3582 - Fix MC truth problem in DDG4
3583 - Update of the `XML` reader to simplify externalization
3584
3585 * 2018-02-15 David Blyth ([PR#302](https://github.com/aidasoft/dd4hep/pull/302))
3586 - Added "NOINSTALL" option to cmake build function dd4hep_add_library
3587
3588 * 2018-02-16 Andre Sailer ([PR#315](https://github.com/aidasoft/dd4hep/pull/315))
3589 - DDG4::ExtraParticles: particles with too small life time were tagged as stable, now correctly marked unstable
3590 - DDG4::Geant4InputHandling: pass all particles except strings, quarks and gluons to Geant4 to get completely consistent MCParticle History, fixes #307
3591 - DDG4::Geant4PrimaryHandler: add property RejectPDGs
3592 - DDG4::Geant4InputHandling: print geant4 primary particle chains if VERBOSE
3593
3594 * 2017-11-16 David Blyth ([PR#258](https://github.com/aidasoft/dd4hep/pull/258))
3595 - Corrected `EcalBarrel` constructor after finding significant layer overlaps
3596 - Corrected `CylindricalEndcapCalorimeter` factors of 2 in layer/slice thickness
3597 - Corrected `ForwardDetector` factors of 2 in layer/slice thickness
3598
3599 * 2017-12-05 Marko Petric ([PR#278](https://github.com/aidasoft/dd4hep/pull/278))
3600 - 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
3601
3602 * 2017-12-05 Marko Petric ([PR#277](https://github.com/aidasoft/dd4hep/pull/277))
3603 - Fix logic for ignoring warnings in dictionary creation
3604 - Add `-Wno-overlength-strings` to all generated targets
3605
3606 * 2017-12-05 peterkostka ([PR#276](https://github.com/aidasoft/dd4hep/pull/276))
3607 - Update of LHeD example - overlaps (problem with SubdetectorAssembly)
3608
3609 * 2017-12-01 Markus Frank ([PR#275](https://github.com/aidasoft/dd4hep/pull/275))
3610 - Add Support to Export and Import GDML Data
3611 - 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`
3612 - Remove print statements from DDG4 scripts
3613 - Replace prints with calls to the python logging utility. Hopefully this shall give at some point python3 compatibility.
3614 - Update `G4Stepper` factories
3615 - Add some missing steppers
3616
3617 * 2017-12-01 Marko Petric ([PR#274](https://github.com/aidasoft/dd4hep/pull/274))
3618 - Revert `DDG4.py` Geant4 initialization parameters back to values specified in Geant4 (see discussion #266)
3619
3620 # v01-05
3621
3622 * 2017-11-10 Dan Protopopescu ([PR#262](https://github.com/aidaSoft/DD4hep/pull/262))
3623 - Added createGearForSiD minimal plugin solely for use with LCCalibration
3624
3625 * 2017-11-10 Frank Gaede ([PR#261](https://github.com/aidaSoft/DD4hep/pull/261))
3626 - add `Geant4::HitData::MonteCarloContrib::length` (step length)
3627 - set in all CalorimeterSDActions
3628 - write out it LCIO if `Geant4Sensitive::DETAILED_MODE` and LCIO_VERS>v02-10
3629
3630 * 2017-11-10 Whitney Armstrong ([PR#260](https://github.com/aidaSoft/DD4hep/pull/260))
3631 - added electric and magnetic field functions that return the field value (taking the position as the only argument) directly in `dd4hep::OverlayedField`
3632
3633 # v01-04
3634
3635 * 2017-10-17 Markus Frank ([PR#248](https://github.com/aidasoft/DD4hep/pull/248))
3636 ### VolumeManager Implementation
3637 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.
3638
3639 * 2017-10-17 Shaojun Lu ([PR#247](https://github.com/aidasoft/DD4hep/pull/247))
3640 - Fix C++11 pointer error by adding include <memory> for 'unique_ptr' (GCC 4.9).
3641
3642 * 2017-10-13 Marko Petric ([PR#246](https://github.com/aidasoft/DD4hep/pull/246))
3643 ### DDCMS:
3644 - Improve the CMS excercise. New examples etc.
3645 - Support for simulation using DDG4 (at least partially - since not all subdetector volumes are accepted by Geant4).
3646
3647 ### DDG4:
3648 - Event reader returns `EVENT_READER_EOF` if `EOF` is detected rather than a generic IO error.
3649 - Add generator status word to the `Geant4Particle` object. Remove the extension mechanism, which is very heavy to just add one integer.
3650
3651 ### General:
3652 - We need to distinguish the plugins using some namespace mechanism. I started to introduce the namespace separator `"_".` Hence all DD4hep plugins start with `DD4hep_<plugin>`. I hope this does not break everything. If it does, please notify me and we can undo.
3653
3654 * 2017-10-13 Whitney Armstrong ([PR#243](https://github.com/aidasoft/DD4hep/pull/243))
3655 - Added helper function `getAttrOrDefault` (defined in `DDCore/include/XML/Helper.h`)
3656 This function `getAttrOrDefault(xml::Element e, xml::XmlChar attr_name, T default_value)` will return the attribute name, converted to to type `T` but if it is not found it will return `default_value`. When building new detectors supplying this is useful for supplying default attribute values.
3657
3658 * 2017-10-19 Markus Frank ([PR#249](https://github.com/aidasoft/DD4hep/pull/249))
3659 * Improve the CMS tracker visualisation
3660 * Add DDG4 simulation example to DDCMS
3661 * Add some plugins to add visualisation attributes if required (not for the compact description)
3662
3663 * 2017-11-01 David Blyth ([PR#254](https://github.com/aidasoft/DD4hep/pull/254))
3664 - DDG4/python/DDG4.py: loadDDG4() changed to not raise exception if libraries are already loaded
3665
3666 * 2017-11-01 David Blyth ([PR#252](https://github.com/aidasoft/DD4hep/pull/252))
3667 - Added requirement of Python 2 in cmake/FindPYTHON.cmake. This makes clear the requirement of Python 2, and resolves the issue where CMake tries to build with Python 3 in a system where both exist.
3668
3669 * 2017-11-07 Frank Gaede ([PR#256](https://github.com/aidasoft/DD4hep/pull/256))
3670 - bug fix in `BitField64::operator[std::string]() `
3671 - make uses of TString in DocumentHandler.cpp compatible with clang9 (on Mac)
3672
3673 # v01-03
3674
3675 * 2017-10-12 Frank Gaede ([PR#244](https://github.com/AIDASoft/DD4hep/pull/244))
3676 - allow for unbounded surfaces in DDRec
3677 - add new property `SurfaceType::Unbounded`
3678 - if a surface is marked unbounded `Surface::insideBounds()` ignores the volume boundaries (and only checks the distance to the surface)
3679
3680 * 2017-09-19 Whitney Armstrong ([PR#233](https://github.com/AIDASoft/DD4hep/pull/233))
3681 - Added helper `CellIDPositionConverter::cellDimensions(const CellID& cell)`
3682
3683 * 2017-10-09 Frank Gaede ([PR#242](https://github.com/AIDASoft/DD4hep/pull/242))
3684 - improve `BitFieldCoder` class
3685 - remove heap allocation of BitFieldElements
3686 - add move constructors for efficient filling of vector
3687
3688 * 2017-09-29 Frank Gaede ([PR#238](https://github.com/AIDASoft/DD4hep/pull/238))
3689 - add new threadsafe class `BitFieldCoder` as replacement for `BitField64`
3690 - use as `const` everywhere
3691 - re-implement `BitField64` using `BitFieldCoder`
3692 - is thread safe if used locally
3693 - can be instantiated from `const BitFieldCoder*`
3694
3695 * 2017-09-18 Markus Frank ([PR#234](https://github.com/AIDASoft/DD4hep/pull/234))
3696 - Created a new example showing the CMS tracking detector
3697 - Get CMS going with their evaluation. Added a package DDCMS with the conversion plugins for the silicon trackers and the corresponding conversion mechanism for their `xml` structure.
3698
3699 * 2017-09-18 Frank Gaede ([PR#232](https://github.com/AIDASoft/DD4hep/pull/232))
3700 - fix reading of stdhep/lcio generator files with generator statuses not in [0,3]
3701 - add `G4PARTICLE_GEN_BEAM` and `G4PARTICLE_GEN_OTHER` to DDG4
3702 - `G4PARTICLE_GEN_BEAM` is generally agreed to be used for beam particles (HepMC, LCIO)
3703 - all other status codes vary from generator to generator and we use OTHER
3704 - for stdhep or lcio input the true generator status is preserved in the lcio output, regardless of its value
3705 - create a vertex for every parent-less particle in LCIOEventReader
3706 - this allows for example to read GuineaPig files ( non-prompt pair particles) or special user created files with non-prompt particles
3707 - Resolves #101
3708
3709 * 2017-09-20 Markus Frank ([PR#235](https://github.com/AIDASoft/DD4hep/pull/235))
3710 - A more complete version of the CMS tracker
3711 - Enhanced the CMS tracker example to be more complete.
3712 - Stopped at some point to convert all CMS algorithms. Hence, the tracker is not complete, but the remaining work looks to be purely mechanical.
3713
3714 * 2017-10-02 Frank Gaede ([PR#239](https://github.com/AIDASoft/DD4hep/pull/239))
3715 - add cell sizes to printout of `LayeredCalorimeterData::layer`
3716 - used in `dumpdetector -d`
3717
3718 * 2017-09-14 Frank Gaede ([PR#231](https://github.com/AIDASoft/DD4hep/pull/231))
3719 - adapt LCIOEventReader for Pythia8 and Whizard2
3720 - add all parent-less particles to outgoing vertex
3721 - fixes #226 and closes #229
3722 - also used for stdhep files
3723
3724 * 2017-09-07 Daniel Jeans ([PR#227](https://github.com/AIDASoft/DD4hep/pull/227))
3725 - Fix calculation of cell position in `MegatileLayerGridXY`
3726 - previously, returned position was the lower corner of the cell
3727 - after this bug fix, it's the cell centre
3728
3729 * 2017-10-05 Frank Gaede ([PR#241](https://github.com/AIDASoft/DD4hep/pull/241))
3730 - remove deprecated and unused classes from DDRec
3731
3732 * 2017-10-05 Frank Gaede ([PR#240](https://github.com/AIDASoft/DD4hep/pull/240))
3733 - add `dd4hep::rec::FixedPadSizeTPCData.zMinReadout`
3734 - needed to describe the cathode thickness
3735
3736 * 2017-08-21 Markus Frank ([PR#221](https://github.com/AIDASoft/DD4hep/pull/221))
3737 - Document several classes in doxygen notation.
3738 - Aim is that there are (at least) no class headers without docs.
3739 - See [documentation](http://test-dd4hep.web.cern.ch/test-dd4hep/doxygen/html/annotated.html)
3740
3741 # v01-02
3742
3743 * 2017-07-14 Daniel Jeans ([PR#204](https://github.com/AIDAsoft/DD4hep/pull/204))
3744 - add ncellsX/Y as a "parameter", allowing it to be set in compact description. This change is for easier use in the case of a MultiSegmentation. (Only a uniform segmentation can be defined in this way: for more complex cases, must set by driver.)
3745 - change from array to std::vector to store ncells information
3746
3747 * 2017-07-17 Markus Frank ([PR#206](https://github.com/AIDAsoft/DD4hep/pull/206))
3748 ## Implement ROOT persistency mechanism for detector descriptions (continuation of AIDASoft/DD4hep#202).
3749 Object extensions are now persistent.
3750
3751 This is however not for free: **it requires a dictionary for the extension itself and it requires a dictionary for the class holding the extension**. These are:
3752 - `dd4hep::DetElement::DetElementExtension<IFACE,CONCRETE>` for `DetElement` extensions.
3753 - `dd4hep::SimpleExtension<IFACE,CONCRETE>` for simple extension managed by the user framework (user calls explicitly destructor).
3754 - `dd4hep::DeleteExtension<IFACE,CONCRETE>` for simple extension managed by dd4hep (dd4hep calls automatically destructor on hosting object destruction).
3755 - `dd4hep::CopyDeleteExtension<IFACE,CONCRETE>`. As above, but these extensions support calling the copy constructor of the embedded object and hence allow to copy also the hosting objects.
3756
3757 Please note: to persistify these objects it was necessary to no longer use the type-info of the objects as an identifier, but rather a 64-bit-hash of the raw type-info-name. This relies that this name is identical across platforms. This typically is true for linux, but not enforced by any standard.
3758
3759 * 2017-08-11 Andre Sailer ([PR#213](https://github.com/AIDAsoft/DD4hep/pull/213))
3760 - CMake:: dd4hep_generate_rootmap: use CMAKE_INSTALL_LIBDIR if it is set. If the macro is called from other libraries this variable might be set and should be used for consistency. Fixes #212
3761
3762 * 2017-07-13 Markus Frank ([PR#202](https://github.com/AIDAsoft/DD4hep/pull/202))
3763 ## Implement ROOT persistency mechanism for detector descriptions
3764
3765 The following commits allow to save and restore Detector objects (ie. the full detector description) to/from ROOT. Most changes affected the usage of void pointers.
3766
3767 It is **NOT** possible to:
3768 * save object extensions. Another usage of void pointers and type-info objects, which both cannot be saved.
3769 * save callback objects. Callbacks store in memory pointers to member functions. These depend on the loading of libraries at run-time and hence may differ from application to application.
3770 * save conditions slices. This shall be a futute extension. There should be no fundamental problem doing so - it was simply not yet done.
3771
3772 In the example area a new slot call "Persistency" was created with various tests:
3773 * Save and restore simple conditions
3774 * Save and restore the MiniTel detector (`examples/ClientTests/compact/MiniTel.xml`)
3775 * Save and restore the CLICSiD detector (`examples/CLICSiD/compact/compact.xml`)
3776
3777 The detector examples also have a set of tests associated to check the validity of the restored information.
3778
3779 ## Integrate `DDSegmentatation` into `DDCore`
3780
3781 As a first step to start the cleanup of `DDSegmentation` the code was integrated into `DDCore`. For backwards compatibility a dummy library `libDDSegmentation.so` is kept, so that client cmake files directly referring `DDSegmentation` still work. **This tough is only a temporary measure and users should remove references to the DDSegmentation library.** Include files can be accessed as before. These are part of the `DDCore` include directory.
3782
3783 * 2017-08-15 Yorgos Voutsinas ([PR#216](https://github.com/AIDAsoft/DD4hep/pull/216))
3784 * Adding variable "nocore" for beam pipe (with default value = false) In case the variable appears in the BP xml file as "true", the BP sections will have no core of beam material, in order that someone might add various BP walls made of different materials while avoiding G4 overlaps. Example of use:
3785 ```xml
3786 <detector name="BeBeampipe" type="DD4hep_Beampipe_o1_v01" insideTrackingVolume="true" nocore="true" vis="BeamPipeVis">
3787 ```
3788
3789 * 2017-08-15 Jan Strube ([PR#215](https://github.com/AIDAsoft/DD4hep/pull/215))
3790 - LCIOEventReader: adding parameter for the name of the MCParticle collection: `MCParticleCollectionName`
3791
3792 * 2017-08-14 Markus Frank ([PR#217](https://github.com/AIDAsoft/DD4hep/pull/217))
3793 ## Enhance ROOT Detector Description Persistency
3794 Conditions slices from the DD4hep conditions store can now be saved to ROOT files ans named objects. Conditions persistency examples are added to the `examples/Conditions` section.
3795 The examples are derived from the Telescope and CLICSiD example:
3796 - `Conditions_Telescope_root_save`
3797 - `Conditions_Telescope_root_load_iov`
3798 - `Conditions_Telescope_root_load_pool`
3799 - `Conditions_CLICSiD_root_save_LONGTEST`
3800 - `Conditions_CLICSiD_root_load_iov_LONGTEST`
3801 - `Conditions_CLICSiD_root_load_usr_LONGTEST`
3802 - `Conditions_CLICSiD_root_load_cond_LONGTEST`
3803
3804 ## Fix Handle Problem when Accessing Materials from Volumes
3805 A cast problem was not spotted in the last commit, which manifested itself in accessing invalid materials from volumes. This commit resolves #211 , reported by @jhrdinka.
3806
3807 A set of tests checks this behaviour in the ClientTests: `ClientTests_volume_materials_<text>`, where the volume tree is scanned and for all sensitive volumes and access the corresponding `materials/TGeoMedium` entities from the volume object.
3808
3809 * 2017-07-18 Shaojun Lu ([PR#208](https://github.com/AIDAsoft/DD4hep/pull/208))
3810 - added "#include <memory>" for the smart pointers to DD4hepRootPersistency.cpp
3811
3812 * 2017-07-19 Markus Frank ([PR#209](https://github.com/AIDAsoft/DD4hep/pull/209))
3813 - Implement `dd4hep::Tube` using `TGeoTubeSeg` (See also Issue AIDASoft/DD4hep#203 for details)
3814
3815 * 2017-07-21 Markus Frank ([PR#210](https://github.com/AIDAsoft/DD4hep/pull/210))
3816 ## Implement ROOT persistency mechanism for the conditions
3817
3818 Conditions pools can now be made persistent provided all the dictionaries for the payload objects are provided. A new class `ConditionsRootPersistency` allows to save and re-load conditions pools to/from a ROOT file. Such pools can either be:
3819 - Simple `ConditionsPool` objects
3820 - The entire `IOV` indexed pool set (class `ConditionsIOVPool`) or
3821 - A the pool used by a `ConditionsSlice` (class `UserPool`).
3822 - A std::vector<Condition> which belong all to the same IOV
3823
3824 In any case the restoration of the saved conditions is performed through the `ConditionsManager` interface in order to ensure proper management of the added condition objects.
3825
3826 Some example plugin tasks were added in examples/Conditions:
3827 - `DD4hep_ConditionExample_save` to save conditions to a ROOT file.
3828 - `DD4hep_ConditionExample_load` to restore conditions from file.
3829
3830 Others to come.
3831
3832 ## Split of dictionary files
3833 The ROOT dictionary creation in `DDCore` was getting increasingly large. Now the ROOT dictionaries are created in several files, what firstly allows them to be produced in parallel and secondly eases the compilation due to smaller generated file sizes.
3834
3835
3836 # v01-01
3837
3838 * 2017-07-06 Markus Frank ([PR#201](https://github.com/AIDASoft/DD4hep/pull/201))
3839 ## DDCore: Changes to the VolumeManager interface
3840
3841 Recent descrepancies showed that the call to lookup a placement
3842 from the volume manager may have an ambiguous meaning:
3843 It may (as used until now) be the placement of thge closest
3844 detector element - a functionality used by various tests
3845 or be the placement of the sensitive volume itself.
3846 So far, since each sensitive volume in the DD4hep tests
3847 is represented by a DetElement structure, both
3848 approaches returned the same placed volume.
3849
3850 Since there is the possibility to have sensitive volumes, which are not
3851 directly connected to a single DetElement structure, this call was
3852 split to resolve this ambiguity:
3853
3854 /// Lookup a physical (placed) volume identified by its 64 bit hit ID
3855 PlacedVolume lookupVolumePlacement(VolumeID volume_id) const;
3856 /// Lookup a physical (placed) volume of the detector element
3857 /// containing a volume identified by its 64 bit hit ID
3858 PlacedVolume lookupDetElementPlacement(VolumeID volume_id) const;
3859
3860 * 2017-07-06 Andre Sailer ([PR#200](https://github.com/AIDASoft/DD4hep/pull/200))
3861 - Now will give a warning if multiple entities (e.g., constants) of the same name are defined in the XML
3862
3863 # v01-00-01
3864
3865 * 2017-07-04 Frank Gaede ([PR#199](https://github.com/AIDASoft/DD4hep/pull/199))
3866 - bug fix for VolumeManagerContext::toElement() and VolumeManagerContext::placement()
3867 - set flag=true in VolumeManager_Populator::add_entry when
3868 a ContextExtension is needed, i.e. sensitive volume is not DetElement's volume
3869 - fixes problems in CellIDPositionConverter
3870
3871 # v01-00
3872
3873 * 2017-06-22 Marko Petric ([PR#192](https://github.com/AIDASoft/DD4hep/pull/192))
3874 - Move `AlignDet_Telescope_readback_xml` to later in the pipeline since it depends on the output of `AlignDet_Telescope_write_xml`
3875
3876 * 2017-06-22 Andre Sailer ([PR#191](https://github.com/AIDASoft/DD4hep/pull/191))
3877 - Surface: fix memory leak of transformation matrix
3878 - XML::Layering: fix memory leak of contained layers in the object
3879
3880 * 2017-06-23 Andre Sailer ([PR#197](https://github.com/AIDASoft/DD4hep/pull/197))
3881 - Fix memory leaks for Tube, EllipticalTube and Polyhedron
3882
3883 * 2017-06-23 Andre Sailer ([PR#196](https://github.com/AIDASoft/DD4hep/pull/196))
3884 - CMake: add `Project( DD4hep )`, needed to get the correct CMAKE_CXX_COMPILER_ID on macs due to CMP0025 (cmake policy)
3885 - CMake: fix treatment of linker flags, they are now properly set for Linux and Macs to error when undefined functions are encountered at link time
3886 - CMake: fix elif --> elseif when checking threading libraries
3887
3888 * 2017-06-23 Frank Gaede ([PR#195](https://github.com/AIDASoft/DD4hep/pull/195))
3889 - fix crash in `dd4hep::rec::Surface` after changes in Handle assignment (PR #193)
3890 - fix use of deprecated `dd4hep::rec::MaterialManager` c'tor in Surface
3891
3892 * 2017-06-20 Frank Gaede ([PR#185](https://github.com/AIDASoft/DD4hep/pull/185))
3893 - bug fix in material utilities
3894 - call `MaterialManager( Volume v)` with `Detector.world().volume()`
3895
3896 * 2017-06-20 Marko Petric ([PR#184](https://github.com/AIDASoft/DD4hep/pull/184))
3897 - Reinstate the full test-suite on Travis
3898
3899 * 2017-06-20 Markus Frank ([PR#183](https://github.com/AIDASoft/DD4hep/pull/183))
3900 - Unify header guards in DDCore
3901 - Add header to steer ignoring warnings of rootcling generated dictionaries.
3902
3903 * 2017-06-20 Frank Gaede ([PR#182](https://github.com/AIDASoft/DD4hep/pull/182))
3904 - cleanup of namespace `dd4hep::rec`
3905 - remove obsolete bwd compatibility for `DD4hep::DDRec`
3906 - re-introduce `[deprecated]` warnings for unmaintained classes in DDRec/API
3907 - re-fix deprecated c'tor for `MaterialManager` in material utilities
3908
3909 * 2017-06-20 Markus Frank ([PR#181](https://github.com/AIDASoft/DD4hep/pull/181))
3910 - Attack many warnings from:
3911 - `-Wshadow`
3912 - `-Winclude-hygiene`
3913 - `-Woverlength-strings` (int cling dictionaries)
3914
3915 * 2017-06-20 Markus Frank ([PR#179](https://github.com/AIDASoft/DD4hep/pull/179))
3916 - Remove a bunch of shadow warnings and include-hygiene warnings.
3917
3918 * 2017-06-21 Marko Petric ([PR#169](https://github.com/AIDASoft/DD4hep/pull/169))
3919 - Make boost explicit requirement for DD4hep and drop DD4HEP_USE_BOOST
3920
3921 * 2017-06-21 David Blyth ([PR#168](https://github.com/AIDASoft/DD4hep/pull/168))
3922 - Added environment helper scripts `thisdd4hep_only.(c)sh` that only set up variables for DD4hep and not for dependencies.
3923
3924 * 2017-06-19 Markus Frank ([PR#178](https://github.com/AIDASoft/DD4hep/pull/178))
3925 - Update documentation after reorganization of namespaces (put back previous docs).
3926
3927 * 2017-06-19 Markus Frank ([PR#175](https://github.com/AIDASoft/DD4hep/pull/175))
3928 ## DD4hep namespace reorganization
3929
3930 Re-organize namespaces according to the decisions of the DD4hep developers meeting from 16th June we have decided:
3931
3932 1. all namespaces will be lower case and shorter
3933 * rename namespace `DD4hep` -> `dd4hep`
3934 * rename namespace `DD4hep::DDRec` -> `dd4hep::rec`
3935 * rename namespace `DD4hep::Simulation` -> `dd4hep::sim`
3936 * rename namespace `XML` -> `xml` and `JSON` -> `json`
3937 * rename all other namespaces according to this pattern
3938 2. The namespace `DD4hep::Geometry::` will be incorporated into `dd4hep::`
3939 3. All utilities will be moved `dd4hep::detail`
3940 4. `LCDD` will be renamed to `Detector` and current `Detector.h` will be renamed to `DetElement.h`
3941 8. Examine if `DDSegmentation` can be incorporated into `DDCore` and make it volume aware
3942 * If this this cannot be achieved in whole place `DDSegmentation` into the right namespace
3943
3944 ## DDParsers
3945
3946 DDParsers are now a separate package. This does not make it yet standalone,
3947 but it is at the same level as e.g. DDSeqmentation. Any librarian is
3948 encouraged to externialize it fully.
3949
3950 # v00-24
3951
3952 * 2017-06-08 Markus Frank ([PR#160](https://github.com/AIDASoft/DD4hep/pull/160))
3953 * Add a new class `AlignmentsNominalMap`, which behaves like a `ConditionsMap` and handles alignment entries.
3954 * The `AlignmentsNominalMap` is not a conditions cache per-se. This implementation behaves like a `conditionsmap`, but it shall not return real conditions to the user, but rather return the default alignment objects (which at the basis are conditions as well) to the user. These alignments are taken from the `DetElement` in question `Alignment DetElement::nominal()`.
3955
3956 * The basic idea is to enable users to write code "as if" there would be conditions present. This is important to ease in the lifetime of the experiment the step from the design phase (where obviously no conditions are taken into account) to a more mature phase, where alignment studies etc. actually are part of the "bread and butter work".
3957
3958 * Added a corresponding example in examples/AlignDet:
3959 ```
3960 $> geoPluginRun -volmgr -destroy -plugin DD4hep_AlignmentExample_nominal \
3961 -input file:${DD4hep_DIR}/examples/AlignDet/compact/Telescope.xml
3962 ```
3963 * Access the DetElement nominal conditions using the `AlignmentNominalMap`.
3964 Any use of DDCond is inhibited.
3965 1) We use the generic printer, which during the detector element scan accesses the conditions map.
3966 2) We use a delta scanner to extract the nominal deltas from the `DetElement`'s nominal alignments
3967 3) We use a `ConditionsTreeMap` to perform the alignments re-computation.
3968
3969 * 2017-06-08 Markus Frank ([PR#159](https://github.com/AIDASoft/DD4hep/pull/159))
3970 # Implementation of the decisions made at the Conditions mini-workshop
3971
3972 ## Access mechanisms of DD4hep conditions for utilities
3973
3974 Access to conditions is solely supported using the interface class DDCore/ConditionsMap.
3975 * All utilities must use this interface.
3976 * Any concrete implementation using conditions/alignment utilities must implement this interface
3977 * Basic implementation using STL `map`, `multimap` and `unordered_map` are provided.
3978 * A special no-op implementation of this interface shall be provided to access "default" alignment conditions. This implementation shall fall-back internally to the `DetElement::nominal()` alignment.
3979 Known clients: `VolumeManager` (hence: DDG4, DDRec, etc.)
3980
3981 Though this sounds like a trivial change, the consequences concern the entire conditions
3982 and alignment handling. This interface decouples entirely the core part of DD4hep
3983 from the conditions cache handling and the alignment handling.
3984
3985 Based on this interface most utilities used to handle conditions, detectors scans
3986 to visit `DetElement` related condition sets, alignment and conditions printers etc.
3987
3988 For details, please see:
3989 ```
3990 DDCore/include/DD4hep/AlignmentsPrinter.h
3991 DDCore/include/DD4hep/AlignmentsProcessor.h
3992 DDCore/include/DD4hep/ConditionsPrinter.h
3993 DDCore/include/DD4hep/ConditionsProcessor.h
3994 DDCore/include/DD4hep/DetectorProcessor.h
3995 ```
3996
3997 ## Naming conventions for detector conditions
3998
3999 * Condition are logically attached to DetElements
4000 * Condition names are: `DetElement.path()+"#"+condition-name`
4001 Example: `/world/LHCb/DownstreamRegion/Muon/M5/M5ASide/R3ASide/Cham046#alignment`
4002
4003 * Condition keys are a `int64` compound of two `int32`:
4004 ```cpp
4005 union {
4006 int64 key;
4007 struct {
4008 int32 item_key;
4009 int32 det_key; // Needs to be the high word to have a properly ordered map
4010 } values;
4011 };
4012 det_key = hash32(DetElement.path())
4013 item_key = hash32(condition-name)
4014 ```
4015 **Condition keys must be unique throughout the detector description.**
4016
4017 * Alignment conditions naming conventions:
4018 * Alignment-delta conditions are called `alignment_delta`.
4019 * Fully qualified alignment conditions are called `alignment`.
4020 DD4hep provided alignment utilities rely on this convention.
4021
4022 * Other conditions can be named freely.
4023
4024 ## Important Notice
4025 The **Alignment conditions naming conventions** are already used by several utilities involving alignments. If you plan to use these, do not freely ignore these recommendations. When the naming conventions are ignored, these utilities shall not work.
4026
4027 ## Updates to DDCond
4028 DDCond implements a working conditions cache following the design criteria sketched above. The `conditionsSlice` object implements (though by forwarding to the `ConditionsUserPool`) a `ConditionsMap` interface.
4029
4030 The `DD4hep_ConditionsMapUserPool` plugin implements in a very efficient way this interface using an ordered map. Using the above described key definition, this implementation allows very efficient scans of conditions/alignments etc. of individual detector elements, since conditions which belong to the same detector element are contiguous.
4031
4032 ## Alignment handling/computations
4033 Using the conditions maps, the computation of (mis-)alignment data from deltas
4034 is no longer bound to the conditions mechanisms.
4035
4036 A special utility called `AlignmentsCalculator` is put in place (see `DDCore/include/DD4hep/AlignmentsCalculator.h`) to facilitate the computation of a coherent set of alignments given a set of delta-parameters. This mechanism is much simpler, easier to understand and far less code intensive than the previously designed callback mechanism where alignments are obtained using conditions derivation.
4037
4038 ## Update of the existing examples
4039
4040 The example sets in DDDB, `examples/Conditions, examples/AlignDet`, `examples/DDDB` were updated according to the changed mechanism of accessing conditions. Here we can see the real benefits of the new approach: keeping same functionality, the examples became way off simpler. Simply count the number of lines of code.
4041
4042 * 2017-06-17 Marko Petric ([PR#170](https://github.com/AIDASoft/DD4hep/pull/170))
4043 - Add clang flag to warn about using namespace directive in global context in header
4044
4045 * 2017-06-17 Frank Gaede ([PR#167](https://github.com/AIDASoft/DD4hep/pull/167))
4046 - renamed the namespace DD4hep::DDRec to dd4hep::rec (see #166)
4047 - provide backward compatibility to outside world for now
4048 - moved the interfaces in namespace DDSurfaces to dd4hep::rec
4049 - provide backward compatibility to outside world for now
4050
4051 * 2017-06-15 Frank Gaede ([PR#165](https://github.com/AIDASoft/DD4hep/pull/165))
4052 - started to cleanup DDRec
4053 - don't use LCDD::getInstance() in SurfaceManager and SurfaceHelper
4054 - deprecate unused(?) classes in DDRec/API and DDRec/Extensions
4055 - deprecate MaterialManager() using LCDD::getInstance()
4056
4057 # v00-23
4058
4059 * 2017-05-12 Marko Petric ([PR#152](https://github.com/aidasoft/DD4hep/pull/152))
4060 - Update CI to GCC 7.1 and LLVM 4.0 and include Geant4 10.3
4061
4062 * 2017-05-22 Frank Gaede ([PR#154](https://github.com/aidasoft/DD4hep/pull/154))
4063 - protect against NANs in Guineapig pairs files in Geant4EventReaderGuineaPig
4064 - make INFO printout more consistent with dd4hep style
4065
4066 * 2017-06-07 Frank Gaede ([PR#157](https://github.com/aidasoft/DD4hep/pull/157))
4067 - bug fix in test_cellid_position_converter
4068 - with this no tests for position from cellID lookup should fail
4069 - re-implement ```CellIDPositionConverter::cellID(pos)```
4070
4071 * 2017-06-08 Marko Petric ([PR#156](https://github.com/aidasoft/DD4hep/pull/156))
4072 - Mark all fallthroughs in case statements with attributes to suppress warning
4073
4074 * 2017-06-01 Frank Gaede ([PR#155](https://github.com/aidasoft/DD4hep/pull/155))
4075 - add new class rec::CellIDPositionConverter
4076 - replaces rec::IDDecoder
4077 - implement positionNominal(CellID id) and cellID(position)
4078 - prepare for using alignment map by separating transforms to DetElement and daughter volume
4079 - do not use deprecated methods/members in VolumeManager
4080 - add test_cellid_position_converter.cpp
4081 - add VolumeManagerContext::toElement
4082 - transform from sensitive volume to next DetElement
4083
4084 # v00-22
4085
4086 * 2017-04-28 Markus Frank ([PR#148](https://github.com/aidasoft/DD4hep/pull/148))
4087 Improvements to the compact xml processing
4088 ===========================================
4089
4090 Elements may now be specified within compact in 2 ways:
4091 1) old way: create an effective element:
4092 ` <element Z="4" formula="Be" name="Be" >`
4093 ` <atom type="A" unit="g/mol" value="9.01218" />`
4094 ` </element>`
4095
4096 2) create element by defining an isotope mixture:
4097 ` <isotope name="C12" Z="6" N="12"/>`
4098 ` <atom unit="g/mole" value="xxxx"/>`
4099 ` </isotope>`
4100 `.....`
4101 ` <element name="C">`
4102 ` <fraction n="0.9893" ref="C12"/>`
4103 ` <fraction n="0.0107" ref="C13"/>`
4104 ` </element>`
4105
4106 Improved debugging of compact xml conversions
4107 The following tags allow to enable increased prinout depending on additional tags in the compact file:
4108 ` <debug>`
4109 ` <type name="isotopes" value="1"/>`
4110 ` <type name="elements" value="1"/>`
4111 ` <type name="materials" value="0"/>`
4112 ` <type name="visattr" value="0"/>`
4113 ` <type name="regions" value="0"/>`
4114 ` <type name="readout" value="0"/>`
4115 ` <type name="limits" value="0"/>`
4116 ` <type name="segmentation" value="0"/>`
4117 ` </debug>`
4118
4119 Disable the ROOT TGeo element table from the compact xml.
4120 Note: ALL elements must then be specified in the XML material database.
4121 ` <geometry>`
4122 ` <clear name="elements"/>`
4123 ` </geometry>`
4124
4125 By default compact accepts exactly one input file (others may be included therein).
4126 In order to process iteratively multiple input files, the opening and the closing of the
4127 geometry steering tags may be added to the compact description. This example
4128 gives the default behaviour:
4129 ` <geometry open="true" close="true"/>`
4130
4131 Please note: per compact file exactly ONE geometry tag is allowed.
4132
4133
4134 Debugging the DDG4 geometry conversion mechanism
4135 =============================================
4136 New boolean properties of the Geant4DetectorGeometryConstruction object,
4137 which result in debugging printouts (defaults are OFF):
4138 DebugMaterials
4139 DebugElements
4140 DebugShapes
4141 DebugVolumes
4142 DebugPlacements
4143 DebugRegions
4144 PrintPlacements
4145 PrintSensitives
4146
4147 * 2017-04-28 Ben Couturier ([PR#146](https://github.com/aidasoft/DD4hep/pull/146))
4148 * Trivial fix for the DDDB converter to create paramphysvol3D volumes, which are otherwise ignored.
4149
4150 * 2017-04-20 Andre Sailer ([PR#145](https://github.com/aidasoft/DD4hep/pull/145))
4151 - LCIOOutput: Add setting of ProducedBySecondary bit for SimTrackerHits if the hit is produced by a particle that is not stored in the MCParticle collection, needs lcio 2.8
4152
4153 * 2017-05-05 Andre Sailer ([PR#150](https://github.com/aidasoft/DD4hep/pull/150))
4154 - Always create dd4hepConfigVersion.cmake in CMAKE_INSTALL_PREFIX and cmake folder
4155 - Create DD4hepConfig.cmake also in cmake folder
4156 - renamed Cmake Macro GENERATE_PACKAGE_CONFIGURATION_FILES to DD4HEP_GENERATE_PACKAGE_CONFIGURATION_FILES so it does not clash with the macro of the same name in ilcutil/cmakemodules
4157
4158 * 2017-05-07 Andre Sailer ([PR#151](https://github.com/aidasoft/DD4hep/pull/151))
4159 - Use cmake to create Version.h file to contain dd4hep version information and macros
4160 - Change the way dd4hep package version is defined and set standard cmake variables for this purpose
4161
4162 # v00-21
4163
4164 * 2017-04-03 Marko Petric ([PR#142](https://github.com/AIDASoft/DD4hep/pull/142))
4165 - Update to the CI system:
4166 - Install directly cvmfs on base system, which removes the need for the parrot connector
4167 - Replace CernVM docker with plain docker
4168 - This reduces the build run time from 50 min to 25 min
4169
4170 * 2017-03-27 Shaojun Lu ([PR#134](https://github.com/AIDASoft/DD4hep/pull/134))
4171 - Set verbose true for G4EmSaturation to printout Birks coefficient.
4172
4173 * 2017-03-29 Frank Gaede ([PR#139](https://github.com/AIDASoft/DD4hep/pull/139))
4174 - add a utility to dump the B-field for a given Volume
4175 - usage: dumpBfield compact.xml x y z dx dy dz [in cm]
4176 - will dump the B-field in volume [-x:x,-y:y,-z,z] with steps [dx,dy,dz]
4177
4178 * 2017-03-29 Joschka Lingemann ([PR#138](https://github.com/AIDASoft/DD4hep/pull/138))
4179 - Direct implementation that calculates eta from cartesian coordinates
4180 - Fix: Add registration of Phi-Eta segmentation
4181
4182 * 2017-03-29 Joschka Lingemann ([PR#137](https://github.com/AIDASoft/DD4hep/pull/137))
4183 - Adding GridRPhiEta a segmentation of equidistant size in R, Phi and Pseudorapidity
4184 - Adding GridPhiEta a segmentation of equidistant size in Phi and Pseudorapidity
4185
4186 * 2017-03-28 Markus Frank ([PR#135](https://github.com/AIDASoft/DD4hep/pull/135))
4187 - Accidentally the Segmentations of Joschka were added in the wrong place of the hierarchy.
4188 I removed them. He will later add them to the proper location.
4189 - Some C++ warnings concerning the C++11 standard were also fixed.
4190
4191 * 2017-03-24 Yorgos Voutsinas ([PR#132](https://github.com/AIDASoft/DD4hep/pull/132))
4192 - modifying the LayeredCalorimeterData struct in order to cope with conical shaped calorimeters
4193
4194 * 2017-03-31 Markus Frank ([PR#143](https://github.com/AIDASoft/DD4hep/pull/143))
4195 - Add new test for multi segment multi collections segmentations using a calorimeter endcap.
4196 See also: https://github.com/AIDASoft/DD4hep/issues/141, which is still unresolved,
4197 but seems not to be directly related to the Monte-Carlo truth handling.
4198 - Side effect: add Geant4EventActions to dump hits and particles
4199 - Fix a linker problem for unicode tags.
4200
4201 * 2017-03-31 Frank Gaede ([PR#140](https://github.com/AIDASoft/DD4hep/pull/140))
4202 - clarify documentation for CartesianField and implementations
4203 - make clear that void fieldComponents() has to add
4204 the new field to the given field vector
4205
4206 * Marko Petric 2017-03-23
4207 - Convert Release notes to markdown
4208 - Add some text about WIP and issue tracking
4209 - Add CONTRIBUTING.md and PULL_REQUEST_TEMPLATE
4210
4211 * Markus Frank 2017-03-17
4212
4213 - Add a new input type by parsing JSON files. The basic json interpreter
4214 is present and offers essentially the same interface as the XML persers.
4215 The integration to the compact dialect however is not yet done.
4216 It should become however a valid alternative to parsing XML files
4217 with a small maintenance overhead, since the enhancement implementation
4218 present in XMLDimesion.h, XMLDetector.h and XMLChildValue.h is shared
4219 and instantiated for both.
4220
4221 * Markus Frank 2017-03-10
4222
4223 - New round to kill coverity deficiencies.
4224 - Add exception try-catch clauses around various main programs in UtilityApps
4225 See UtilityApps/src/main.h for details.
4226
4227 * Markus Frank 2017-03-09
4228
4229 - Fix issue with long volume ids exceeding 32 bits.
4230 Test added in examples/ClientTests
4231 - Fix volume manager id identical placed volumes are used in different places of the hierarchy.
4232 Test added in examples/ClientTests
4233 - Remove various svn left-overs (ID$ strings etc.)
4234
4235
4236 * Frank Gaede 2017-02-10
4237
4238 - allow event readers to create more than one vertex per event
4239 this should be possible as most generator formats allow to specify
4240 more than one event vertex
4241 - changed signature of Geant4EventReader::readParticles(int,Vertex*, Particles&)
4242 to Geant4EventReader::readParticles(int,Vertices&, Particles& )
4243 - implement in LCIOEventReader, Geant4EventReaderHepEvt and Geant4EventReaderHepMC
4244 - for now still one vertex only is created using the first final state particle
4245 for HepEvt and LCIO
4246
4247 # v00-20
4248
4249 * Frank Gaede 2017-01-13
4250 - fix computation of radiation and interaction lengths
4251 - require the density to be specified in the materials xml file
4252
4253 * Frank Gaede 2017-01-04
4254 - adopt numbers in test_surface.cc to elements.xml
4255 - use elements.xml generated with plugin in DDTest
4256 - add ROOT version to dumped element table
4257
4258 * Frank Gaede 2016-12-22
4259 - fix test_surfaces by adapting to elements.xml
4260 - fix test_units by including elements.xml
4261
4262 * Markus Frank 2016-12-21
4263 - Add plugin to dump the default ROOT element table
4264
4265 * Markus Frank 2016-12-20
4266 - Remove obsolete build flags
4267
4268 * Markus Frank 2016-12-19
4269 - Add Multi-threading conditions example
4270
4271 * Andre Sailer 2016-12-16
4272 - Add drivers for Beampipe, Mask and Solenoid from lcgeo, changed name to dd4hep_*
4273
4274 * Rosa Simonielo, Frank Gaede 2016-12-15
4275 - add new struct rec::NeighbourSurfacesStruct defined for neighbouring surfaces
4276
4277 * Frank Gaede 2016-12-14
4278 - fix library pathes in env scripts for macos
4279 - use DD4HEP_LIBRARY_PATH and full lib path on mac
4280 - apply rpath compiler settings to GaudiPluginService
4281 - make compatible w/ Geant4 10.3
4282
4283 * Marko Petric 2016-12-13
4284 - Fix compiler flag handling
4285
4286 * Daniel Jeans 2016-12-08
4287 - add utility graphicalMaterialScan
4288
4289 * Markus Frank 2016-12-07
4290 - Fix compiler error on MacOSX gcc 4.9
4291
4292 * Marko Petric 2016-12-07
4293 - Remove few tests from Travis
4294 - move flag to CMAKE_SHARED_LINKER_FLAGS
4295 - Remove the dynamic lookup on runtime for libs on mac
4296
4297 * Markus Frank 2016-12-05
4298 - First version of conditions and alignments
4299
4300 * Andre Sailer 2016-12-06
4301 - DDTest: fix location to install DDtest header files
4302 - Remove minimum required cmake version from DD4hepBuild, this interferes with other packages depending on dd4hep
4303
4304 * Marko Petric 2016-12-02
4305 - Fix missing CLHEP in thisdd4hep.sh
4306 - Clean up FindPYTHON.cmake file
4307 - Change gaudi auto_ptr to unique_ptr since the auto is deprecated
4308 - Fix initAClick
4309
4310 * Marko Petric 2016-11-29
4311 - Fix rpath issues on mac with python
4312 - Add custom DynamicPath on mac when loading python libs
4313 - Add function to set the DD4HEP_LIBRARY_PATH
4314
4315 * Marko Petric 2016-11-28
4316 - Update all minimum CMake versions
4317 - Fix gitlab builds
4318 - Rename MakeRootMap to MakeGaudiMap for consistency
4319 - Remove ROOT5 things and make approprite fixed to the usage of ROOTConfig.cmake
4320 Remove FindROOT.cmake and use from now on ROOTConfig.cmake
4321
4322
4323 * Markus Frank 2016-11-30
4324 - New version of conditions handling
4325
4326 * Andre Sailer 2016-11-25
4327 - Fix ProductionCut conversion in Geant4Converter.cpp: cut is a range
4328
4329 * Markus Frank 2016-11-24
4330 - Fix linker errors on MAC
4331 - Remove compiler warnings on MACOSX
4332 - First fixes to version of alignment constant processing also remove where visited the $ statements in the files.
4333 They are useless, since git does not support them. Fixed some tests, which no longer properly worked in
4334 the conditions area.
4335 - First usable version of alignment constant processing
4336
4337
4338 * Markus Frank 2016-11-16
4339 - Try to improve efficiency using C++11 default operations
4340
4341 * Markus Frank 2016-11-10
4342 - Simplify opaque data mappings for conditions
4343
4344 # v00-19
4345 * 2016-11-17 D.Jeans
4346 - rewritten MegatileLayerGrid class
4347 - not backward compatible
4348
4349 * M.Petric:
4350 - improved Travis CI configuration
4351 - remove some tests from CI
4352
4353 # v00-18
4354
4355 * 2016-11-09 F.Gaede
4356 - updated rec::LayeredCalorimeterData::Layer:
4357 - remove deprecated thickness
4358 - add phi0
4359 - add copy assignement to rec::MaterialData
4360
4361 * 2016-11-08 M.Frank
4362 - Improve conditions handling. Started to implement using simple telescope
4363 detector from C.Burr.
4364 - Add variable DD4HEP_LIBRARY_PATH to be used on MacOSX El Capitane
4365 to overcome DYLD_LIBRARY_PATH protection issues.
4366 - Fix to copy with negative(rebased) IDDDescriptor fields
4367 (affects IDDDescriptor and VolumeManager).
4368 2 New tests:
4369 - ClientTests/Bitfield_SidesTest.xml to test readout string:
4370 system:8,barrel:-2
4371 - ClientTests/Bitfield_SidesTest2.xml to test readout string:
4372 system:16,barrel:16:-5
4373
4374 * 2016-10-18 M.Frank
4375 - Due to pressure of the FCC folks, I tried to implement a more dd4hep like implementation of the
4376 the segmentation objects. For testing only CartesianGridXY. If this mechanism works,
4377 it could be a starting recipe for the rest of the segmentations. The draw-back of this approach is,
4378 that assignments are not reversible:
4379 dd4hep::CartesianGridXY xy = readout.segmentation(); // Works
4380 dd4hep::Segmentation seg = xy; // Should not work
4381
4382 - Reason: the managed objects are different....at some point in time I will have to find a
4383 clean solution for this, but the required changes for such a solution shall be manageable.
4384
4385 # v00-17
4386
4387 * 2016-09-29 V.Volkl
4388 - Small fixes and extensions of DDEve. Show "Views" menu even if specifying xml on the command line.
4389 Add possibility to specify event data in EveDisplay method, rather than having to select it in the gui dialogue.
4390 Selects FCC EventHandler if specified in the config xml (as an "eventHandler"-attribute to the "display" node),
4391 but keeps default behavior if not.
4392
4393
4394 * 2016-08-24 M.Frank
4395 - Adding first somehow useful implementation to use conditions and the consequent loading thereof.
4396 Used by the DDDB implementation/example. DDDB is an alternative way to populate the dd4hep
4397 detector description using LHCb's detector description database.
4398 The reason is, that only a running experiment has a reasonable base to conditions data
4399 to excercise the dd4hep conditions.
4400 If interested, please have a look in the DDDB examples.
4401
4402 - Still TODO:
4403 - A formal way to bootstrap the conditions loading still has to be found.
4404 - Conditions loading from XML files and a small comprehensive example.
4405
4406 # v00-16
4407 * 2016-07-26 Shaojun Lu
4408 - Added new MegatileLayerGridXY segmentation for Scintillator strip Ecal, which is implemented by K.Kotera,
4409 and used by SEcal04Hybrid geometry driver.
4410
4411 - many ( minor fixes ) by F. Gaede, M. Petric, A Sailer, ...
4412
4413 * 2016-06-24 M.Frank
4414 - Implement multiple segmentations.
4415 Though one readout objects (associated to one DetElement) may only have on segmentation,
4416 The MultiSegmentation type allows to have several sub-segmentations, which can be chosen
4417 from.
4418 Please see examples/ClientTests/*/MultiSegmentations
4419
4420 - At the same time allow the readout object to defined multiple collections through
4421 the IDDescriptor.
4422 Please see examples/ClientTests/*/MultiCollections
4423
4424 - The combined example can be found in
4425 Please see examples/ClientTests/*/NestedSegmentations
4426
4427
4428
4429 * 2016-05-03 M.Frank
4430 - Green light is ON. You may use revision 2237 and above.
4431
4432 * 2016-05-03 M.Frank
4433 - **Mega commit. Do not use until green signal arrives with seperate release notice.**
4434 - Package DDDB: Prove of concept, that we can populate the geometry also from other
4435 sources than xml files obeying the lccdd notation.
4436 - DDCore/XML: Implement the possibility to use external entity resolution for Xerces.
4437 There is not equivalent in TinyXML (AFAIK).
4438 - Remove some of the Spirit parsers, since the libraries are getting way too big.
4439 This implicitly assumes, that object properties of 'exotic' types such as
4440 deque<long double> etc. are not really used. If you need properties stay to the obvious:
4441 string, int float, double and vectors, maps and sets thereof!
4442 - DDG4 needed to public the DDG4Python include directory (Now in DDG4/Python).
4443 Reason: try to create ROOT 6 dictionaries, which can be relocated for release purposes.
4444 - ROOT 6 dictionary generation: Create dictionaries with the additional flag:
4445 "-inlineInputHeader" which physically includes the header files used to generate the
4446 dictionaries --> relocatability.
4447
4448 * 2016-03-21 M.Frank
4449 - Add additional vertex argument to EventReader::readParticles, which supposedly should
4450
4451 * 2016-03-03 M.Frank
4452 - Improve/complete job options type palette.
4453 - Allow modify the Geant4IsotropGenerator to shoot particle distributions according
4454 to several distributions:
4455 flat in : uniform, cos(theta), eta/pseudorapidity, ffbar (1+cos^2 theta)
4456 Option: generator.Distribution = 'cos(theta)'
4457 Default is uniform.
4458
4459 # v00-15
4460 * 2016-02-15 A.Sailer
4461 - LCIOStdHepReader.cpp
4462 - fixed memory leak, compiled and valgrinded
4463
4464 * 2016-02-10 F.Gaede
4465 - added utility dd4hep::xml::setDetectorTypeFlag()
4466 to set the TypeFlag from xml element <type_flag type="0x42"/>
4467 - select detectors with
4468 dd4hep::DetectorSelector(description).detectors( ( dd4hep::DetType::TRACKER | dd4hep::DetType::ENDCAP )) ;
4469 - used in UtilityApps/dumpdetector.cc
4470 - added detector_types.xml with int constants defined in DetType.h, include with :
4471 `<include ref="${DD4hepINSTALL}/DDDetectors/compact/detector_types.xml"/>`
4472 - add elements to xml, e.g.
4473 <type_flags type="DetType_TRACKER + DetType_ENDCAP + DetType_PIXEL + DetType_STRIP "/>
4474
4475 * 2016-02-10 M.Frank
4476 - DDCond:
4477 First implementation of conditions access. Required some movements of files
4478 from DDG4 (Properties) and some changes in the core conditions implementation.
4479 The basic infrastructure is now present. Don't know yet however how buggy it is...
4480
4481 * 2016-02-05 F.Gaede
4482 - added DetElement::typeFlag() and DetElement::setTypeFlag(unsigned int types)
4483 - added utility class DetType for setting detector type properties in type flag
4484
4485 * 2016-02-03 N.Nikiforou
4486 - DDDetectors
4487 - Added plugin dd4hep_GenericSurfaceInstallerPlugin, copied from lcgeo
4488 to allow installation of surfaces to any sliced detector
4489 cmake/Doxyfile.in
4490 - Added DDDetectors to the sources directory so Doxygen picks up the
4491 plugin documentation
4492
4493 * 2016-02-02 F.Gaede
4494 - set momentum at endpoint (if lcio version > 2.6 ) for MCParticles in Geant4Output2LCIO.cpp
4495 - fixed printlevel in Geant4Action::print()
4496 - removed random lines drawn in teveDisplay
4497 - dont't print DetectorData by default in dumpdetector
4498
4499 * 2016-02-02 A.Sailer
4500 - DDG4
4501 - Implemented SimulatorFlags (DDFORHEP-17)
4502 * In ParticleHandler: vertexIsNotEndpointOfParent, Stopped, leftDetector
4503 * Steerable distance for vertexIsNotEndpointOfParent
4504 * TCUserParticleHanlder Simulator flags: DecayedInTracker, DecayedInCalorimeter
4505
4506 * 2016-01-21 A.Sailer/M.Frank
4507 - DDG4
4508 - Improved user defined physics constructors
4509 * Allows user defined global rangecut
4510 * Allows extending particle table (e.g. B-Hadrons unknown to geant4)
4511
4512 * 2016-01-18 F.Gaede
4513 - fixed default c'tors in DDRec/DetectorData.h to zero initialize sub-structures (LayerLayout etc)
4514
4515 * 2016-01-13 F.Gaede
4516 - allow the default sensitive action to be a tuple with parameter dictionary in DDG4.py/ddsim.steer e.g.:
4517 SIM.action.tracker = ("Geant4TrackerWeightedAction", {"HitPositionCombination" : 1 , "CollectSingleDeposits" : False } )
4518 - fixed endpoint in MC-truth particles
4519
4520 * 2016-01-11 F.Gaede
4521 - fix hit momentum in Geant4TrackerAction (Geant4SDActions.cpp)
4522
4523 * 2016-01-11 A.Sailer
4524 - DDG4
4525 - Add LargestAcceptableStep to field setup
4526
4527 * 2016-01-07 A.Sailer
4528 - DDG4
4529 - Fix the logic for skipping of events at the start of input files: LCIO, HepMC, stdhep and HepEvt
4530 - Event number in lcio outputfile takes skipped events into account now
4531
4532 * 2016-01-06 F.Gaede
4533 - bug fix in DDSurfaces::ISurface for surface properties (orthogonal/parallel to z)
4534 (affected ILD VXD)
4535
4536 * 2016-01-05 F.Gaede
4537 - added print functions for rec::DetectorData objects
4538 - used in dumpdetector:
4539 dumpdetector compact.xml -d
4540
4541
4542 * 2015-12-09 N.Nikiforou
4543 - UtilityApps/teveDisplay
4544 - Modified teveDisplay to have three separate collections of surface vectors (u,v,n)
4545 instead of one collection. Now the vectors are colored differently.
4546 - Changed signature of getSurfaceVectors() to allow selection of o,u,v,n vectors to
4547 add to the collection, added option for name and color of collection.
4548 - Renamed surface list collections to "HelperSurfaces" and "SensitiveSurfaces".
4549 - Changed signature of getSurfaces() to allow setting of name and color of collection.
4550
4551
4552 * 2015-12-01 M.Frank
4553 - DDG4
4554 - Remove some of the compilation warnings
4555 - Remove energy cut in sensitive detectors
4556 If you though need, use a Geant4Filter to mask the action processing
4557 examples/CLICSiD
4558 - Add a few tests for materialscan and simulation setups using XML or CINT.
4559 examples/ClientTests
4560 - Add a few tests for materialscan and simulation
4561
4562 * 2015-11-24 M.Frank
4563 - DDG4
4564 - Implementation of multi-threading mode.
4565 To use and understand, please consult the DDG4 manual from the doc area.
4566 - "Old" Single threaded mode and functionality is preserved.
4567 - Numerous new classes supporting thread and master specific setup
4568 functionality.
4569 - Support for python configuration (see manual for details)
4570 - Support for global Geant4Actions executing in thread reentrant shared mode.
4571 (see manual for details)
4572 - DDG4 examples: DDG4/examples/CLICSidSimu.py deleted and replaced with:
4573 1) DDG4/examples/SiDSim.py (single threaded, old example)
4574 2) DDG4/examples/SiDSim_MT.py (multi threaded version of SiDSim.py)
4575
4576 -DDCore:
4577 - Support user formats for the default printout statements for nicer printouts.
4578 - Removal of compiler warnings
4579
4580 * 2015-11-23 F.Gaede
4581 - added glbal method dd4hep::versionString()
4582
4583 * 2015-11-13 S.Lu
4584 - Added a new AHcal Barrel segementation: TiledLayerGridXY, to be used e.g.
4585 for the ILD AHcal Barrel Sensitive layer segmentation design.
4586
4587 * 2015-10-30 F.Gaede
4588 - fixed LCIOFileReader to use sequential reading mode
4589 as using direct access always required runNum==0 and sequential evt nums ...
4590
4591
4592 * 2015-10-15 F.Gaede
4593 - DDSurfaces::ISurface/Surface
4594 - added implemation of conical surfaces
4595 - ICone, VolConeImpl, VolCone, ConeSurface
4596
4597 * 2015-10-13 M.Frank
4598 - DDG4
4599 - Remove explicit constructors for modular physics lists.
4600 Use the native Geant4 provided G4PhysListFactory instead.
4601 The physics list is instantiated as before with the "Extends" property.
4602 - Implement angular ranges in the Geant4IsotropeGenerator for phi [0,2pi] and theta[0,pi]
4603 - New sensitive detector Geant4TrackerWeightedAction
4604 Attempt to properly process combined deposits in tracking detectors.
4605 - Debug component Geant4SurfaceTest similar to the standalone program
4606 test_surfaces, but to be appended as a DDG4 event action for event by event
4607 tests of hits.
4608
4609 * 2015-10-09 M.Frank
4610 - DDG4
4611 - Extend the functionality of the DDG4 plugins
4612 Geant4InteractionVertexBoost and Geant4InteractionVertexSmear.
4613 If the Mask property is set to -1, all interactions present
4614 at call time are smeared/boosted according to the parameters.
4615 Note, that the position of the plugins within the generation
4616 sequence is important.
4617 - Add a new generator Geant4GeneratorWrapper to allow the use
4618 of native G4 generator classes such as the G4ParticleGun or
4619 the G4GeneralParticleSource. Still to be tested.
4620 - Extend the Geant4Random functionality: May now be instantiated
4621 like any other Geant4Action. Users may set the seed or the
4622 luxury level.
4623 All calls to HepRandom (CLHEP) or gRandom (ROOT) will re-use
4624 this instance. See DDG4/examples/CLICRandom.py for illustration.
4625 - Updated DDG4 manual.
4626
4627 * 2015-09-30 F.Gaede
4628 - updated createGearForILD.cpp to use new parameters in LayeredCalorimeterData
4629 ( innerThickness, innerRadLength, etc)
4630
4631
4632 * 2015-09-15 F.Gaede
4633 - refactoring of Surface classes:
4634 - made VolSurface a reference counting handle to
4635 a polymorphic pointer of type VolSurfaceBase
4636 - this should facilitate the creation
4637 of dedicated surface classes for special cases
4638 such as inside the beampipe or the face of the calorimeter
4639
4640 * 2015-08-27 F.Gaede
4641 - added macros DD4HEP_VERSION_GE(MAJV,MINV) and DD4HEP_VERSION_GT(MAJV,MINV)
4642 to Detector.h
4643
4644 - increased version number to v00-15
4645
4646
4647 * 2015-08-20 M.Frank
4648 - DDCore: Modularize/abstract plugin manager
4649 - VolumeManager: Fix bug propagating sensitive detectors
4650 Showed up in the examples of nested detectors
4651
4652
4653 * 2015-08-12 N.Nikiforou
4654 - DDCore/XML: Added new helper functions to Layering engine:
4655 - double absorberThicknessInLayer(xml::Element e) :
4656 returns total absorber thickness in given layer
4657 - void sensitivePositionsInLayer(xml::Element e, std::vector<double>& sens_pos) :
4658 provides positions of sensitive slices within a layer with respect to the
4659 center of the layer
4660
4661
4662 * 2015-07-25 M.Frank
4663 - DDSegmentation: Remove several 'shadow' warnings.
4664
4665 - New build system for the dd4hep core, which greatly simplyfies the cmake files
4666 for the various sub-packages.
4667 Tested with Andre's build script doc/CompileAllOptionPermutations.sh.
4668 (GEAR usage not tested though)
4669
4670 # v00-14
4671 * F.Gaede
4672 - fixed writing of generator status for lcio::MCParticle
4673 in Geant4Output2LCIO.cpp
4674
4675 * A.Sailer
4676 - Add missing scope to /DD4hep/Factories.h, to not force everyone to use using namespace
4677
4678 * F.Gaede: 2015-07-15
4679 - changed type in SurfaceList and SurfaceMap from Surface to ISurface
4680 - added methods length_along_u/v() to ISurface
4681 - moved setting of CMAKE_CXX_FLAGS (if DD4HEP_USE_CXX11) from DD4hep.cmake to CMakeLists.txt
4682
4683 * 2015-07-11 M.Frank
4684 - added starter docs dd4hepStartersGuide.pdf
4685
4686 *** **Important** ***
4687 **Before updating, backup your existing and working checkout. Though I was running
4688 the basic tests, there may be unchecked corners of the software.**
4689
4690 Notes:
4691 - Backwards compatibility mode for the usage of ROOT 5 and ROOT 6 alternatively.
4692 - For ROOT 6 the Gaudi PluginService is used and added to the distribution.
4693 - dd4hep is distributed with a licence. See $DD4hepINSTALL/LICENSE for details.
4694 - In the doc area the $DD4hepINSTALL/doc/CREDITS file everybode should add her/his
4695 name, if contributed significantly.
4696 - Unfortunately this meant to add/change the headers of all files and give a
4697 pointer to the licence file. If I accidentally changed the author name, please
4698 chagne it back.
4699 - The plugin factory declaration statements were changed to accomodate both
4700 ROOT 5 and ROOT 6 and to keep the number of 'ifdef' statements at a minimum.
4701 - TODO: Properly change the cmake scripts to accomodate for ROOT 6 and the
4702 automatic switch when building dd4hep.
4703 - For reference reasons: this commits is revision 1812 + 1813 (DDDetectors)
4704
4705 # v00-13
4706 * 2015-07-03 F.Gaede
4707 - updated doxygen for detector rec::DetectorData structs and usage in convertToGear
4708
4709 * 2015/07/02 Nikiforos Nikiforou
4710 - Added isRadiator() helper function in DDCore/XML/XMLDetector.h/cpp
4711 Mirroring functionality of isSensitive() and used in geometry drivers
4712 e.g. to calculate total absorber thickness
4713
4714 - Extended LayeredCalorimeterStruct in DDRec/DetectorData.h to include
4715 additional parameters required by Pandora:
4716 - inner_phi0 (e.g. alignment for inner symmetry)
4717 - outer_phi0 (e.g aligment for outer symmetry)
4718 - NOTE: phi0 still remains but is deprecated
4719 - gap0 (e.g stave gap along r-phi)
4720 - gap1 (e.g middle stave gap along z)
4721 - gap2 (reserved for future use)
4722
4723 * 2015-06-29 A.Sailer
4724 - always store lcio collections, even if they are empty in Geant4Output2LCIO (DDG4/ddsim)
4725
4726
4727 * 2015-06-29 F.Gaede
4728 - changed env scripts to prepend to library pathes (dd4hep and dependant packages)
4729 - using a newer lcgeo version than the one provided in ilcsoft can simply
4730 be done w/ source ./bin/thislcgeo.sh
4731
4732 # v00-12
4733 * 2015/06/17 Markus Frank
4734 - Add possibility to block access to constants by name from Detector.
4735 Functionality enabled by a constant named "Detector_InhibitConstants" with value "1", "True", "Yes".
4736 Test: geoDisplay -compact file:../DD4hep.trunk/examples/ClientTests/compact/InhibitConstants.xml
4737
4738 - Add DetectorHelper handle object to easily access the sensitive detector object of a detector
4739 using either the subdetector name or the detector element (or one of its children).
4740 See: dd4hep/DetectorHelper.h
4741 Test: ```
4742 geoPluginRun -input file:../DD4hep.trunk/examples/CLICSiD/compact/compact.xml \
4743 -plugin CLICSiD_DetectorHelperTest \
4744 optional: -<detector-name (default:SiVertexEndcap)> [Note the '-'!!!]
4745 ```
4746
4747 - Check when adding new sub-detector detector elements if a given one already exists.
4748 if yes: exception.
4749 Test: `geoDisplay -compact file:../DD4hep.trunk/examples/ClientTests/compact/DuplicateSysID.xml`
4750
4751
4752 * A. Sailer
4753 - DDSegmentation: Added function cellDimension which returns the dimension of any given cell
4754
4755 * S.Lu:
4756 - Added a switch for BirksLaw to Geant4StepHandler.
4757 For backward compatable, by default, do not apply BirksLaw, and apply BirksLaw with call 'doApplyBirksLaw()'.
4758 added optional Geant4ScintillatorCalorimeterAction
4759 - Added one 'Geant4ScintillatorCalorimeterAction' into DDG4 plugins Geant4SDActions for scintillator to take
4760 Geant4 BirksLaw effect as sensitive detector active layer.
4761
4762 * F.Gaede
4763 - added SurfaceManager class that holds maps of surfaces for
4764 "world","tracker","calorimeter","passive" and all individual subdetectors
4765 - to be used in reconstruction code where a lookup from cellID
4766 to corresponding surface is needed
4767 - needs plugin "InstallSurfaceManager" to be in the compact file
4768 - access via:
4769 SurfaceManager surfMan = *description.extension< SurfaceManager >() ;
4770 const SurfaceMap& surfMap = *surfMan.map( "world" ) ;
4771 - renamed old SurfaceManager to SurfaceHelper
4772
4773 - added method: Volume createPlacedEnvelope()
4774 - to be used in all LC detector drivers to create a placed envelope volume
4775 rest of the detector is then instantiate in this volume
4776
4777 - added BooleanShape plugin for creating generic boolean
4778 shapes (subtraction, union or intersection )
4779 - to be used for envelope definition in xml
4780
4781 - added new build_type: BUILD_ENVELOPE
4782 - can be used to visulize envelopes only (geoDisplay, teveDisplay,...)
4783
4784 * 2015/05/22 Nikiforos Nikiforou
4785 - Fixed bug in DDG4/lcio/LCIOConversions.cpp, which stored only the PDG of the primary particle
4786 in multiple particle contributions in SimCalorimeterHits instead of both the primary and secondary PDGs.
4787
4788
4789 * 2015/05/13 Markus Frank
4790 - Fix bug in DDG4, which forced DDG4 to exit if a property from the Geant4 prompt could
4791 not be set. No an error message is printed and the prompt is returned to the user.
4792 (Bug submitted by A. Sailer)
4793
4794 * 2015/05/11 Andre Sailer
4795 - CMake updates:
4796 - Split libraries into components: use find_package(dd4hep COMPONENTS <component> [...] )
4797 to find the components you need.
4798 - At the moment there are these components are sensible to link against: DDRec, DDG4, DDEve, DDSegmentation
4799 - To link against the librarie use either dd4hep_COMPONENT_LIBRARIES or dd4hep_<COMPONENT>_LIBRARY,
4800 where <COMPONENT> needs to be replaced by the UPPER case name of the component
4801
4802 * 2015/05/09 Markus Frank
4803 - Allow to access detectors by type from description.
4804 - The sensitive type of a detector is set in the 'detector constructor'.
4805 - Not sensitive detector structures have the name 'passive'
4806 - Compounds (ie. nested detectors) are of type 'compound'
4807 - Dump detector types using plugin:
4808
4809 geoPluginRun -plugin DD4hepDetectorTypes -input <compact-file>
4810
4811 * 2015/03/12 Markus Frank
4812 - Add support for ellipsoids in gdml/description and geant4 conversion.
4813 - Allow to include files with environment variables from compact notation.
4814
4815 * 2015/03/09 Markus Frank
4816 - Finalize move to geant4 version 10, started by A.Sailer
4817 - Add non-isotrop particle generator in DDG4 (request P.Kostka)
4818 - Isolate ROOT plugin manager as start to move to ROOT 6
4819
4820 # v00-11
4821 * F.Gaede
4822 - DDDetectors
4823 - new Package containing generic dd4hep detector palette (MF)
4824 - added 'dimension' argument to dd4hep_SiTrackerBarrelSurfacePlugin (FG)
4825 to handle pixel and strip detectors
4826
4827 - DDRec (Frank Gaede)
4828 - added simple data structs in DDRec/DetectorData.h
4829 providing interface needed for GEAR:
4830 - added plugin for creating GEAR file for ILD
4831 - Extended IDDecoder to give access to layer, system and barrel/endcap information. (CG)
4832 IDDecoder is now independent of Readout object, instead it finds the correct
4833 readout based on the cellID / position
4834 - fixed surface implementations: removed inline virtual functions
4835 - added methods:
4836 VolSurface::length_along_u()
4837 VolSurface::length_along_v()
4838 Surface::volumeOrigin()
4839 CylinderSurface::center()
4840 ICylinder::center()
4841
4842 - DDG4 (Markus Frank)
4843 - Fix Geant4 Primary input conversion
4844 - Fix LCCollectionVec for LCIO output
4845 - fixed units for MCParticle output (FG)
4846 - fixed generator status: set to 0 if (FG)
4847 particle created in simulation
4848 - Add cylindrical tracking volume to particle handler
4849 - More modular user particle handling with example Geant4TCUserParticleHandler
4850 - fixed charge (don't devide by three) (FG)
4851 - fixed logic for writing out MCParticles: (FG)
4852 - don't write particles created in calo
4853 unless scattered back into tracker)
4854 - don't write particles created in tracker
4855 if below MinimalKineticEnergy ( Geant4ParticleHandler)
4856 - Added HepMC ascii reader
4857 - added simply main program 'dd_sim' to run (FG)
4858 a DDG4 based simulation with xml configuration files
4859 - change TrackerCombine SD to use energy weighted positions
4860 - added utility to dump generated files: scripts/dumpDDG4.C
4861 - fixed dictionaries for map iteration on MacOS in python (FG)
4862 -> added operators ==/!= for map<>::iterator
4863 - added component to allow the setup of the magnetic field tracking in Geant4 from python
4864
4865 - DDCore (Markus Frank)
4866 - fixed Detector el-mag. field converter
4867 - add generic surface installers
4868 - allow for string constants in description define section
4869 - added arguments for surface plugins
4870
4871 - DDSegmentation (FG) :
4872 - fixed compiler warning w/ left shift count >= width of type
4873 - fixed wrong type string "CartesianGridXY"
4874 - added CartesianGridYZ
4875 - Implementation of a Polar R-phi segmentation (MP)
4876
4877 - examples
4878 - add new test MiniTel(escope) to ClientTests (MF)
4879 - moved old obsolete examples to attic
4880 - add new example: LHeD_tracker (MF)
4881 - add new example: SimpleDetector (FG)
4882 (ILD like VXD and SIT )
4883
4884 - CMake:
4885 - made DD4HEP_USE_BOOST an option flag (FG)
4886 - added dd4hepG4 library dependence to DDEve (MF)
4887 - disable dot -> have simpler (and faster) inheritance graphs w/ Doxygen
4888 - fixed missing search field in Doxygen doc (FG)
4889 - include boost automatically if build with Geant4
4890
4891
4892 - Documentation
4893 - improved Doxygen documentation (MF)
4894 - added manual for DDRec (FG)
4895 - new version of the dd4hep manual (MF)
4896 - fixed code formating with emacs style:
4897 ./doc/format_code.sh
4898
4899 - removed subpackages ( moved to https://svnsrv.desy.de/public/aidasoft/DD4hep/attic ):
4900 DDExamples_obs/
4901 DDSense/
4902 examples/ILDExDet/
4903 examples/ILDExSimu/
4904 examples/firstExample/
4905 examples/noviceN04/
4906
4907 - enabled testing in nightly builds with cmake, ctest and cdash (FG)
4908
4909 - plus many small bug fixes (use svn log for details )
4910
4911 * 2014/09/26 Markus Frank
4912 - Quite some effort to improve the doxygen documentation.
4913 The current revision is can be found at:
4914 https://cern.ch/frankm/DD4hep/html/index.html
4915
4916 * 2014/02/06 Markus Frank
4917 - DDDetectors: Add example surface plugin with arguments.
4918 - example code: DDDetectors/src/SurfaceExamplePlugin.cpp
4919 - compact:
4920 ```
4921 <plugin name="DD4hep_SurfaceExamplePlugin">
4922 <argument value="SiTrackerBarrel"/>
4923 <argument value="aa=1*mm"/>
4924 <argument value="bb=2*cm"/>
4925 <argument value="cc=3*m"/>
4926 </plugin>
4927 ```
4928
4929 - output:
4930
4931 ```cpp
4932 SurfaceExamplePlugin: argument[0] = SiTrackerBarrel value = -1
4933 SurfaceExamplePlugin: argument[1] = aa=1*mm value = 0.1
4934 SurfaceExamplePlugin: argument[2] = bb=2*cm value = 2
4935 SurfaceExamplePlugin: argument[3] = cc=3*m value = 300
4936 ```
4937
4938 * 2014/08/15 Markus Frank
4939 - DDG4: Impreoved LCIO handling for DDG4
4940 - DDG4: Input handling:
4941 - LCIO input file reading with multiple *independent* inputs
4942 to support overlay, multiple interactions, etc.
4943 - Primary verex smearing independent for each input
4944 - Primary vertex boosts independent for each input
4945 - DDG4: Output handling
4946 - MC Particle handling
4947 - Improved MC truth handling for produced Hits.
4948 Still needs revisiting.
4949
4950 # v00-10
4951 * Frank Gaede
4952 - fixed version numbers and release notes for release v00-08 and v00-09
4953 ( both have the wrong version number for the libraries 0.7 !)
4954 - added ./doc/prepare_a_release.howto
4955 - added new method to BitField64: setValue(unsigned lowWord, unsigned highWord )
4956 - added some simple unit tests for BitField64
4957
4958
4959 * 2014/08/15 Markus Frank
4960 - DDG4 Add possibility for user hook to the particle handler +
4961 Data member to store additionbal particle data for the
4962 output stage.
4963 - Allow to display MC particles in DDEve
4964 Add small help file describing how to start DDEve.
4965 doc/DDEveManual.pdf
4966 - Update CLICSiD Example.
4967
4968 # v00-09
4969 * 2014/08/07 Markus Frank
4970 - DDG4: First version to support MC truth in DDG4 including
4971 particle filtering to optimize the size of the MC record.
4972 - DDG4 fix SimpleCalorimter sensitive action and properly support
4973 hit aggregations.
4974 - DDEve smaller modifications to support DDG4IO if dd4hep was
4975 built with the Geant4 option ON.
4976
4977 # v00-08
4978 - Some minor fixes:
4979 - made compatible with older geant4 versions (9.5)
4980 - add Bitflag to store CellID1 in SimCalorimeterHit collections
4981 - fix position conversion from Geant4 to ROOT
4982 - add cellID determination to SensitiveAction
4983 - ...
4984
4985
4986 * Andre Sailer, 2014-07-17
4987 - Unify cmake option variables, small cmake corrections
4988 - Change options `_WITH_` to `_USE_`
4989 - Print Warning that variables with `_WITH_` are deprecated
4990 - Change Defintions to `_USE_` as well
4991 - Add REQUIRED to find_package geant4 and xercesc if they are turned on
4992 - Updated documentation
4993 - Updated ILDExDet example
4994
4995 * Christian.Grefe, 2014-07-15
4996 - Made DDSegmentation optionally a stand-alone package
4997 create DDSgementationConfig.cmake when build as part of dd4hep
4998
4999 * Markus Frank, 2014-07-02
5000 - add LCIO conversions from DDSim - sensitive detectors
5001 can now simply instantiate LCIO Sim hits
5002
5003 * 2014/06/30 Markus Frank
5004 - DDG4: Support user (context-) extensions for Geant4.
5005 User contexts are availible for events and runs. The contexts
5006 are accessible from the Geant4Context meber of each Geant4Action,
5007 the base class for all processing entities.
5008 - Adding a context:
5009 ```
5010 context()->event().addExtension(pointer_to_object, typeid(TYPE), 0);
5011 or
5012 context()->event().addExtension<TYPE>(pointer_to_object);
5013 In the first case the object is NOT DELETED at the end of the event.
5014 In the second case the object is deleted.
5015 ```
5016 - Accessing the context:
5017 ```
5018 TYPE* ctx = context()->event().extension<TYPE>(false);
5019 The boolean argument indicates if an exception should be thrown
5020 if the extension is not present ie. here no exception.
5021 ```
5022 - DDCore: adjust a few print statements.
5023
5024 * 2014/06/27 Markus Frank
5025 - Separate XML loading from Detector implementation.
5026 - New package: DDEve: a bit more sophisticated TEve specialization
5027 - To start use examples/CLICSiD/compact/DDEve.xml
5028 - DDEve can interface currently to ROOT files created by DDG4.
5029 - An example data file is provided as well in:
5030 - examples/CLICSiD/compact/CLICSiD_events.root
5031 - Documentation is lacking a bit....
5032 - start the display with: `$> root.exe ${DD4hepINSTALL}/examples/DDEve/DDEve.C`
5033
5034
5035 * 2014/06/19 Frank Gaede
5036 - replaced TGeoUnits.h by DD4hepUnits.h
5037 - renamed namespace tgeo to dd4hep -> users need to replace tgeo::mm by dd4hep::mm
5038
5039
5040 * 2014/06/12 Frank Gaede
5041 - changed default unit for angles to be radians (tgeo::rad = 1.)
5042 - enforce usage of units from TGeoUnits.h in xml expression evaluators
5043 - convert to degrees for angles in TGeoShapes constructors
5044 - NB: there is one inconsistency left here: angles returned
5045 from TGeoShapes are already in degrees, this is the one
5046 case where a quantity returned from dd4hep/TGeo does not have the default
5047 units - thus one should not write
5048
5049 ` double phi = coneSeg.Phi1() / tgeo::rad ;`
5050
5051 but rather
5052
5053 `double phi = coneSeg.Phi1() * tgeo::deg ;`
5054
5055
5056 * 2014/06/03 Markus Frank
5057 - Provision for ROOT persistency for dd4hep detector descriptions:
5058 Create Cint dictionary for dd4hepCore by default when building the library.
5059 For the time being the area of DDSegmentation is left out, since these
5060 objects require changes due to the handling of references and template
5061 specializations. Besides these, dd4hep detector descriptions can be
5062 saved and read-back directly to/from ROOT files - which may improve
5063 a lot the startup time of processes.
5064
5065 - The DDG4 dictionary is created by default when building the library.
5066 When importing DDG4 from python only the dd4hepCore dd4hepG4 libraries
5067 must be present. It should no longer be necessary to compile the
5068 necessary AClick on the fly.
5069
5070 - Investigations on wirframe drawing:
5071 Wireframes are a property of the scene graph. You can toggle to wireframe
5072 using the 'w' key on the keyboard. Other representations are
5073 'r': Solid view
5074 't': Solid + wireframe view.
5075 This information is accessible from the help menu of the ROOT OGL widget.
5076
5077 # v00-07
5078 * 2014/05/28 Markus Frank
5079
5080 - Several fixes and improvements in DDG4
5081 - Cache output levels in Geant4Kernel object
5082 - Add shell handler to measure energy escape e.g. in calorimeters
5083 - Fix bug in Polycone shapes concerning angles.
5084 **IMPORTANT: If you forked the repository examples/CLICSiD
5085 your PolyconeSupport does not work anymore, because the angles
5086 were given in degrees. They should be given in radians!**
5087
5088 * 2014/05/21 Markus Frank
5089 - Fix material creation from XML
5090 JIRA bug: dd4hep - DDFORHEP-4
5091 https://sft.its.cern.ch/jira/browse/DDFORHEP-4
5092 using <composite> in material xml files results in wrong material properties
5093
5094 - Fix JIRA bug: dd4hep - DDFORHEP-3
5095 https://sft.its.cern.ch/jira/browse/DDFORHEP-3
5096 Recursive assemblies result in error in TGeo geometry
5097 Bug results in errors when closing the geometry like:
5098 "Error in <TGeoVoxelFinder::SortAll>: Wrong bounding box for volume SIT_assembly"
5099
5100 - Provision to store survey constants to the DetElement as an extension
5101 for Alignment calculations (priv. comm. C.Parkes)
5102
5103 - Fix bug in expression evaluation of angles.
5104 All detector constructors receive angles in "rad". No correction
5105 from degree to rad should be necessary.
5106
5107 * 2014/05/21 Frank Gaede
5108 - add MaterialManager class providing
5109 - access to materials at any point or on straight
5110 line between two points
5111 - creation of material with averaged properties (A,Z,rho,x0,Lambda)
5112
5113 - added utility print_materials to print material properties along
5114 a straight line between two points including integrated radiation and
5115 interaction lengths (useful for debugging geometries and materials)
5116
5117 - use avaeraged material for Surfaces where the thickness extends
5118 beyond the volume boundaries
5119 - introduced new simple data class MaterialData for this
5120
5121
5122 - known issues
5123 - materials don't work for detectors with assemblies in assemblies
5124 as the TGeo navigation dose not seem to work:
5125 Error in <TGeoVoxelFinder::SortAll>: Wrong bounding box for volume SIT_assembly
5126 -> ROOT bug or feature ?
5127
5128 - using <composite/> in compound materials results in incorrect material properties
5129 see ILDExDet/compact/materials Polysterene as example
5130
5131
5132 * 2014/05/06 Frank Gaede
5133 - DDSurfaces/DDRec:
5134 - added ICylinder and CylinderSurface to provide
5135 access to cylinder radius for the tracking
5136 - teveDisplay:
5137 - draw sensitive surfaces in red and helper surfaces in gray
5138 - protect against missing lcio input file
5139 - reduced printout from VolumeManager (changed INFO to DEBUG)
5140
5141 * 2014/04/05-2014/04/29 Frank Gaede
5142 - Implementation of Surface classes for track reconstruction
5143 - abstract interfaces in DDSurface: ISurface and IMaterial
5144 - implementation in DDRec: Surface, SurfaceManager, DetectorSurfaces
5145 - basic functionality exists:
5146 - meassurement surface vectors u,v, normal and origin
5147 - check if point is inside the bounds of the corresponding volume
5148 - currently the material is taken to be the one from the volume
5149 -> to do: average material if surface thicknesses extend beyond the
5150 volume for comound materials
5151 - added drawing of surfaces and (Sim)TrackerHits and (Sim)CalorimeterHits to teveDisplay
5152 ( link lcio file to teve_infile.slcio )
5153 - added some surfaces to ILDExDet: VXD, SIT, TPC
5154 - added test_surfaces to ILDExSimu
5155 (fails currently for some hits that are not created on the surface ...)
5156 - added some assemblies to ILDExDet to better structure the geometry hierarchy
5157
5158 * 2014/04/28 Markus Frank
5159 - First attempt to understand fully the handling of recursive assemblies
5160 from the 2014/04/25 was apparently with limited success. Now they should
5161 work!
5162
5163 * 2014/04/25 Markus Frank
5164 - Moved boost::spirit parsers to DDCore, since these parsers are also used
5165 in other packages such as DDCond and DDAlign - whenever strings have to be
5166 converted to objects.
5167 Consequently, the boost spirit code fragments were removed from DDG4.
5168 - Improved and more correct type checking when assigning handles
5169 - Explicit implementation of the object extension mechanism to be used
5170 through inheritance or aggregation rather than having seperate and nearly
5171 identical implementations for various objects.
5172 - Improved defintition of basic objects describing Conditions and Alignment.
5173 - Improved implementation of DDAlign, the alignment support.
5174 Not to be used currently - experimental package.
5175 - Initial implementation of DDCond the package supporting the handling of
5176 conditions.
5177 Not to be used currently - experimental package.
5178 - Geant4Converter: I convinced myself, that the bug in handling assemblies
5179 of assemblies is resolved. To be tested though.
5180
5181 * 2014/02/07 Frank Gaede
5182 - added DDGear, support for interfacing to gear for backward compatibility
5183 - lives currently in ILDExDet ( should become (optional) part of core dd4hep)
5184 - users need to GearParameter objects as extensions to the DetElement
5185 -> see ILDExTPC_geo.cpp, ILDExVXD_geo.cpp, ILDExTPCSIT_geo.cpp as examples
5186 - program convertToGear creates gear xml file from compact file
5187 ( only if GearParameter objects are avialble as extensions)
5188 - added test_convert_ild_gear
5189 - fixed geometry in ILDExVXD_geo.cpp, ILDExTPCSIT_geo.cpp
5190 wrt. to position of support ans sensitive ladders
5191
5192 # v00-06
5193 * 2014/02/04 Frank Gaede
5194 - fixed environment scripts thisdd4hep.sh and this${PackageName}.sh
5195 to also export library pathes for external libraries (CLHEP, LCIO, gear)
5196
5197 - added some simple tests to ILDExDet, ILDExSimu and noviceN04
5198 - provide cmake script run_test_package.sh ( configured as run_test_${PackageName} )
5199 to call test binaries after initializing the environment
5200 (needed for automated/nightly tests)
5201
5202 - updated Readme.txt wrt build procedure and running the tests
5203
5204
5205 * 2014/01/17 Markus Frank
5206 - Prepare implementation of Alignment using Release and Grap features of TGeoVolume
5207 and TGeoNode. In principle this was done in a backwards compatible way, but
5208 I cannot really check 100% the #ifdef's.
5209 - Fix handling of XML collections using XercesC.
5210 (Bug reported by P.Kostka).
5211 - Fix several compiler warnings issued by Coverity.
5212
5213 * 2013/12/17 Markus Frank
5214 - Whole load of fixes to keep coverity quiet....
5215 - Fix bug in DDG4 field interface component
5216 - Allow the usage of units, positions and lorentzvectors and in DDG4 properties.
5217 Example using a position property (ROOT::Math::XYZVector):
5218 Idle> /ddg4/Gun/position (1*mm,1*cm,0.01*m)
5219 Geant4UIMessenger: +++ Gun> Setting property value position = (1*mm,1*cm,0.01*m)
5220 native:( 1 , 10 , 10 ).
5221
5222 - Support for std::vector<T>/std::list<T>/std::set<T> properties.
5223
5224 - Support for include directives of the format
5225 ```
5226 <include ref="file-name"/>
5227 for the top level <lccdd> tags
5228 Parent tag Included root tag Data content
5229 -- <lccdd> <define> See below.
5230 <detectors>
5231 <detector>
5232 <display>
5233 <lccdd> Nested includes (with DTD validation for Xerces-C)
5234 -- <define> <define> Set of constants
5235 -- <detectors> <detector> Single XML subdetector description
5236 -- <detectors> <detectors> Multiple XML subdetector descriptions
5237 -- <display> <display> Set ov visualization attributes
5238
5239 DTD validation is only performed using Xerces-C for root tags <lccdd>.
5240 ```
5241 - Note:
5242 `<lccdd>` include directives are executed BEFORE any other directive!
5243 Other include directives are executed BEFORE the corresponding named directive!
5244
5245 * 2013/11/14 Markus Frank
5246 - Reformat files in DDCode and DDG4 to remove the <TAB>s from the source files.
5247 Hopefully the content is now more readable.
5248 - DDCore: Remove empty and named constructors for shapes. Empty constructors
5249 were simply a dangerous hook to memory leaks, named constructors are
5250 deprecated since along time.
5251 - DDG4: add support for messengers to access and modify properties from
5252 the Geant4 prompt. For the test hit classes and the simple sensitive
5253 detector a ROOT I/O plugin was provided.
5254 - DDG4: Split into several libraries:
5255 - libDDG4.so pure link library without any plugins
5256 - libDDG4Legacy.so 'Old' plugins. The old stuff at some point
5257 will have to disappear.
5258 - libDDG4Plugins.so New framework plugins
5259 - libDDG4LCIO.so LCIO output plugin for new framework
5260
5261 * 2013/11/03 Markus Frank
5262 - doc: Add CHEP2013 paper about dd4hep as a start of the documentation
5263 section. More to come hopefully.
5264 - DDCore: several small improvements:
5265 - Segmentations are no longer Ref_t's.
5266 - Base internal implementing object directly on the segmentations
5267 classes from Christian.
5268 - Rearrangement of some code from Handle.h to Primitives.h
5269 - Allow to attach extensions to Detector
5270 - DDG4: Fix Frank's simulation problem, which he caused himself
5271 introducing his famous factories....
5272 - DDG4: First attempt to fix simulation problem with mignetic field.
5273 Ready for testing.
5274 - DDG4: First commit of a independent simulation aimed for LHCb and LHeC
5275 + other newcomers. Documentation needs to be written.
5276 Features:
5277 - Modular setup of all Geant4 action routines as plugins, including the
5278 Run-, event-, tracking-, stacking-, stepping- and generator-actions
5279 as well as the physics lists with particle and physics constructors.
5280 - Setup is possible in XML or with C++ either as an AClick in root or
5281 standalone. Python based starter to come.
5282 - Missing is a modular description of the G4 UI and VIS manager(s).
5283 - Documentation is to come. Before documentation is not present
5284 the usage is discouraged.
5285 Note:
5286 - This version of DDG4 uses boost::spirit. It will compile without
5287 the BOOST include files and the old functionality is preserved,
5288 but it will not work.
5289 To use BOOST add to the cmake statement the following tags:
5290 cmake <regular tags> \
5291 -DDD4HEP_USE_BOOST=ON \
5292 -DBOOST_INCLUDE_DIR=${BOOST_INCLUDE_DIR} ....
5293 Where BOOST_INCLUDE_DIR should point to the boost header directory.
5294 BOOST libraries are not used.
5295
5296 * 2013/10/18 Markus Frank
5297 - Throw exception if the expression evaluator sees a problem.
5298 The message printed before was often not seen.
5299 - Improve printout on exceptions and plugin abortion
5300 - Remove the typedef RotationZYX -> Rotation and
5301 import the type RotationZYX from ROOT::Math.
5302
5303 - Add more explicit error messages in case a plugin is not found.
5304 - Add file TGeoUnits.h, which allows to use the "usual SystemOfUnits"
5305 from CLHEP using TGeo with the namespace tgeo::xxx
5306 ```
5307 Example: tgeo::mm -> 0.1 (Geant3: cm, sec, GeV, degree)
5308 ::mm -> 1.0 (Geant4: mm, nsec, MeV, radian)
5309 I hope I got all translations right.
5310 Geant4 Geant3
5311 ----------------------------------------------------------------
5312 millimeter mm=1,cm=10 centimeter mm=0.1,cm=1
5313 nanosecond s=1e9 second ns=1e-9,s=1
5314 Mega electron Volt GeV=1e3 GeV GeV=1
5315 radian rad=1 degree rad=180/pi
5316
5317 Unclear to me was if in Geant3 steradian is also 2*2*pi or 2*2*180 degree.
5318 ```
5319
5320
5321 * F. Gaede
5322 - changes to build system:
5323 (see ReadMe.txt for details)
5324
5325 - moved examples to ./example directory
5326 - they are not built as part of dd4hep anymore
5327
5328 - install thisdd4hep.sh in ./bin
5329 (modified to have the correct pathes)
5330
5331 - added -DINSTALL_DOC=on/off option
5332 to build doxygen documentation (in ./doc/html/index.html)
5333
5334 - create DD4hepConfig.cmake for easy building against dd4hep
5335 ( see examples CMakeLists.txt)
5336
5337 - fixed doxygen API documentation (C.Rosemann)
5338 (greatly improved with many graphs)
5339
5340 # v00-04
5341 * F. Gaede
5342 - placement options are now compatible with geant4
5343 - fixed Geant4SensitiveDetector::getVolumeID()
5344 - modified ILDEx model to not use assemblies (for now !?)
5345 - removed obsolete geant4 example ILDEx
5346 - Fix population procedure of volume manager
5347 - Fix uniqueness of volume identifiers.
5348 - Remove call with lookups by placed volume to the volume manager
5349 - improved ILDEx toy example:
5350 - fixed creation of cellIDS for simhits
5351 - creates SimTrackerHits for VXD, SIT and TPC
5352 - creates SimCalorimeterHits for AHcal barrele and endcap
5353 - works now wigth ILDExSimu _and_ SLIC if no assemblies are used
5354 - assemblies work with the dd4hep Geant4Converter and VolumeManager
5355 - added a prototype example for a ROOT independent
5356 plugin mechanism for SensitiveDetectors
5357 - added example implemetation for Calice test beam
5358 calorimeters: CaliceTbeam (Shaojun Lu, DESY)
5359
5360
5361 * 2013/21/06 Markus Frank
5362 - Since the placement model for combined translations and rotations
5363 caused more confusion than good, it was agreed to move to a more
5364 Geant4 like placement model using Vectors, Rotations and Transformations
5365 from ROOT::Math. To place a physical volume only one of these
5366 is allowed as an argument: either a rotation or a translation
5367 for simple placements. Combinations may be constructed with Transform3D
5368 objects allowing more complicated placements.
5369 The same mechanism was applied for the operations to construct
5370 boolean solids.
5371 - The CLICSid Examples were updated according to the changes necessary
5372 from 1)
5373 - The Tesla drivers from the ILDExDet example were removed. They are
5374 not compliant to 1).
5375 - The G4 package allows now to translate TGeo geometries to Geant4.
5376 Visual inspection has shown an agreement between the two geometries.
5377 - The TGeo to Detector/GDML conversion is still buggy. Hence, simulations
5378 using slic as an engine do not yet work. This is being looked at.
5379
5380 IMPORTANT NOTICE:
5381 The changes described in above may affect existing detector constructors.
5382 Unless all problems are solved you should be careful to move to the svn
5383 head. In any case save your checkout or use the tag v00-03.
5384
5385
5386
5387 # v00-03
5388 - broken geometry (for some rotations/translations)
5389 - 'backup release' before placement options
5390 will be reduced
5391
5392 # v00-02
5393 * 2013/02/06 Markus Frank
5394 - Simplyfy inheritance for common objects from TNamed.
5395 Use direct inheritance of Object from TNamed rather than hidden
5396 using the Value<a,b> construct.
5397 - Added physical volume manager to simplyfy the detector element
5398 and sensitive detector lookup from a given physical volume.
5399 This implies: If the volume manager is instantiated, the readout specifiers
5400 MUST be correct. This is in most xml files NOT the case.
5401 The "system" field holding the sibdetector-id is MANDATORY!
5402 Otherwise you will receive messages like this:
5403
5404 Exception:SITCollection: This ID descriptor has no field with the name:CellID0
5405 while programming VolumeManager. Are your volIDs correct?
5406
5407 - To check the volume identification, add argument -volmgr to geoConverter,
5408 geoDisplay, etc.
5409 - To trace possible memory leaks:
5410 export DD4HEP_TRACE=Yes
5411 then run you converter etc. At the end a table is displayed with a "leakage"
5412 column, showing how many objects were not deleted.
5413 ```
5414 +----------------------------------------------------------------+
5415 | I n s t a n c e c o u n t e r s b y T Y P E I N F O |
5416 +----------+---------+-------------------------------------------+
5417 | Total | Leaking | Type identifier |
5418 +----------+---------+-------------------------------------------+
5419 | 13| 0|dd4hep::DetElement::Object
5420 | 3| 0|dd4hep::SensitiveDetector::Object
5421 | 3| 0|dd4hep::Readout::Object
5422 | 1| 0|dd4hep::OverlayedField::Object
5423 | 1| 0|dd4hep::CartesianField::Object
5424 ....
5425 Ideally the second column only has "0"s. Instances of 1 may be OK (singletons).
5426 ```
5427 - Prenotice:
5428 As soon as ROOT v 6.00 is out, we will have to use it!
5429 Andrei kindly agreed to implement a few changes to TGeo, which will make
5430 life much easier and the implementation cleaner and less cumbersome.
5431
5432
5433 # v00-01
5434 * 2013/20/03 Markus Frank
5435 - Finished the compact->description converter
5436 Extract description information
5437 ```
5438 $ > geoConverter -compact2description -input file:<compact-input-xml-file> -output <detector>.description
5439 $ > <SimDist>/scripts/slic.sh -o output.slcio -g SiD.description -m <geant4-macro>.mac -r 100
5440 ```
5441
5442 - Finished the compact->gdml converter
5443 Full GDML cycle can be tested (deplace <detector> with some meaningful identifier):
5444 - Extract gdml information
5445 `$ > geoConverter -compact2gdml -input file:<compact-input-xml-file> -output <detector>.gdml`
5446 - Extract visualisation hints to csv file
5447 `$ > geoConverter -compact2vis -input file:<compact-input-xml-file> -output <detector>.vis.csv -ascii`
5448 - Load GDML into ROOT:
5449 `$ > root.exe ../doc/gdml_root.C+\(\"<detector>\"\)`
5450 The macro expects *at least* the <detector>.gdml file. If no visualisation
5451 information is found, the resulting graphics however is not very nice!
5452
5453
5454 * 2013/22/02 Markus Frank
5455 - Today a decision was taken to remove all _X() and _A() macros
5456 accessing static unicode strings. A common macro will be used to
5457 address both XML elements and XML attributes using the macro _U(...).
5458 The original usage only created confusion.
5459 All _X and _A macros were replaced by _U.
5460
5461 - Improve the executables running the plugin mechanism in UtitlityApps.
5462 They now complain if the plugin was not found.
5463
5464
5465 * 2013/21/02 Markus Frank
5466 - Require strict checks for the existence of xml attributes.
5467 e.g. default=false for Element::attr<bool>() is no longer an option.
5468 if the attribute is not present in the element, an exception
5469 is thrown.
5470
5471 - Slightly change the factory method for creating detector elements.
5472 Use a more generic pattern do support also more generic XML
5473 processing.
5474
5475 * 2013/20/02 Markus Frank
5476 - Install rootmap mechanism for the usage of plugins.
5477 It is no longer necessary to have separate programs
5478 for the various detector models (ILD/SiD).
5479 One generic display program servest them all.
5480 ==> Creation of package DDExamples/UtilityApps
5481 example: $> bin/displayGeo -compact <compact-xml-file>
5482
5483 - This move has another consequence:
5484 All libraries are build into a common install area:
5485 the <build directory>/lib.
5486 All executable binaries are build into a common install area:
5487 the <build directory>/bin.
5488
5489 - The LD_LIBRARY_PATH and PATH variables as defined in
5490 'thisdd4hep.(c)sh' do include these directories
5491
5492 * 2013/20/02 Markus Frank
5493 - dd4hep release notes. Better start them late than never.
5494 If you perform significant changes to the dd4hep core,
5495 plase leave a small notice here.