#include <CSCChamber.h>
Public Member Functions | |
| CSCChamber () | |
| Constructor for intialization: this produces an empty chamber. | |
| ~CSCChamber () | |
| Destructor. | |
| int | Read (unsigned int *source, int numSample) |
| Reads a cluster from a buffer. | |
| int | GetGhostWord (int index) |
| Provides access to the ghost words. | |
| CSCCluster * | GetCluster (int layer, int i) |
| Provides access to the X clusters if layer is between 0 and 3. | |
| CSCCluster * | GetYCluster (int layer, int i) |
| Provides access to the Y clusters. | |
| int | GetNumCluster (int layer) |
| Provides the number of X clusters if layer is between 0 and 3. | |
| int | GetNumYCluster (int layer) |
| Provides the number of Y clusters. | |
| int | GetSCAAddress (int sam) |
| The SCA address is the row number in the SCA, ranging from 0 to 143. | |
| int | GetPhase () |
| The sampling phase is 0 or 1, depending on the trigger occuring either on the 20 MHz sampling time, or between 2 samplings. | |
| int | GetNumGhostWords () |
| BOOL | GetIsROS () |
| void | SetIsROS (BOOL b) |
| set to TRUE if the ROD fragment is simulated by the ROS | |
| void | SetSector (unsigned int sourceID, int input) |
| sets the sector based on the sourceID and CTM input | |
| int | GetSector () |
| get the sector number this is negative for side C: eta=-1. | |
| void | Print () |
| Prints some information about the event. | |
The ADC data is stored in CSCCluster objects and the Chamber holds arrays of Clusters for each SPU. SPU 0-3 have data for X layers 0-3, respectively. SPU 4 holds data for all Y layers.
To access the data of a specific layer, 1. Find out how many clusters exist with GetNumCluster() for X layers or GetNumYCluster() for Y layers. 2. Get a pointer to a specific cluster with GetCluster() for X layers or GetYCluster() for Y layers.
|
||||||||||||
|
Provides access to the X clusters if layer is between 0 and 3. If layer is 4, than the Y clusters are accessed, but this should now be done with GetYCluster().
|
|
|
Provides access to the ghost words. This is debugging information of variable length, that follows the event data. Typically, it contains 8 words per time slice for each DPU on the ROD. Currently, only the last 3 of these 8 words are used.
|
|
|
|
|
|
Provides the number of X clusters if layer is between 0 and 3. If layer is 4, than the number of Y clusters in all layers is returned, but this should now be done with GetNumYCluster(), which provides the number per layer and not just the total over all layers.
|
|
|
|
|
|
Provides the number of Y clusters.
|
|
|
The sampling phase is 0 or 1, depending on the trigger occuring either on the 20 MHz sampling time, or between 2 samplings. This phase is commaon to both chambers of a ROD, but can vary from ROD to ROD. To get the corrected time, use
50ns * peakingTime - 25ns * samplingPhase
|
|
|
The SCA address is the row number in the SCA, ranging from 0 to 143.
|
|
|
get the sector number this is negative for side C: eta=-1.
|
|
||||||||||||
|
Provides access to the Y clusters.
|
|
|
Prints some information about the event. Used for debugging. |
|
||||||||||||
|
Reads a cluster from a buffer. This is only used in the CSCEvent class.
|
|
||||||||||||
|
sets the sector based on the sourceID and CTM input
|
1.3.9.1