Ignore:
Timestamp:
08/13/04 14:59:17 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
2 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}
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h

    r4577 r4609  
    2424        kTTPedestal    = 1,
    2525        kTTCalibration = 2
     26    };
     27
     28    enum CalibCol_t {
     29        kColRed   = BIT(0),
     30        kColAmber = BIT(1),
     31        kColGreen = BIT(2),
     32        kColBlue  = BIT(3),
     33        kColUV    = BIT(4)
    2634    };
    2735
     
    6068    void FillHeader(UInt_t, Float_t=0);
    6169
    62     UShort_t GetTrigType() const     { return fTrigType; }
    63     UInt_t   GetNumTrigLvl1() const  { return fNumTrigLvl1; }
    64     UInt_t   GetNumTrigLvl2() const  { return fNumTrigLvl2; }
    65     UInt_t   GetDAQEvtNumber() const { return fDAQEvtNumber; }
     70    UShort_t   GetTrigType() const     { return fTrigType; }
     71    UInt_t     GetNumTrigLvl1() const  { return fNumTrigLvl1; }
     72    UInt_t     GetNumTrigLvl2() const  { return fNumTrigLvl2; }
     73    UInt_t     GetDAQEvtNumber() const { return fDAQEvtNumber; }
    6674   
    67     UInt_t GetTriggerID() const;
     75    UInt_t     GetTriggerID() const;
     76
     77    UShort_t   GetPulserSlotPattern() const;
     78    Byte_t     GetPowerOfContLight() const;
     79    CalibCol_t GetContLedColor() const;
    6880
    6981    Int_t ReadEvt(istream& fin, UShort_t ver);
    70     void SkipEvt(istream& fin, UShort_t ver);
     82    void  SkipEvt(istream& fin, UShort_t ver);
    7183
    7284    ClassDef(MRawEvtHeader, 1) // Parameter Conatiner for raw EVENT HEADER
Note: See TracChangeset for help on using the changeset viewer.