Ignore:
Timestamp:
08/13/04 14:59:17 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc

    r4577 r4609  
    7474//
    7575// UInt_t  fNumTrigLvl2
    76 // ------------------ -
     76// --------------------
    7777//
    7878// Number of second level trigger
     
    9090// Type of Trigger.
    9191// This is a Byte (8 bit) to indicated if any of the pixels
    92 // have a non-negligible low gain (1) or not (0)
     92// have a non-negligible low gain (1) or not (0)
     93//
     94// UInt_t fCalibPattern
     95// --------------------
     96//
     97// Bits 1-16: Pulser slot pattern: 16 LEDs slots (see Diploma Thesis
     98// of Michele)
     99//
     100// Bits 17-24: Power of Continous light source: 256 level
     101//
     102// Bits 25-28: Farbe der Continuous Light: red-amber-green/blue-uv
     103//
     104// Bit 29: Calibration trigger On/off
     105// Bit 30: Pedestal trigger on/off
     106// Bit 31: PIN Diode calibration trigger on/off
     107//
     108//
     109// Class Version 2:
     110// ---------------
     111//  - added fCalibPattern
    93112//
    94113/////////////////////////////////////////////////////////////////////////////
     
    379398    return fTrigPattern[0];
    380399}
     400
     401// --------------------------------------------------------------------------
     402//
     403// return pulser slot patter, see class reference
     404//
     405UShort_t MRawEvtHeader::GetPulserSlotPattern() const
     406{
     407    return fTrigPattern[1] & 0xffff;
     408}
     409
     410// --------------------------------------------------------------------------
     411//
     412// return power of continous light, see class reference
     413//
     414Byte_t MRawEvtHeader::GetPowerOfContLight() const
     415{
     416    return (fTrigPattern[1]<<16) & 0xff;
     417}
     418
     419// --------------------------------------------------------------------------
     420//
     421// return color of continous light, see class reference
     422//
     423MRawEvtHeader::CalibCol_t MRawEvtHeader::GetContLedColor() const
     424{
     425    return (CalibCol_t)((fTrigPattern[1]<<24)&0xf);
     426}
Note: See TracChangeset for help on using the changeset viewer.