v2.2.11
-
Removed automatic
TRestVersion.h
generation at compile time. Now version must be updated manually. AndTRestVersion.h
header generated using the new scriptgenerateVersionHeader.py
to help on header generation. CONTRIBUTING guide will be soon updated accordingly. -
Upgrades related to pre-generated Decay0 generator. New particles, pre-defined positions, etc.
-
New online
Decay0
generator added.packages/restG4/example/restG4template/restG4.rml
has been updated to show the new different ways to implement this generator inTRestG4Metadata
. -
REST_ViewReadoutEvent
rescued. -
New
fVersionLibrary
member insideTRestMetadata
. To be used to define version of REST libraries, and be written in the corresponding metadata classes. -
Added future libraries skeleton under
libraries/
. -
Reference to create new future REST libraries has been refurbished. It has been moved from
packages/userRESTlibrary
tolibraries/dummy
. -
Added a script to apply
clang-format
to the full repository. We adopt the useclang-format
in this release for coding style conventions. Needs update on the CONTRIBUTION GUIDE! -
Improved output precision at
TRestG4Track::PrintTrack
, and added missing track origin information. -
Updated
TRestAnalysisTree
information. Simplified the integration of analysis tree variables inside processes. A new methodTRestEventProcess::SetObservableValue
has been added to help in this. Processes now do not need to build the observable name. Just callSetObservableValue((string) "xOrigin", xOrigin)
. Processes need to be updated in future. An updated process to be used as reference isTRestGeant4AnalysisProcess
. -
Fixed issue in
restG4
not filling properly the run number, and other related fields. -
{Begin,End}OfEventProcess
are now not virtual. It means when using the REST processes insideTRestProcessRunner
any{Begin,End}OfEventProcess
implemented inside a specific process will be just ignored. The implementation ofTRestEventProcess::{Begin,End}OfEventProcess
will be used to assist on transferring event id, timestamp, etc. -
Added a new option to add all the observables of a process to the analysis tree!
<parameter name="observable" value="all" />
If we do not define this parameter, just the explicit observable declarations will be added to the analysisTree.
-
Now, analysis observables of type
map
do not have to be declared as a member of the process. But they are rather defined as local variables and added simply usingSetObservableValue
. -
SetObservableValue
improved efficiency using templates, this should simplify integrating new observables inside processes by using directyTRestEventProcess::SetObservableValue()
inside theProcessEvent
method. -
TRestHits::are{XY,XZ,YZ}
methods have been updated to evaluate all the hits, and not only the first one. -
TRestHits::GetPosition(n)
. NaN vector components are converted to 0 in any scenario. -
Added method
TRestTools::GetTypeName
andTRestTools::Assembly
. -
Updated method TRestMetadata::{Get,Set}DataMemberVal{InString}.
-
TRestEventProcess members will be saved without junk. fVersion, fName, etc.
-
Fix a bug on restG4 SteppingAction. Biasing volume related. Still I don't understand this fix. But anyway, biasing volumes will disappear in future.
-
TRestAnalysisPlot
added stats box also on single plot, and other mods not previously integrated from v2.1.7. -
Several updates on Decay0 generator
TRestG4
related classes. New Decay0 format accepted now. New particles accepted in pre-generated file (not only electron). -
TRestMetadata::SearchFile
is now recursive. -
TRestMetadata::GetSearchPath
will search in REST_PATH/data/ by default if not found in user defined paths. -
Many other minor but important bug fixes.