Skip to content
pcbend edited this page Jan 5, 2016 · 1 revision

Currently, the steps to add a new detector are as follows.

  • Make a new folder in libraries/TDetSystems to contain your code.
  • Make an inherited class of TDetector. The most important function to implement is BuildHits(), which should unpack raw data associated with your detector.
  • Add an entry to the kDetectorSystem enum in TGRUTTypes.h
  • Add an entry to the detector_system_map in TGRUTTypes.cxx, to convert from the strings in the config file to an enum.
  • Add an entry to the case/switch statement in TUnpackedEvent.cxx, to convert the enum to a detector type.
  • If the detector can show up in GEB data, add an entry to the case/switch statement in TUnpackingLoop::HandleGEBData(), to convert from the event type to the enum.

Note: This will soon be simplified. See Issue #44.

Clone this wiki locally