| Data Acquisition and Online Analysis at the NSCL | ||
|---|---|---|
| Prev | Chapter 5. Best Practices for Building Software | Next |
In many cases, your software will be part of a larger experimental system. For example, while at the NSCL, the S800 is used in the majority of the experiments, it is usually used coupled to some other system in the target area. When designing and deploying your software, do so with this in mind.
Put your readout code into a production readout event segment that creates and
lives inside of a CDocumentedPacket.
Organize your SpecTcl event processor around recognizing your event segment and ignoring all others.
See some of the suggestions in the section on deployment.
Rollout your software templates and makefiles to a directory that is unique to your device, e.g. instead of installing templates and makefile samples for SpecTcl in ~/spectcl, install them in ~/spectcl/mydevice so that the user can combine templates and Makefiles from multiple devices.