#include <GeoServer.h>
Public Member Functions | |
| GeoServer () | |
| Constructor for intialization. | |
| ~GeoServer () | |
| Destructor. | |
| int | ReadFile (char *filename) |
| Reads all constants from a text file. | |
| void | ReadArray (double *a) |
| Reads all constants from an array. | |
| void | Print () |
| Prints all alignment values for debugging. | |
| double | GetPitch (CSCHit *hit) |
| Provides the Pitch value of the strips in mm for X and Y hits in small and large chambers. | |
| double | GetZ (double x, double y, int phi, int layer) |
| Provides the Z coordinate in mm for a chamber and layer. | |
| double | GetY (double y, double x, int phi, int layer, int isLargeChamber) |
| Provides the Y coordinate in mm for a Y hit. | |
| double | GetX (double x, double y, int phi, int layer, int isLargeChamber) |
| Provides the X coordinate in mm for a X hit. | |
| double | GetYStrip (double y, double x, int phi, int layer, int isLargeChamber) |
| Provides the Y strip that corresponds to the given Y coordinate. | |
| double | GetXStrip (double x, double y, int phi, int layer, int isLargeChamber) |
| Provides the X strip that corresponds to the given X and Y coordinate. | |
Currently, there is an X and Y offset for each chamber, and a rotation angle. There is also a layer thickness parameter and the z position of the 2nd and 3rd chamber. The first chamber has z=0 and the last one z=441*3mm. The data is read from text files written by the align.cpp program.
Lookup of constants uses the channelID of a strip, which makes it independent of the chamber number and readout order.
This is meant to work only for the fixed chambers in the cosmic stand.
|
|
Constructor for intialization. All offsets and angles are zero, z values are set to defaults. |
|
|
Provides the Pitch value of the strips in mm for X and Y hits in small and large chambers.
|
|
||||||||||||||||||||||||
|
Provides the X coordinate in mm for a X hit. The rotation is applied and a Y coordinate must be supplied. Use this form if the y coordinate comes from a line fit and not from a Y hit.
|
|
||||||||||||||||||||||||
|
Provides the X strip that corresponds to the given X and Y coordinate. The rotation is applied, so a Y coordinate is needed.
|
|
||||||||||||||||||||||||
|
Provides the Y coordinate in mm for a Y hit. No rotation is applied.
|
|
||||||||||||||||||||||||
|
Provides the Y strip that corresponds to the given Y coordinate. No rotation is applied.
|
|
||||||||||||||||||||
|
Provides the Z coordinate in mm for a chamber and layer.
|
|
|
Reads all constants from an array. This call can be used to read constants from Minuit.
|
|
|
Reads all constants from a text file. This call can be skipped for Monte Carlo data, since the constructor already initializes the values.
|
1.3.9.1