SVT Class Library

What's new:

  • The whole page is new!!!(11/07/99)

  • Base Classes:

    StSvtHybrid

    Inheritance:
    StObject
    Description:
    This class represents the basic unit of the SVT, i.e, a hybrid.
    It should be the base class for any "hybrid object". "Anything" (data, pedestal, drift velocity, clusters, hit points, etc.) that is particular to one hybrid, should inherit from this class.
    Data Members:
    The data members of this class are the Barrel, Ladder, Wafer and Hybrid number of a particular hybrid.
    Constructor:
    It has four parameters: Barrel, Ladder, Wafer and Hybrid number (as expected).

    StSvtHybridCollection

    Inheritance:
    StObjArray
    Description:
    This class corresponds to a collection of hybrid objects(for instance, StSvtHybrid). Basically, it represents the entire SVT, since the detector is a "collection" of hybrids (basic unit).
    This should be the base class for any "SVT object". For instance, the SVT pedestals (that inherits from StSvtHybridCollection) is a collection of hybrid pedestals (that inherits from StSvtHybrid).
    Data Members:
    The data members of this class are the number of Barrels, Ladders, Wafers and Hybrids of the SVT. The number of Ladders and Wafers depend on the Barrel number. All these quantities are pre-defined in this class.
    Constructor:
    As the SVT can present various configurations, the constructor of this class has one parameter that corresponds to the configuration name. So far, there are three configurations defined:
  • "FULL": corresponds to the full detector (216 wafers or 432 hybrids);
  • "Y1L": corresponds to the year 1 ladder (7 wafers or 14 hybrids);
  • "SYST": corresponds to the system test configuration. The configuration of the system test correspond to 9 wafers (or 18 hybrids) that corresponds to the maximum number of detectors that a Receiver board can read. There is no meaningful barrel, ladder, wafer or hybrid number information. The hybrid index depends on the order of the read out in the RB.
  • Methods:
  • int getHybridIndex(int barrel, int ladder, int wafer, int hybrid): returns an internal index for the specified hybrid. This index should be used to store/retrieve a specific hybrid in/from the collection.

  • Data Access Classes:

    StSvtHybridData

    Inheritance:
    StSvtHybrid
    Description:
    This is the class to access the data from each hybrid.
    Constructor:
    The same as StSvtHybrid.
    Methods:
    The methods to access the data follow the TPC model:
  • int getAnodeList(int** anodeList) : returns the number of anodes of a given hybrid that has one or more sequences of data. The anodeList contains the number (ID) of such anodes. In the case of raw data, it returns always 240 anodes.
  • void getSequences(int anode, int& nSequences, StSequence** sequence) : provides the number of sequences each anode has (nSequences) and a list of the sequences (sequence). The structure StSequence (from StarClassLibrary) gives the first time bin of the sequence, the length of the sequence and a pointer for the first ADC of the sequence.
  • bool_t setHybrid(StSVTReader reader) : fills the data members of this object, so one can access the data through the two methods mentioned before. Therefore, it must be invoked before the access methods. This method can be overloaded to allow other types of input data (simulators, ASCII files, etc.). If everything goes OK, it returns kTRUE.
  • StSvtEvent

    Inheritance:
    StSvtHybridCollection
    Description:
    It is a collection of StSvtHybridData objects. It represents the entire SVT data.
    Constructor:
    The same as StSvtHybridCollection with two additional parameters: event number and trigger type.
    Data Members:
    It has two additional data members relative to StSvtHybridCollection: the event number and the trigger type.


    Utility Classes:

    StSvtHybridPixels

    Inheritance:
    StSvtHybrid, TArrayF
    Description:
    It is an array of 240 X 128 floats. It can be used to store any pixel data from one hybrid. For instance, the pedestals can be defined as a StSvtHybridPixels.
    Constructor:
    The same as StSvtHybrid.
    Methods:
  • int getPixelIndex(int anode, int time): returns an internal index for pixel (anode,time). It should be used to store or retrieve a pixel value from this object.
  • StSvtHybridStat

    Inheritance:
    StSvtHybrid
    Composition:
    StSvtHybridPixels
    Description:
    Used to calculate the statistics (mean and RMS) of pixel quantities. For instance, it can be used to calculate the pedestals of a hybrid.
    Constructor:
    The same as StSvtHybrid.
    Data Members:
    It has three data members: the zeroth (sample number), first(sum of value) and second(sum of value*value) order momenta of the statistics. They are StSvtHybridPixels objects.
    Methods:
  • void fillMom(int x, int anode, int time): fills the 0th, 1st and 2nd order momenta of pixel (anode,time) with the value x;
  • float getMean(int anode, int time): returns the mean value for pixel (anode,time);
  • float getRMS(int anode, int time): returns the RMS for pixel (anode,time);

  • Please send comments and suggestions to Marcelo Munhoz: munhoz@physics.wayne.edu

    (Last update: November 7, 1999)