Geometry of the MPS wire chambers

Data structures

The geometry of the MPS wire chambers (beam PWCs and hodoscopes, TPX1..3, DM1..7, TDX4) is described by the space_t structure defined in mpsX.h.

The space_t record contains following fields:

All the chambers are subdivided into regions-

Each region is described by a region_t record: The information about each chamber is stored in chamber_t records. Most useful fields of that record are described here, for full information, see the include file.

Loading the chamber parameters

Use the following code sequence to load the chamber parameters:

#include <param.h> #include <mpsX.h> #include <space.h> space_t space; // the space structure to be loaded int runNo; // run number int ret; // error code // Load the database file ret = param_loadDatabase("space",runNo); // load the chamber parameters ret = space_getParameters(&space);

Loading the chamber hits

Use the following code sequence to load chamber hits from an event into the space_t structure (chamber[]->hits[]):

#include <param.h> #include <mpsX.h> #include <space.h> space_t space; // the space structure to be loaded coors_t coors; // the hits buffer int ret; // error code itape_header_t *event; // the event // Fill the chamber hits from the event InitCoors(&space,&coors); FillCoors(event,&space,&coors);

Chamber geometry

The section decribes the 3-D chamber geometry.

To define a plane in a 3 dimentional space, it is sufficient to specify it's normal vector (unv) and the distance from the plane to the origin of coordinates (dnorm). To define the positions of the cells (wires) on the plane, it is sufficient to specify either direction of the wires or a vector orthogonal to the wires (dcos).

How to use the drift information

Assuming:

The drift distance shall be calculated as: chamber_t chm; // chamber record int iwire; // wire number (counting from 1) int tdc; // drift time (tdc) double dd; // drift distance dd = chm.d0 + chm.driftv * (tdc - chm.misc->t0[iwire-1]); Notes: the tdc value can be positive and negative, the drift velocity (driftv) is positive for the MPS drift chamber and negative for TDX4.


CO 1995-June-12