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