Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# v01-10
* 2019-01-31 Markus Frank ([PR#480](https://github.com/aidasoft/dd4hep/pull/480))
- Fix bug in `geoDisplay` to allow passing the volume display depth as an argument
- Added a static creator to the Detector class to create non-traced instances: `std::unique_ptr<Detector> Detector::make_unique(const std::string& name);` It is the users responsibility to release the allocated resources and to avoid clashed with existing `TGeoManager` instances.
- Allow direct access to the solid instance of the DetElements's placement.
* 2019-01-15 Markus Frank ([PR#478](https://github.com/aidasoft/dd4hep/pull/478))
- Fix bug in `geoDisplay` see #477
* 2019-01-10 Markus Frank ([PR#476](https://github.com/aidasoft/dd4hep/pull/476))
- Fix bug in ConditionsUserPool whan scanning DetElement conditions
- Improve conditions handling: Allow to bind sub-class entities of ConditionObject to thew opaque data block.
* 2018-12-14 Markus Frank ([PR#475](https://github.com/aidasoft/dd4hep/pull/475))
- Add named shape constructors (see #469)
* 2018-12-13 Markus Frank ([PR#474](https://github.com/aidasoft/dd4hep/pull/474))
- Fix possible access violation
* 2018-12-13 MarkusFrankATcernch ([PR#473](https://github.com/aidasoft/dd4hep/pull/473))
- Improve handling of condition dependencies ( main work item)
- Improve logic flow in the DDCond/ConditionDependencyHandler
- Improve the functionality of the conditions resolver accessible from the update context. Allow for the creation (and registration) of multiple conditions in one single callback.
- Add a shape check for eight-point solids.
* 2018-12-07 Frank Gaede ([PR#470](https://github.com/aidasoft/dd4hep/pull/470))
- add `#include <memory>` to `run_plugin.h` (needed for `std::unique_ptr` and gcc 4.9)
* 2018-12-06 Markus Frank ([PR#468](https://github.com/aidasoft/dd4hep/pull/468))
- To fix issue #466 we had to go back to the original implementation which was actually correct (see https://github.com/AIDASoft/DD4hep/commit/36d4b01e0688f690ac2e506a62e00627bb6b798c#diff-7219d47bc4ab7516e0ca6c4f35f2602f).
- Added an example to show how to perform scans of the volume hierarchy with user defined callback functors. See for details `examples/ClientTests/src/PlacedVolumeScannerTest.cpp`.
- Added conversion between `TGeoArb8` and `G4GenericTrap`, fixes #465
* 2018-12-05 Markus Frank ([PR#467](https://github.com/aidasoft/dd4hep/pull/467))
- Harmonize argument names in `Shapes.h` with their actual functionality. For many shapes in `DD4hep/Shapes.h` the argument names were misleading: very often deltaPhi was mentioned, whereas the code actually used instead of (phi, deltaphi) the input arguments to the ROOT constructors (startPhi,endPhi) or (phi1, phi2). Wherever ROOT uses (startPhi,endPhi) the argument names were changed accordingly. Please note a bug was found in the legacy constructor:
```cpp
/// Legacy: Constructor to create a new identifiable tube object with attribute initialization
Tube(const std::string& nam, double rmin, double rmax, double dz, double startPhi, double endPhi)
```
Here opposite to all other constructors delta_phi was used as such - in contradiction to other constructors of the same class. This was rectified.
* 2018-11-30 Andre Sailer ([PR#462](https://github.com/aidasoft/dd4hep/pull/462))
- Introduce compile flag to minimize conditions footprint
* 2018-11-27 Markus Frank ([PR#461](https://github.com/aidasoft/dd4hep/pull/461))
- Add shape constructor for regular trapezoids (TGeoTrd1) ( see #460). Trd2 cannot be divided the same way as Trd1 shapes. Hence the addition became necessary. Due to the imprecise name of Trapezoid the names Trd1 and Trd2 (aka old Trapezoid) are favored. The usage of Trapezoid is supported for backwards compatibility using a typedef.
* 2018-11-22 Markus Frank ([PR#459](https://github.com/aidasoft/dd4hep/pull/459))
- Fix bug in DDCodex geometry, add debugging to VolumeBuilder
* 2018-11-14 Markus Frank ([PR#458](https://github.com/aidasoft/dd4hep/pull/458))
- Improve ROOT persistency: flag user extensions as persistent only while saving/loading
- Need to rename DDEve library: nameclash with ddeve executable on Apple: cmake fails to build ddeve as exe and DDEve as library. libDDEve.so is now called libDDEvePlugins.so.
* 2018-11-13 Markus Frank ([PR#457](https://github.com/aidasoft/dd4hep/pull/457))
## Provide support for Volume divisions.
Since DD4hep requires Volumes (aka `TGeoVolume`) and PlacedVolumes (aka `TGeoNode`) to be enhanced with the user extension mechanism, therefore shape divisions **must** be done using the division mechanism of the DD4hep shape or the volume wrapper. Otherwise the enhancements are not added and you will get an exception when DD4hep is closing the geometry or whenever you do something with the volume, which is served by the user extension. The same argument holds when a division is made from a `Volume`. Unfortunately there is no reasonable way to intercept this call to the `TGeo` objects - except to the sub-class each of them, which is not really acceptable either.
Hence: **If you use DD4hep: Never call the raw TGeo routines.**
For any further documentation please see the following ROOT documentation on [TGeo](http://root.cern.ch/root/html/TGeoVolume.html)
For an example see `examples/ClientTests/src/VolumeDivisionTest.cpp`
and `examples/ClientTests/compact/VolumeDivisionTest.xml`
To execute:
```
geoDisplay -input file:<path>/examples/ClientTests/compact/VolumeDivisionTest.xml
```
* 2018-11-13 Hadrien Grasland ([PR#438](https://github.com/aidasoft/dd4hep/pull/438))
- Make FindPackage(DD4hep) work even if thisdd4hep.sh was not sourced
* 2018-11-09 Frank Gaede ([PR#456](https://github.com/aidasoft/dd4hep/pull/456))
- add `#include <memory>` in `VolumeAssembly_geo.cpp` gcc 4.9 compatibility
* 2018-11-07 Markus Frank ([PR#455](https://github.com/aidasoft/dd4hep/pull/455))
- Improve VolumeBuilder pattern matcher
- Allow XML based volume creation based on factories.
* 2018-11-02 Markus Frank ([PR#454](https://github.com/aidasoft/dd4hep/pull/454))
- Improve generic Volume assembly and XML volume builder
* 2018-11-01 Markus Frank ([PR#452](https://github.com/aidasoft/dd4hep/pull/452))
- Fixed the DetElement cloning mechanism it to properly replicate DetElement trees.
- Tested with one LHCb upgrade detector.
- Added numeric epsilon to the default math dictionary of the expression evaluator:
```cpp
int:epsilon --> std::numeric_limits<int>::epsilon()
long:epsilon --> std::numeric_limits<long>::epsilon()
float:epsilon --> std::numeric_limits<float>::epsilon()
double:epsilon --> std::numeric_limits<double>::epsilon()
```
* 2018-10-30 Markus Frank ([PR#451](https://github.com/aidasoft/dd4hep/pull/451))
- Add copyright notices
- Make ddeve a program not only a ROOT script
* 2018-10-30 Markus Frank ([PR#450](https://github.com/aidasoft/dd4hep/pull/450))
- The DDUpgrade example was removed from the main repository. Since it is only of interest for LHCb, it moved to a separate repository at CERN/gitlab.
- Issue #449 should be fixed now.
- The XML volume builder utility was improved.
* 2018-10-18 Markus Frank ([PR#447](https://github.com/aidasoft/dd4hep/pull/447))
- Fix plugin manager cmake file by removing explicit dependency on c++ standard.
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# v01-09
* 2018-10-15 Markus Frank ([PR#442](https://github.com/aidasoft/DD4hep/pull/442))
- DDCMS: Update to support namespaces
- DDUpgrade test example for the LHCb upgrade
- Fix nested detectors (in fact worked only for first level parents)
- Add VolumeBuilder XML utility to work on XML-tree patterns
* 2018-09-12 Hadrien Grasland ([PR#437](https://github.com/aidasoft/DD4hep/pull/437))
- Remove if string equals ON/OFF in cmake IF statements and check default CMake truth values
* 2018-08-20 Oleksandr Viazlo ([PR#434](https://github.com/aidasoft/DD4hep/pull/434))
- DD4hep_Mask_o1_v01_geo
- allow rotation around x-axis (instead of y)
- phi1 and phi2 cone angles configurable from the xml-file
* 2018-08-10 Markus Frank ([PR#433](https://github.com/aidasoft/DD4hep/pull/433))
- Fix DDCMS example to use true namespace names rather than using "_"
This should resolve issue https://github.com/AIDASoft/DD4hep/issues/421
* 2018-08-09 Markus Frank ([PR#432](https://github.com/aidasoft/DD4hep/pull/432))
- Make the expression evaluator understand variable names with namespaces
- Variable names containing a `:` or `::` are now accepted by the expression evaluator. This is first step towars resolving #421
- It has now to be seen what has to be done further. The DCMS example was not yet updated to use this feature.
- Add new example in `examples/ClientTests` to test this functionality.
* 2018-08-09 Andre Sailer ([PR#429](https://github.com/aidasoft/DD4hep/pull/429))
- DDG4: add possibility to simulate all events in a file by passing NumberOfEvents < 0. Fixes #237
* The de-facto limit is ~2 billion, which should be fine for input files.
* 2018-08-08 Markus Frank ([PR#430](https://github.com/aidasoft/DD4hep/pull/430))
- Fix HEPMC reader for unknown generator status codes
- Update DDCodex example, feature imports from plain ROOT file
- Allow debugging Geant4VolumeManager
* 2018-08-07 Mircho Rodozov ([PR#428](https://github.com/aidasoft/DD4hep/pull/428))
- Adapt to root interfaces changes for `TGeoMatrix::Inverse` (https://github.com/root-project/root/pull/2365), fixes #426
* 2018-08-06 Andre Sailer ([PR#424](https://github.com/aidasoft/DD4hep/pull/424))
- CMake: Ensure proper tls flag (global-dynamic) for Geant4 build, added option DD4HEP_IGNORE_GEANT4_TLS to override the check. Closes #419
* 2018-07-31 Andre Sailer ([PR#420](https://github.com/aidasoft/DD4hep/pull/420))
- DDG4: Import the ddsim python program from https://github.com/iLCSoft/lcgeo
For example:
- `ddsim --help`
- `ddsim --dumpSteeringFile > mySteer.py`
- `ddsim --steeringFile=mySteer.py --compactFile myDetector.xml`
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
# v01-08
* 2018-07-02 Markus Frank ([PR#418](https://github.com/aidasoft/dd4hep/pull/418))
- Add DDCodexB in standalone mode with simulation script and basic skeleton for DDEve
* 2018-06-28 Markus Frank ([PR#417](https://github.com/aidasoft/dd4hep/pull/417))
- Steer debug printouts in CondDB2DDDB and DDDB2Objects by parsing xml files.
* 2018-06-26 Markus Frank ([PR#416](https://github.com/aidasoft/dd4hep/pull/416))
- Separate the hit class and add dictionary. No base class - entirely independent.
- Allow to save the hit class to ROOT (but without MC truth)
See MyTrackerHit.h for details.
* 2018-06-26 Markus Frank ([PR#415](https://github.com/aidasoft/dd4hep/pull/415))
- Add small example how to specialize a new sensitive action and attach it to a detector in DDG4.
* 2018-06-26 Frank Gaede ([PR#414](https://github.com/aidasoft/dd4hep/pull/414))
- bug fix in Geant4EventReaderGuineaPig
- fix ignoring input lines with 'nan'
* 2018-06-26 Shaojun Lu ([PR#412](https://github.com/aidasoft/dd4hep/pull/412))
- Added one more if statement: If the track went into new Volume,
- then extracted the hit in previous Volume,
- and start a new hit in this current Volume,
- in this current process, also allow the same following treatments for the new hit.
* 2018-06-21 Markus Frank ([PR#409](https://github.com/aidasoft/dd4hep/pull/409))
- Support out-of-source builds of DD4hep examples.
Comes with an expense: A new environment DD4hepExamplesINSTALL.
has to be defined to support internal file accesses and loads.
The builds were also checked with read-only installation directories.
Solves issue https://github.com/AIDASoft/DD4hep/issues/382
- Smallish improvement to the ConditionsManager.
* 2018-06-21 Andre Sailer ([PR#408](https://github.com/aidasoft/dd4hep/pull/408))
- Cmake: fix for configuring with Geant4 with internal CLHEP, fixes #406
- Cmake: fix for configuring with BUILD_TESTING=OFF, fixes #407
* 2018-06-07 Markus Frank ([PR#404](https://github.com/aidasoft/dd4hep/pull/404))
- Fix basic shape tests for PseudoTrap
* 2018-06-07 Markus Frank ([PR#403](https://github.com/aidasoft/dd4hep/pull/403))
- patch for truncated tubes shapes.
* 2018-06-04 Markus Frank ([PR#402](https://github.com/aidasoft/dd4hep/pull/402))
- Fix truncated tube shape
* 2018-06-04 Markus Frank ([PR#400](https://github.com/aidasoft/dd4hep/pull/400))
- Allow for world volumes other than boxes. See `examples/ClientTests/compact/WorldVolume.xml` how to set it up. The effective thing is that the top level volume must be set to the TGeoManager before `Detector::init()`. If a top level volume is set, it is implicitly assumed to be the world volume. Otherwise the already existing mechanism (box volume) is activated.
- Add new basic shape tests.
* 2018-06-01 Markus Frank ([PR#399](https://github.com/aidasoft/dd4hep/pull/399))
- As discussed in issue #398 The use of TGeoUnits is inconvenient. The dd4hep units are now exposed in the python modules.
- Basic shapes are now tested in the regular ctest executions. The mesh vertices of the shapes were
saved to a reference file and are compared to in subsequent runs. The reference files reside in
`examples/ClienTests/ref`. See `examples/ClientTests/compact/Check_Shape_*.xml` for details.
- The ROOT UI and some dump plugins were enhanced to expose more information.
* 2018-05-30 Markus Frank ([PR#397](https://github.com/aidasoft/dd4hep/pull/397))
- Enable to start DDG4 using a saved detector description in a ROOT file.
- Added corresponding test: `Persist_CLICSiD_Geant4_LONGTEST`
- Fix shape constructors for Trap and PseudoTrap
- The python module `DD4hep.py` is gone as discussed in the developers meeting use `dd4hep.py` instead.
- on masOS : your "git pull" possibly deletes both files. you may have to checkout `dd4hep.py` again, due to fact that the filesystem is case-insensitive.
- Add example for LHCb CODEX-b.
* 2018-05-29 Markus Frank ([PR#394](https://github.com/aidasoft/dd4hep/pull/394))
- Consistently handle cmake command line options in case no Geant4 or no documentation should be built.
* 2018-05-28 Markus Frank ([PR#393](https://github.com/aidasoft/dd4hep/pull/393))
- Improvements to `geoPluginRun`.
`$> geoPluginRun -ui -interactive`
results in DD4hep enabled ROOT prompt.
- DD4hepUI: improvements to interact with DD4hep instance from ROOT prompt
- DDDB improve configuration for printing and debugging
- DDDB: allow to block certain XML branches
* 2018-05-22 Frank Gaede ([PR#389](https://github.com/aidasoft/dd4hep/pull/389))
- fix bug in input handling, for details see discussion #387
- exclude leptons with zero lifetime from Geant4
* 2018-05-22 Markus Frank ([PR#388](https://github.com/aidasoft/dd4hep/pull/388))
- Update doxygen information for some undocumented classes.
- Add licence header to files where not present.
* 2018-05-22 Marko Petric ([PR#380](https://github.com/aidasoft/dd4hep/pull/380))
- Update LICENSE to LGPLv3
- The name of the file containing the LICENSE has ben changed from LICENCE->LICENSE as all source files reference `For the licensing terms see $DD4hepINSTALL/LICENSE.`
* 2018-05-16 Markus Frank ([PR#386](https://github.com/aidasoft/dd4hep/pull/386))
- Fix bug in variable order of `ExtrudedPolygon` (x<->y)
* 2018-05-15 Markus Frank ([PR#384](https://github.com/aidasoft/dd4hep/pull/384))
# Implementation of non-cylindrical tracking region (resolves #371)
- It is possible to define volumes in a parallel world such as e.g. a tracking region. In principle any volume hierarchy may be attached to the parallel world. None of these volumes participate in the tracking as long as the "connected" attribute is set to false. The hierarchy of parallel world volumes can be accessed from the main detector object using
```cpp
dd4hep::Volume parallel = dd4hep::Description::parallelWorldVolume()
```
This parallel world volume is created when the geometry is opened together (and with the same dimensions) as the world volume itself.
- IF the NAME of the volumes is "tracking_volume" within the compact notation it is declared as the Detector's trackingVolume entity and is accessible as well:
```cpp
dd4hep::Volume trackers = dd4hep::Description::trackingVolume()
```
- Although the concept is available in the DD4hep core, it's configuration from XML is only implemented for the compact notation. For details see the example `examples/ClientTests/compact/TrackingRegion.xml`.
- If the volume should be connected to the world: connected="true". This is useful for debugging because the volume can be visualized else if the volume is part of the parallelworld: connected="false". The volume is always connected to the top level. The anchor detector element defines the base transformation to place the volume within the (parallel) world.
```xml
<parallelworld_volume name="tracking_volume" anchor="/world" material="Air" connected="true" vis="VisibleBlue">
<shape type="BooleanShape" operation="Subtraction">
<shape type="BooleanShape" operation="Subtraction">
<shape type="BooleanShape" operation="Subtraction" >
<shape type="Tube" rmin="0*cm" rmax="100*cm" dz="100*cm"/>
<shape type="Cone" rmin2="0*cm" rmax2="60*cm" rmin1="0*cm" rmax1="30*cm" z="40*cm"/>
<position x="0*cm" y="0*cm" z="65*cm"/>
</shape>
<shape type="Cone" rmin1="0*cm" rmax1="60*cm" rmin2="0*cm" rmax2="30*cm" z="40*cm"/>
<position x="0" y="0" z="-65*cm"/>
</shape>
<shape type="Cone" rmin2="0*cm" rmax2="55*cm" rmin1="0*cm" rmax1="55*cm" z="30*cm"/>
<position x="0" y="0" z="0*cm"/>
</shape>
<position x="0*cm" y="50*cm" z="0*cm"/>
<rotation x="pi/2.0" y="0" z="0"/>
</parallelworld_volume>
```
# Enhancement of assemblies, regions and production cuts (resolves #373)
On request from FCC particle specific production cuts may be specified in the compact notation. These production cuts (Geant4 currently supports these for e+, e-, gammas and protons) are specified as "cut" entities in the limitset. (See the example `examples/ClientTests/compact/Assemblies.xml`).
- The hierarchy of cuts being applied is:
- If present particle specific production cuts for a region are applied.
- else the "cut" attribute of the compact region specification is used
- else the global Geant4 cut is automaticallly applied by Geant4.
```xml
<limits>
<limitset name="VXD_RegionLimitSet">
<!--
These are particle specific limits applied to the region
ending in Geant4 in a G4UserLimits instance
-->
<limit name="step_length_max" particles="*" value="5.0" unit="mm" />
<limit name="track_length_max" particles="*" value="5.0" unit="mm" />
<limit name="time_max" particles="*" value="5.0" unit="ns" />
<limit name="ekin_min" particles="*" value="0.01" unit="MeV" />
<limit name="range_min" particles="*" value="5.0" unit="mm" />
<!--
These are particle specific production cuts applied to the region
ending in Geant4 in a G4ProductionCuts instance
-->
<cut particles="e+" value="2.0" unit="mm" />
<cut particles="e-" value="2.0" unit="mm" />
<cut particles="gamma" value="5.0" unit="mm" />
</limitset>
</limits>
```
# SensitiveDetector types not changed by Geant4SensDetActionSequence (resolves #378)
The sensitive detector type defined in the detector constructors is no longer changed intransparently in the back of the users. This may have side-effects for creative detector constructor writers, who invent sd types out of the sky. These obviously will not work with Geant4, because in Geant4 a mapping of these types must be applied to supported sensitive detectors. Now the mapping of a sd type (e.g. "tracker") is strict in the python setup. The default factory to create any sensitive detector instance in Geant4 (ie. an object of type G4VSensitiveDetector, G4VSDFilter, Geant4ActionSD) is a property of the Geant4Kernel instance and defaults to:
```cpp
declareProperty("DefaultSensitiveType", m_dfltSensitiveDetectorType = "Geant4SensDet");
```
- Since the actual behavior is defined in the sequencer instanciated therein this default should be sufficient for 99.99 % of all cases. Otherwise the factory named "Geant4SensDet" may be overloaded.
* 2018-05-15 David Blyth ([PR#379](https://github.com/aidasoft/dd4hep/pull/379))
- Geant4FieldTrackingConstruction now properly overrides `constructField()`
* 2018-05-03 David Blyth ([PR#377](https://github.com/aidasoft/dd4hep/pull/377))
- Geant4Handle unhandled reference to shared actions. This affected the destruction of shared actions.
* 2018-05-03 Markus Frank ([PR#375](https://github.com/aidasoft/dd4hep/pull/375))
- Development of a small user example on how to do analysis in `DDG4`.
- See `examples/DDG4/src/HitTupleAction.cpp`
- Simply collect the energy deposits of hits and write an N-tuple with them.
- The example shows how to access the hit collections and to extract the data in order to write other more sophisticated analyses.
- This `DDG4` action is used in one of the Minitel examples: `examples/ClientTests/srcipts/MiniTelEnergyDeposits.py`
* 2018-05-02 Markus Frank ([PR#374](https://github.com/aidasoft/dd4hep/pull/374))
- recommission the multithreaded SiD example
- `DDG4/examples/SiDSim_MT.py` vs. `DDG4/examples/SiDSim.py`
* 2018-04-19 Markus Frank ([PR#370](https://github.com/aidasoft/dd4hep/pull/370))
* Allow to disable building the documentation cmake option BUILD_DOCS. By default ON and backwards compatible. If set to OFF no doc shall be built. (not everybody has biber installed)
* Move from `DD4hep.py` to `dd4hep.py`, since `DD4hep.py` has to disappear due to conflicts on MAC.
* 2018-04-13 Markus Frank ([PR#367](https://github.com/aidasoft/dd4hep/pull/367))
- resolves #361
The Detector object has a state `Detector::state()` with three values:
```cpp
/// The detector description states
enum State {
/// The detector description object is freshly created. No geometry nothing.
NOT_READY = 1<<0,
/// The geometry is being created and loaded. (parsing ongoing)
LOADING = 1<<1,
/// The geometry is loaded.
READY = 1<<2
};
```
It starts with `NOT_READY`, moves to `LOADING` once the geometry is opened and goes to `READY` once the geometry is closed. As suggested in the developers meeting: the initial field object is invalid and gets created only once the geometry is opened. As a corollary, the field may not be accessed before. Geometry parsers must take this behavior into account!
- Address some compiler warnings.
- Mainly add override/final statements in header files.
- Implement a module to invoke python as a DD4hep plugin:
invoked e.g. by: `geoPluginRun -plugin DD4hep_Python -dd4hep -prompt`
```
geoPluginRun -plugin DD4hep_Python -help
Usage: -plugin <name> -arg [-arg]
name: factory name DD4hep_Python
-import <string> import a python module, making its classes available.
-macro <string> load a python script as if it were a macro.
-exec <string> execute a python statement (e.g. import ROOT.
-eval <string> evaluate a python expression (e.g. 1+1)
-prompt enter an interactive python session (exit with ^D)
-dd4hep Equivalent to -exec "import dd4hep"
-help Show this online help message.
Note: entries can be given multiple times and are executed in exactly the
order specified at the command line!
```
Implementation wise the plugin is a simple CLI wrapper for TPython.
* 2018-04-12 Marko Petric ([PR#362](https://github.com/aidasoft/dd4hep/pull/362))
- Update DD4hepManual
* 2018-04-12 Markus Frank ([PR#360](https://github.com/aidasoft/dd4hep/pull/360))
- Examples: only build some examples depending on the availability of dependencies.
- DDCore: Add interface to allow URI blocking during file parsing. Default is as now.
- DDCMS: Add conversion of new shapes.
* 2018-04-10 Markus Frank ([PR#359](https://github.com/aidasoft/dd4hep/pull/359))
- Bunch of fixes. Mostly in `examples/DDDB`
- Only build `examples/DDDB` if XercesC is present.
- Only build `examples/DDCMS` if CLHEP is present
* 2018-04-09 Markus Frank ([PR#357](https://github.com/aidasoft/dd4hep/pull/357))
- Add configuration options for loading DDDB
* 2018-04-05 Markus Frank ([PR#351](https://github.com/aidasoft/dd4hep/pull/351))
- To avoid unwanted disappearing conditions sub pools, a conditions slice may be instructed to collect shared references to the used pools in the slice.
- For python:
- Move DDG4/SystemOfUnits.py to DDG4/g4units.py
Keep SystemOfUnits.py with deprecation warning
- move DD4hep.py to dd4hep.py.
import dd4hep also imports all TGeoUnit units into its namespace.
Hence: import dd4hep; print dd4hep.m gives: "100.0"
- DD4hep.py is kept for backwards compatibility issuing a deprecation warning
- DDG4.py: imports g4units as G4Units: DDG4.G4Units.m etc.
- DDG4.py: imports TGeoUnit as TGeo4Units: DDG4.TGeoUnits.m etc.
- Some problem with replacing DD4hepUnits.h with TGeoSystemOfUnits.h
Surface test complains. To be investigated. Keep old DD4hepUnits for the time being.
* 2018-04-05 Markus Frank ([PR#350](https://github.com/aidasoft/dd4hep/pull/350))
- Merge `DDCMS` and `DDCMSTests` to `DDCMS`
- Move `DDDB` to the `examples/`
- Add tests `DDDB_DeVelo` and `DDDB_DeVelo_Gaudi` missing from #349
* 2018-04-05 Markus Frank ([PR#349](https://github.com/aidasoft/dd4hep/pull/349))
- Resolves #339
- DDDB conditions had a bug when loading from file base. The IOV was not handled properly. Now the resulting IOV is configurable using properties.
- Added Gaudi like example use case for options handling with the DeVelo detector elements.
- Configuration improvement in DDG4 action Output2ROOT:
- New property "DisableParticles" allows to suppress the MCParticle record from being written to the ROOT file.
- dto. the option "DisabledCollections" allows to NOT write any hit collection.
- Unit tests for these options are not (yet) present.
- DDCond: allow for user defined conditions cleanup policies. Base class `dd4hep::cond::ConditionsCleanup`. Callbacks are issued to the class for IOV type pools and IOV dependent pools asking if the pools should be processed.
* 2018-04-05 Marko Petric ([PR#344](https://github.com/aidasoft/dd4hep/pull/344))
- Move `DDCMS` into examples as it is not core functionality
# v01-07-02
* 2018-06-26 Frank Gaede [PR#413](https://github.com/AIDASoft/DD4hep/pull/413)
- bug fix in Geant4EventReaderGuineaPig
- fix ignoring input lines with 'nan'
- did not work on SL6 w/ gcc
# v01-07-01
* 2018-05-17 Frank Gaede
- fix bug in input handling, for details see discussion [#387](https://github.com/AIDASoft/DD4hep/issues/387)
- exclude leptons with zero lifetime from Geant4
# v01-07
* 2018-03-26 Javier Cervantes Villanueva ([PR#343](https://github.com/AIDASoft/DD4hep/pull/343))
- Fix bug in calculating eta, introduced in #138
- use `magFromXYZ` instead of `radiusFromXYZ` to calculate pseudorapidity
* 2018-03-19 Frank Gaede ([PR#338](https://github.com/AIDASoft/DD4hep/pull/338))
- Include fixes from Chris Burr for the alignments calculator.
- Add a small study for the LHCb upgrade defining reasonable detector element conditions for the Velo pixel detector using the DDCond derived condition mechanism.
- To be done: somehow get an example for this mechanism, which works outside Gaudi.
* 2018-03-23 Markus Frank ([PR#340](https://github.com/AIDASoft/DD4hep/pull/340))
- Improvement for DDDB - case study to implement real-world detector elements.
* 2018-03-28 Frank Gaede ([PR#345](https://github.com/AIDASoft/DD4hep/pull/345))
- Remove `DDSurfaces` folder as it was merged in `DDRec`
* 2018-03-28 Frank Gaede ([PR#341](https://github.com/AIDASoft/DD4hep/pull/341))
- Remove top level `DDSegmentation` folder as it is not needed anymore
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
# v01-06
* 2018-01-31 Ete Remi ([PR#297](https://github.com/aidasoft/dd4hep/pull/297))
- Geant4Output2LCIO
- Switch run header writing order at beginning of run instead of end of run
* 2018-03-15 Marko Petric ([PR#335](https://github.com/aidasoft/dd4hep/pull/335))
- Deduce CLHEP location from `CLHEP_INCLUDE_DIR` ( Fixes #314 )
- Add `gSystem.Load('libglapi')` to `testDDPython.py` which failed due to TLS issues on local machine
- Add Geant4 10.4 to test suite
* 2018-03-14 Markus Frank ([PR#336](https://github.com/aidasoft/dd4hep/pull/336))
- New shape definitions for CMS
Generic Polyhedra, ExtrudedPolygon, CutTube, TruncatedTube, PseudoTrap.
- DDDB: allow to configure the match for the entity resolver.
* 2018-03-13 Daniel Jeans ([PR#333](https://github.com/aidasoft/dd4hep/pull/333))
- changed utility name from graphicalMaterialScan -> graphicalScan
- add visualisation of electric and magnetic fields (switched by parameter)
- change order of x/y/z range parameters for ease of use
- added parameter for name of output root file
* 2018-03-12 Markus Frank ([PR#334](https://github.com/aidasoft/dd4hep/pull/334))
- `step_length_max` not propagated to Geant4 for `G4UserLimit` instances.
- All limits can now be set separately for each particle type (or for all as a catchall situation if the particle type is '*'.
- Fixes #327
* 2017-11-29 Markus Frank ([PR#271](https://github.com/aidasoft/dd4hep/pull/271))
- Add `LHeD` example (contribution from Peter Kostka)
- Fix to support `python3` in `DDG4`
- Fix issue in Volumes.h for backwards compatibility with gcc version < 5
- Fix type definition of `XmlChar` to also support Xerces-C 3.2.0
- Fix `AClick` initialization files in `DDG4` (remove dependency on `libDDSegmentation`)
* 2017-11-29 Marko Petric ([PR#270](https://github.com/aidasoft/dd4hep/pull/270))
- Fields: Remove pessimizing move and shadow warnings
* 2018-02-06 Ete Remi ([PR#301](https://github.com/aidasoft/dd4hep/pull/301))
- Geant4Output2LCIO plugin
- Added run number and event number offset properties. Enable steering of run and event counters from outside
- Added 3 event parameters properties for int, float and string event parameters
* 2018-02-05 Markus Frank ([PR#304](https://github.com/aidasoft/dd4hep/pull/304))
- Restructure the files a bit to simplify the use of the `XML` and `JSON` parsers and the spirit utilities in other projects.
* 2018-02-28 Frank Gaede ([PR#323](https://github.com/aidasoft/dd4hep/pull/323))
- make Geant4InputHandling.cpp compatible w/ gcc49
- avoid stringstream move operation
- fixes #320
* 2018-01-24 Markus Frank ([PR#292](https://github.com/aidasoft/dd4hep/pull/292))
- Fix bug in Alignment test:
- A long standing bug was fixed for the test `t_AlignDet_Telescope_align_new`.
- It was assumed that the `DetElements` were ordered in memory, which is **not** true (probably due to memory randomization).
- Moved to path dependent ordering. Test now OK.
- Closes #282
- Removed a Bunch of `rootcling` warnings
- Apparently `rootcling` now expects a class with the name of the dictionary header file.
- To satify this some dummy anonymous classes were added.
- Closes #290
* 2018-01-26 Marko Petric ([PR#296](https://github.com/aidasoft/dd4hep/pull/296))
- Check dynamic cast if it was successful
* 2018-01-22 Markus Frank ([PR#289](https://github.com/aidasoft/dd4hep/pull/289))
- Add possibility to parse `XML` from string
- Please see #288 for details.
- The main interface was not changed. Rather a view to the Detector class supports this functionality.
- The existing view `dd4hep::DetectorLoad` was enhanced to allow the required functionality:
```cpp
Detector detector = ....;
/// So here is the actual test: We parse the raw XML string
DetectorLoad loader(detector);
loader.processXMLString(buffer,0);
```
- An example was added (`ClientTests/src/XML_InMemory.cpp`, which illustrates the usage).
- Improve DDCond manual
- Improve that the DDCond manual reflects the source code.
- The possible plugins provided are not all described. This shall be future work.
- Enable the GDML reader plugin
- Closes #275
* 2018-03-01 Markus Frank ([PR#325](https://github.com/aidasoft/dd4hep/pull/325))
- Add dictionaries to `DDRec`.
- Consequently add the python interface to access the exported classes.
* 2018-03-01 Ete Remi ([PR#321](https://github.com/aidasoft/dd4hep/pull/321))
- Geant4InputAction and Geant4EventReader :
- Register input action pointer to event reader, enabling the event reader to access the Geant4 context
- Added new class LCIOEventParameters to handle LCIO input event parameters
- LCIOFileReader :
- Add extension with LCIO input event parameters to Geant4event
- Geant4Output2LCIO :
- Get LCIO event parameters from event extension (if any) and write them to LCIO output event
* 2018-03-01 David Blyth ([PR#317](https://github.com/aidasoft/dd4hep/pull/317))
- DDCore: added CartesianStrip segmentations
* 2018-03-02 Frank Gaede ([PR#328](https://github.com/aidasoft/dd4hep/pull/328))
- finalize the python bindings for DDRec:
- implement StructExtension(DetElement&) and toString()
- add DetectorData classes to python
- add example `dumpDetectorData.py`
- closes #306
- remove deprecated methods and classes in DDRec
- resolves #326
* 2018-03-06 Andre Sailer ([PR#331](https://github.com/aidasoft/dd4hep/pull/331))
- Geant4InputHandling: reject stable particles without lifetime (e.g., initial state electrons), fixes #330
* 2018-03-07 Markus Frank ([PR#329](https://github.com/aidasoft/dd4hep/pull/329))
- Fixes #324
- Call `TGeoMixture::ComputeDerivedQuantities()` for ROOT >= 6.12.0 (Resolves #281)
- Start to address issue: https://github.com/AIDASoft/DD4hep/issues/327
* 2018-03-07 Daniel Jeans ([PR#322](https://github.com/aidasoft/dd4hep/pull/322))
- correct coded expressions for quadrupole, sextupole and octopole fields.
- correct expression for octopole field in documentation
* 2018-03-09 Ercan Pilicer ([PR#319](https://github.com/aidasoft/dd4hep/pull/319))
- Remove unnecessary `import exceptions` from python
* 2017-11-30 Markus Frank ([PR#272](https://github.com/aidasoft/dd4hep/pull/272))
### DDG4 enhancements
- Enable framework support in DDG4. The `Geant4Context` is the main thread specific accessor to the `dd4hep`, `DDG4` and the user framework.
- The access to the `dd4hep` objects is via the `Geant4Context::detectorDescription()` call,
- the access to `DDG4` as a whole is supported via `Geant4Context::kernel()` and
- the access to the user gframework using a specialized implementation of:
`template <typename T> T& userFramework() const;`
A user defined implementations must be specialized somewhere in a compilation unit of the user framework, not in a header file. The framework object could host e.g. references for histogramming, logging, data access etc.
This way any experiment/user related data processing framework can exhibit it's essential tools to `DDG4` actions.
A possible specialized implementations would look like the following:
```cpp
struct Gaudi {
IMessageSvc* msg;
IHistogramSvc* histos;
....
};
template<> Gaudi& Geant4Context::userFramework<Gaudi>() const {
UserFramework& fw = m_kernel->userFramework();
if ( fw.first && &typeid(T) == fw.second ) return *(T*)fw.first;
throw std::runtime_error("No user specified framework context present!");
}
```
To access the user framework then use the following call:
```cpp
Gaudi* fw = context->userFramework<Gaudi>();
```
of course after having initialized it:
```cpp
Gaudi * fw = ...;
GaudiKernel& kernel = ...;
kernel.setUserFramework(fw);
```
- `G4RunManager` is now a plugin. To enable user defined run managers in `DDG4`, the run manager is encapsulated in a `Geant4Action`. See `DDG4/plugins/Geant4RunManagers.cpp` how to implement such plugins. Currently there are to factories implemented:
- `G4RunManager` -> factory invokes the single threaded `G4RunManager`
- `G4MTRunManager `-> factory invokes the multi threaded `G4MTRunManager`
The factory names here are identical to the names of the native G4 classes.
* 2017-11-30 Marko Petric ([PR#268](https://github.com/aidasoft/dd4hep/pull/268))
- Introduce new DD4hep web-site: http://dd4hep.cern.ch/
- Page is automatically build from [this repo](https://gitlab.cern.ch/CLICdp/DetectorSoftware/DD4hep-website)
- Restructured `doc` folder and removed not doc related stuff to `etc`
- Fixes to Doxygen configuration
- create reference manual `make reference`
- Better integration of DD4hep tex documentation and cmake
- create manuals in PDF format `make pdf` create manuals in HTML format `make html`
- allow creation of documentation if dependencies are not present
- extended gitlab runners to automatically build documentation PDF and HTML and also reference manual and publish to web-site, thus ensuring always up to date information.
* 2018-02-14 Markus Frank ([PR#310](https://github.com/aidasoft/dd4hep/pull/310))
- Fix MC truth problem in DDG4
- Update of the `XML` reader to simplify externalization
* 2018-02-15 David Blyth ([PR#302](https://github.com/aidasoft/dd4hep/pull/302))
- Added "NOINSTALL" option to cmake build function dd4hep_add_library
* 2018-02-16 Andre Sailer ([PR#315](https://github.com/aidasoft/dd4hep/pull/315))
- DDG4::ExtraParticles: particles with too small life time were tagged as stable, now correctly marked unstable
- DDG4::Geant4InputHandling: pass all particles except strings, quarks and gluons to Geant4 to get completely consistent MCParticle History, fixes #307
- DDG4::Geant4PrimaryHandler: add property RejectPDGs
- DDG4::Geant4InputHandling: print geant4 primary particle chains if VERBOSE
* 2017-11-16 David Blyth ([PR#258](https://github.com/aidasoft/dd4hep/pull/258))
- Corrected `EcalBarrel` constructor after finding significant layer overlaps
- Corrected `CylindricalEndcapCalorimeter` factors of 2 in layer/slice thickness
- Corrected `ForwardDetector` factors of 2 in layer/slice thickness
* 2017-12-05 Marko Petric ([PR#278](https://github.com/aidasoft/dd4hep/pull/278))
- Remove `DD4HEP_USE_CXX11` and `DD4HEP_USE_CXX14` and use [CMake default way](https://cmake.org/cmake/help/v3.1/variable/CMAKE_CXX_STANDARD.html)`CMAKE_CXX_STANDARD` to define C++ standard
* 2017-12-05 Marko Petric ([PR#277](https://github.com/aidasoft/dd4hep/pull/277))
- Fix logic for ignoring warnings in dictionary creation
- Add `-Wno-overlength-strings` to all generated targets
* 2017-12-05 peterkostka ([PR#276](https://github.com/aidasoft/dd4hep/pull/276))
- Update of LHeD example - overlaps (problem with SubdetectorAssembly)
* 2017-12-01 Markus Frank ([PR#275](https://github.com/aidasoft/dd4hep/pull/275))
- Add Support to Export and Import GDML Data
- Allow extorts and imports of partial geometry trees with GDML. **This requires however a future version of ROOT**, since some changes were necessary in the ROOT GDML handlers. The code is commented out for the time being. The plugin implementation is in `DDCore/src/gdml/GdmlPlugin.cpp`
- Remove print statements from DDG4 scripts
- Replace prints with calls to the python logging utility. Hopefully this shall give at some point python3 compatibility.
- Update `G4Stepper` factories
- Add some missing steppers
* 2017-12-01 Marko Petric ([PR#274](https://github.com/aidasoft/dd4hep/pull/274))
- Revert `DDG4.py` Geant4 initialization parameters back to values specified in Geant4 (see discussion #266)
# v01-05
* 2017-11-10 Dan Protopopescu ([PR#262](https://github.com/aidaSoft/DD4hep/pull/262))
- Added createGearForSiD minimal plugin solely for use with LCCalibration
* 2017-11-10 Frank Gaede ([PR#261](https://github.com/aidaSoft/DD4hep/pull/261))
- add `Geant4::HitData::MonteCarloContrib::length` (step length)
- set in all CalorimeterSDActions
- write out it LCIO if `Geant4Sensitive::DETAILED_MODE` and LCIO_VERS>v02-10
* 2017-11-10 Whitney Armstrong ([PR#260](https://github.com/aidaSoft/DD4hep/pull/260))
- added electric and magnetic field functions that return the field value (taking the position as the only argument) directly in `dd4hep::OverlayedField`
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# v01-04
* 2017-10-17 Markus Frank ([PR#248](https://github.com/aidasoft/DD4hep/pull/248))
### VolumeManager Implementation
A possibly important bug was fixed for the lookup of top level subdetectors in the `VolumeManager` by volume identifers of (sensitive) volumes. Due to a bug in the de-masking possible wrong top level subdetectors were returned. The default use cases typically do not use this call and hence should not be affected.
* 2017-10-17 Shaojun Lu ([PR#247](https://github.com/aidasoft/DD4hep/pull/247))
- Fix C++11 pointer error by adding include <memory> for 'unique_ptr' (GCC 4.9).
* 2017-10-13 Marko Petric ([PR#246](https://github.com/aidasoft/DD4hep/pull/246))
### DDCMS:
- Improve the CMS excercise. New examples etc.
- Support for simulation using DDG4 (at least partially - since not all subdetector volumes are accepted by Geant4).
### DDG4:
- Event reader returns `EVENT_READER_EOF` if `EOF` is detected rather than a generic IO error.
- Add generator status word to the `Geant4Particle` object. Remove the extension mechanism, which is very heavy to just add one integer.
### General:
- 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.
* 2017-10-13 Whitney Armstrong ([PR#243](https://github.com/aidasoft/DD4hep/pull/243))
- Added helper function `getAttrOrDefault` (defined in `DDCore/include/XML/Helper.h`)
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.
* 2017-10-19 Markus Frank ([PR#249](https://github.com/aidasoft/DD4hep/pull/249))
* Improve the CMS tracker visualisation
* Add DDG4 simulation example to DDCMS
* Add some plugins to add visualisation attributes if required (not for the compact description)
* 2017-11-01 David Blyth ([PR#254](https://github.com/aidasoft/DD4hep/pull/254))
- DDG4/python/DDG4.py: loadDDG4() changed to not raise exception if libraries are already loaded
* 2017-11-01 David Blyth ([PR#252](https://github.com/aidasoft/DD4hep/pull/252))
- 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.
* 2017-11-07 Frank Gaede ([PR#256](https://github.com/aidasoft/DD4hep/pull/256))
- bug fix in `BitField64::operator[std::string]() `
- make uses of TString in DocumentHandler.cpp compatible with clang9 (on Mac)
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
# v01-03
* 2017-10-12 Frank Gaede ([PR#244](https://github.com/AIDASoft/DD4hep/pull/244))
- allow for unbounded surfaces in DDRec
- add new property `SurfaceType::Unbounded`
- if a surface is marked unbounded `Surface::insideBounds()` ignores the volume boundaries (and only checks the distance to the surface)
* 2017-09-19 Whitney Armstrong ([PR#233](https://github.com/AIDASoft/DD4hep/pull/233))
- Added helper `CellIDPositionConverter::cellDimensions(const CellID& cell)`
* 2017-10-09 Frank Gaede ([PR#242](https://github.com/AIDASoft/DD4hep/pull/242))
- improve `BitFieldCoder` class
- remove heap allocation of BitFieldElements
- add move constructors for efficient filling of vector
* 2017-09-29 Frank Gaede ([PR#238](https://github.com/AIDASoft/DD4hep/pull/238))
- add new threadsafe class `BitFieldCoder` as replacement for `BitField64`
- use as `const` everywhere
- re-implement `BitField64` using `BitFieldCoder`
- is thread safe if used locally
- can be instantiated from `const BitFieldCoder*`
* 2017-09-18 Markus Frank ([PR#234](https://github.com/AIDASoft/DD4hep/pull/234))
- Created a new example showing the CMS tracking detector
- 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.
* 2017-09-18 Frank Gaede ([PR#232](https://github.com/AIDASoft/DD4hep/pull/232))
- fix reading of stdhep/lcio generator files with generator statuses not in [0,3]
- add `G4PARTICLE_GEN_BEAM` and `G4PARTICLE_GEN_OTHER` to DDG4
- `G4PARTICLE_GEN_BEAM` is generally agreed to be used for beam particles (HepMC, LCIO)
- all other status codes vary from generator to generator and we use OTHER
- for stdhep or lcio input the true generator status is preserved in the lcio output, regardless of its value
- create a vertex for every parent-less particle in LCIOEventReader
- this allows for example to read GuineaPig files ( non-prompt pair particles) or special user created files with non-prompt particles
- Resolves #101
* 2017-09-20 Markus Frank ([PR#235](https://github.com/AIDASoft/DD4hep/pull/235))
- A more complete version of the CMS tracker
- Enhanced the CMS tracker example to be more complete.
- Stopped at some point to convert all CMS algorithms. Hence, the tracker is not complete, but the remaining work looks to be purely mechanical.
* 2017-10-02 Frank Gaede ([PR#239](https://github.com/AIDASoft/DD4hep/pull/239))
- add cell sizes to printout of `LayeredCalorimeterData::layer`
- used in `dumpdetector -d`
* 2017-09-14 Frank Gaede ([PR#231](https://github.com/AIDASoft/DD4hep/pull/231))
- adapt LCIOEventReader for Pythia8 and Whizard2
- add all parent-less particles to outgoing vertex
- fixes #226 and closes #229
- also used for stdhep files
* 2017-09-07 Daniel Jeans ([PR#227](https://github.com/AIDASoft/DD4hep/pull/227))
- Fix calculation of cell position in `MegatileLayerGridXY`
- previously, returned position was the lower corner of the cell
- after this bug fix, it's the cell centre
* 2017-10-05 Frank Gaede ([PR#241](https://github.com/AIDASoft/DD4hep/pull/241))
- remove deprecated and unused classes from DDRec
* 2017-10-05 Frank Gaede ([PR#240](https://github.com/AIDASoft/DD4hep/pull/240))
- add `dd4hep::rec::FixedPadSizeTPCData.zMinReadout`
- needed to describe the cathode thickness
* 2017-08-21 Markus Frank ([PR#221](https://github.com/AIDASoft/DD4hep/pull/221))
- Document several classes in doxygen notation.
- Aim is that there are (at least) no class headers without docs.
- See [documentation](http://test-dd4hep.web.cern.ch/test-dd4hep/doxygen/html/annotated.html)
# v01-02
* 2017-07-14 Daniel Jeans ([PR#204](https://github.com/AIDAsoft/DD4hep/pull/204))
- 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.)
- change from array to std::vector to store ncells information
* 2017-07-17 Markus Frank ([PR#206](https://github.com/AIDAsoft/DD4hep/pull/206))
## Implement ROOT persistency mechanism for detector descriptions (continuation of AIDASoft/DD4hep#202).
Object extensions are now persistent.
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:
- `dd4hep::DetElement::DetElementExtension<IFACE,CONCRETE>` for `DetElement` extensions.
- `dd4hep::SimpleExtension<IFACE,CONCRETE>` for simple extension managed by the user framework (user calls explicitly destructor).
- `dd4hep::DeleteExtension<IFACE,CONCRETE>` for simple extension managed by dd4hep (dd4hep calls automatically destructor on hosting object destruction).
- `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.
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.
* 2017-08-11 Andre Sailer ([PR#213](https://github.com/AIDAsoft/DD4hep/pull/213))
- 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
* 2017-07-13 Markus Frank ([PR#202](https://github.com/AIDAsoft/DD4hep/pull/202))
## Implement ROOT persistency mechanism for detector descriptions
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.
It is **NOT** possible to:
* save object extensions. Another usage of void pointers and type-info objects, which both cannot be saved.
* 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.
* save conditions slices. This shall be a futute extension. There should be no fundamental problem doing so - it was simply not yet done.
In the example area a new slot call "Persistency" was created with various tests:
* Save and restore simple conditions
* Save and restore the MiniTel detector (`examples/ClientTests/compact/MiniTel.xml`)
* Save and restore the CLICSiD detector (`examples/CLICSiD/compact/compact.xml`)
The detector examples also have a set of tests associated to check the validity of the restored information.
## Integrate `DDSegmentatation` into `DDCore`
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.
* 2017-08-15 Yorgos Voutsinas ([PR#216](https://github.com/AIDAsoft/DD4hep/pull/216))
* 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:
```xml
<detector name="BeBeampipe" type="DD4hep_Beampipe_o1_v01" insideTrackingVolume="true" nocore="true" vis="BeamPipeVis">
```
* 2017-08-15 Jan Strube ([PR#215](https://github.com/AIDAsoft/DD4hep/pull/215))
- LCIOEventReader: adding parameter for the name of the MCParticle collection: `MCParticleCollectionName`
* 2017-08-14 Markus Frank ([PR#217](https://github.com/AIDAsoft/DD4hep/pull/217))
## Enhance ROOT Detector Description Persistency
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.
The examples are derived from the Telescope and CLICSiD example:
- `Conditions_Telescope_root_save`
- `Conditions_Telescope_root_load_iov`
- `Conditions_Telescope_root_load_pool`
- `Conditions_CLICSiD_root_save_LONGTEST`
- `Conditions_CLICSiD_root_load_iov_LONGTEST`
- `Conditions_CLICSiD_root_load_usr_LONGTEST`
- `Conditions_CLICSiD_root_load_cond_LONGTEST`
## Fix Handle Problem when Accessing Materials from Volumes
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.
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.
* 2017-07-18 Shaojun Lu ([PR#208](https://github.com/AIDAsoft/DD4hep/pull/208))
- added "#include <memory>" for the smart pointers to DD4hepRootPersistency.cpp
* 2017-07-19 Markus Frank ([PR#209](https://github.com/AIDAsoft/DD4hep/pull/209))
- Implement `dd4hep::Tube` using `TGeoTubeSeg` (See also Issue AIDASoft/DD4hep#203 for details)
* 2017-07-21 Markus Frank ([PR#210](https://github.com/AIDAsoft/DD4hep/pull/210))
## Implement ROOT persistency mechanism for the conditions
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:
- Simple `ConditionsPool` objects
- The entire `IOV` indexed pool set (class `ConditionsIOVPool`) or
- A the pool used by a `ConditionsSlice` (class `UserPool`).
- A std::vector<Condition> which belong all to the same IOV
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.
Some example plugin tasks were added in examples/Conditions:
- `DD4hep_ConditionExample_save` to save conditions to a ROOT file.
- `DD4hep_ConditionExample_load` to restore conditions from file.
## Split of dictionary files
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.
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
# v01-01
* 2017-07-06 Markus Frank ([PR#201](https://github.com/AIDASoft/DD4hep/pull/201))
## DDCore: Changes to the VolumeManager interface
Recent descrepancies showed that the call to lookup a placement
from the volume manager may have an ambiguous meaning:
It may (as used until now) be the placement of thge closest
detector element - a functionality used by various tests
or be the placement of the sensitive volume itself.
So far, since each sensitive volume in the DD4hep tests
is represented by a DetElement structure, both
approaches returned the same placed volume.
Since there is the possibility to have sensitive volumes, which are not
directly connected to a single DetElement structure, this call was
split to resolve this ambiguity:
/// Lookup a physical (placed) volume identified by its 64 bit hit ID
PlacedVolume lookupVolumePlacement(VolumeID volume_id) const;
/// Lookup a physical (placed) volume of the detector element
/// containing a volume identified by its 64 bit hit ID
PlacedVolume lookupDetElementPlacement(VolumeID volume_id) const;
* 2017-07-06 Andre Sailer ([PR#200](https://github.com/AIDASoft/DD4hep/pull/200))
- Now will give a warning if multiple entities (e.g., constants) of the same name are defined in the XML
# v01-00-01
* 2017-07-04 Frank Gaede ([PR#199](https://github.com/AIDASoft/DD4hep/pull/199))
- bug fix for VolumeManagerContext::toElement() and VolumeManagerContext::placement()
- set flag=true in VolumeManager_Populator::add_entry when
a ContextExtension is needed, i.e. sensitive volume is not DetElement's volume
- fixes problems in CellIDPositionConverter
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# v01-00
* 2017-06-22 Marko Petric ([PR#192](https://github.com/AIDASoft/DD4hep/pull/192))
- Move `AlignDet_Telescope_readback_xml` to later in the pipeline since it depends on the output of `AlignDet_Telescope_write_xml`
* 2017-06-22 Andre Sailer ([PR#191](https://github.com/AIDASoft/DD4hep/pull/191))
- Surface: fix memory leak of transformation matrix
- XML::Layering: fix memory leak of contained layers in the object
* 2017-06-23 Andre Sailer ([PR#197](https://github.com/AIDASoft/DD4hep/pull/197))
- Fix memory leaks for Tube, EllipticalTube and Polyhedron
* 2017-06-23 Andre Sailer ([PR#196](https://github.com/AIDASoft/DD4hep/pull/196))
- CMake: add `Project( DD4hep )`, needed to get the correct CMAKE_CXX_COMPILER_ID on macs due to CMP0025 (cmake policy)
- 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
- CMake: fix elif --> elseif when checking threading libraries
* 2017-06-23 Frank Gaede ([PR#195](https://github.com/AIDASoft/DD4hep/pull/195))
- fix crash in `dd4hep::rec::Surface` after changes in Handle assignment (PR #193)
- fix use of deprecated `dd4hep::rec::MaterialManager` c'tor in Surface
* 2017-06-20 Frank Gaede ([PR#185](https://github.com/AIDASoft/DD4hep/pull/185))
- bug fix in material utilities
- call `MaterialManager( Volume v)` with `Detector.world().volume()`
* 2017-06-20 Marko Petric ([PR#184](https://github.com/AIDASoft/DD4hep/pull/184))
- Reinstate the full test-suite on Travis
* 2017-06-20 Markus Frank ([PR#183](https://github.com/AIDASoft/DD4hep/pull/183))
- Unify header guards in DDCore
- Add header to steer ignoring warnings of rootcling generated dictionaries.
* 2017-06-20 Frank Gaede ([PR#182](https://github.com/AIDASoft/DD4hep/pull/182))
- cleanup of namespace `dd4hep::rec`
- remove obsolete bwd compatibility for `DD4hep::DDRec`
- re-introduce `[deprecated]` warnings for unmaintained classes in DDRec/API
- re-fix deprecated c'tor for `MaterialManager` in material utilities
* 2017-06-20 Markus Frank ([PR#181](https://github.com/AIDASoft/DD4hep/pull/181))
- Attack many warnings from:
- `-Wshadow`
- `-Winclude-hygiene`
- `-Woverlength-strings` (int cling dictionaries)
* 2017-06-20 Markus Frank ([PR#179](https://github.com/AIDASoft/DD4hep/pull/179))
- Remove a bunch of shadow warnings and include-hygiene warnings.
* 2017-06-21 Marko Petric ([PR#169](https://github.com/AIDASoft/DD4hep/pull/169))
- Make boost explicit requirement for DD4hep and drop DD4HEP_USE_BOOST
* 2017-06-21 David Blyth ([PR#168](https://github.com/AIDASoft/DD4hep/pull/168))
- Added environment helper scripts `thisdd4hep_only.(c)sh` that only set up variables for DD4hep and not for dependencies.
* 2017-06-19 Markus Frank ([PR#178](https://github.com/AIDASoft/DD4hep/pull/178))
- Update documentation after reorganization of namespaces (put back previous docs).
* 2017-06-19 Markus Frank ([PR#175](https://github.com/AIDASoft/DD4hep/pull/175))
## DD4hep namespace reorganization
Re-organize namespaces according to the decisions of the DD4hep developers meeting from 16th June we have decided:
1. all namespaces will be lower case and shorter
* rename namespace `DD4hep` -> `dd4hep`
* rename namespace `DD4hep::DDRec` -> `dd4hep::rec`
* rename namespace `DD4hep::Simulation` -> `dd4hep::sim`
* rename namespace `XML` -> `xml` and `JSON` -> `json`
* rename all other namespaces according to this pattern
2. The namespace `DD4hep::Geometry::` will be incorporated into `dd4hep::`
3. All utilities will be moved `dd4hep::detail`