Changeset 4609 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 08/13/04 14:59:17 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r4577 r4609 74 74 // 75 75 // UInt_t fNumTrigLvl2 76 // ------------------ 76 // -------------------- 77 77 // 78 78 // Number of second level trigger … … 90 90 // Type of Trigger. 91 91 // 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 93 112 // 94 113 ///////////////////////////////////////////////////////////////////////////// … … 379 398 return fTrigPattern[0]; 380 399 } 400 401 // -------------------------------------------------------------------------- 402 // 403 // return pulser slot patter, see class reference 404 // 405 UShort_t MRawEvtHeader::GetPulserSlotPattern() const 406 { 407 return fTrigPattern[1] & 0xffff; 408 } 409 410 // -------------------------------------------------------------------------- 411 // 412 // return power of continous light, see class reference 413 // 414 Byte_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 // 423 MRawEvtHeader::CalibCol_t MRawEvtHeader::GetContLedColor() const 424 { 425 return (CalibCol_t)((fTrigPattern[1]<<24)&0xf); 426 } -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h
r4577 r4609 24 24 kTTPedestal = 1, 25 25 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) 26 34 }; 27 35 … … 60 68 void FillHeader(UInt_t, Float_t=0); 61 69 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; } 66 74 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; 68 80 69 81 Int_t ReadEvt(istream& fin, UShort_t ver); 70 void SkipEvt(istream& fin, UShort_t ver);82 void SkipEvt(istream& fin, UShort_t ver); 71 83 72 84 ClassDef(MRawEvtHeader, 1) // Parameter Conatiner for raw EVENT HEADER
Note:
See TracChangeset
for help on using the changeset viewer.