Skip to content

v2.2.12

Compare
Choose a tag to compare
@jgalan jgalan released this 25 Dec 05:55
· 4777 commits to master since this release
REST Framework
  1. When opening root file using restRoot, it will call TRestRun 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();
  1. Add a namespace: REST_Reflection. Add a class: any. This is important for observable saving in the AnalysisTree, and it is a step towards automatic parameter loading in InitFromConfigFile.

  2. AnalysisTree now accepts all types of observables. If the observable does not exist, it will create a new one in the first filling.

  3. System-level methods from TRestStringHelper(fileExists(), SearchFileInPath(), Execute(), etc.) now moved to TRestTools.

  4. CMakeLists. The git info collection operation is moved to the installation stage.

  5. Now the commit number is stored during the REST installation, and accessible using : rest-config --commit.

  6. New member TRestMetadata::fCommit added.

RestG4
  1. We split method EventAction::FillSubEvent into two methods that combined do the same thing as the original: EventAction::FillSubEvent and EventAction::ReOrderTrackIds. This was done because only the first of these methods (EventAction::FillSubEvent) is needed to compute sensitive volume energy and therefore calling the following EventAction::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

  2. PrimaryGeneratorAction: reimplemented and tested rotation of generator virtualWall using normal vector to the plane.

  3. 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

  4. Implemented cleaning of file path strings output such that now every path (restG4) shown in console should contain a single slash.

  5. Fixed bug in output messages where sensitive volume energy was being confused by active volume energy.

  6. Heavily altered INFO/DEBUG messages of restG4 simulations so that they are more consistent and contain more useful infor mation.

Processes:
  1. TRestMultiFEMINOSToSignal: integrated TRestDetectorSetup metadata class, used to read detector information through the filename format.

  2. All the processes are now using the new, more practical, observable interface.

  3. TRestGeant4AnalysisProcess: Added photonNuclear and NInelastic observables.

  4. TRestTrackAnalysisProcess: Added trackEnergy observable.

Metadata:

  1. New TRestG4Metadata::fSeed member added to register the seed given to Geant4 random generator.
Macros:
  1. New REST_ReadNEvents_inROI macro added.
Data:
  1. Cf252 neutron source added to distributions/NeutronSources.root.