v2.2.12
REST Framework
- When opening root file using
restRoot
, it will callTRestRun
for file loading, and automatically connect observable branches for AnalysisTree.
For example, executing restRoot
with a ROOT file as argument will allow to get a run0
and a ev0
initialized pointers.
restRoot file.root
run0->PrintMetadata();
run0->GetEntry(0);
ev0->PrintEvent();
-
Add a namespace:
REST_Reflection
. Add a class: any. This is important for observable saving in theAnalysisTree
, and it is a step towards automatic parameter loading inInitFromConfigFile
. -
AnalysisTree
now accepts all types of observables. If the observable does not exist, it will create a new one in the first filling. -
System-level methods from TRestStringHelper(fileExists(), SearchFileInPath(), Execute(), etc.) now moved to
TRestTools
. -
CMakeLists
. The git info collection operation is moved to the installation stage. -
Now the commit number is stored during the REST installation, and accessible using :
rest-config --commit
. -
New member
TRestMetadata::fCommit
added.
RestG4
-
We split method
EventAction::FillSubEvent
into two methods that combined do the same thing as the original:EventAction::FillSubEvent
andEventAction::ReOrderTrackIds
. This was done because only the first of these methods (EventAction::FillSubEvent) is needed to compute sensitive volume energy and therefore calling the followingEventAction::ReOrderTrackIds
can be avoided if the sensitive energy is zero and thus is not going to be stored anyway (calling the method is a bottleneck in high number of tracks simulations).
https://lfna.unizar.es/rest-development/REST_v2/issues/63 -
PrimaryGeneratorAction
: reimplemented and tested rotation of generatorvirtualWall
using normal vector to the plane. -
Introduced the
enum generator types
and angular/energy distributions. Now we can stop worrying about capital letters when defining this parameters in the configuration files, also now its possible to know all possible values of these parameters by looking at the code and going to the enum struct.
https://lfna.unizar.es/rest-development/REST_v2/issues/54 -
Implemented cleaning of file path strings output such that now every path (restG4) shown in console should contain a single slash.
-
Fixed bug in output messages where sensitive volume energy was being confused by active volume energy.
-
Heavily altered INFO/DEBUG messages of restG4 simulations so that they are more consistent and contain more useful infor mation.
Processes:
-
TRestMultiFEMINOSToSignal
: integratedTRestDetectorSetup
metadata class, used to read detector information through the filename format. -
All the processes are now using the new, more practical, observable interface.
-
TRestGeant4AnalysisProcess
: AddedphotonNuclear
andNInelastic
observables. -
TRestTrackAnalysisProcess
: AddedtrackEnergy
observable.
Metadata:
- New
TRestG4Metadata::fSeed
member added to register the seed given to Geant4 random generator.
Macros:
- New
REST_ReadNEvents_inROI
macro added.
Data:
- Cf252 neutron source added to
distributions/NeutronSources.root
.