RCEWriter

Writes pixel hits in the RCE format
Status Functional
Maintainers Salman Maqbool (salman.maqbool@cern.ch)
Moritz Kiehn (msmk@cern.ch)
Input Objects Pixel Hit

Description

Reads in the PixelHit messages and saves them in the RCE format, appropriate for the Proteus telescope reconstruction software [@proteus]. An event tree and a sensor tree and their branches are initialized in the module’s initialize() method. The event tree is initialized with the appropriate branches, while a sensor tree is created for each detector and the branches initialized from a struct storing the tree and branch information for every sensor. Initially, the program loops over all PixelHit messages and then over all the hits within the message, and writes data to the tree branches in the RCE format. If there are no hits, the event is saved with nHits = 0, with the other fields empty.

Parameters

  • file_name : Name of the data file to create, relative to the output directory of the framework. The file extension .root will be appended if not present. Defaults to rce-data.root.
  • device_file : Name of the output device file in the Proteus toml format. The file extension .toml will be appended if not present. Defaults to device.toml.
  • geometry_file : Name of the output geometry file in the Proteus toml format. The file extension .toml will be appended if not present. Defaults to geometry.toml.

Usage

To create the default file an instantiation without arguments can be placed at the end of the main configuration:

[RCEWriter]