Changeset 13379 for trunk/Mars/mtrigger


Ignore:
Timestamp:
04/18/12 12:08:09 (13 years ago)
Author:
tbretz
Message:
Added decoding for FACT.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mtrigger/MTriggerPatternDecode.cc

    r9531 r13379  
    9696Int_t MTriggerPatternDecode::Process()
    9797{
     98    if (fRunHeader->GetCameraVersion()==0xfac7)
     99    {
     100        UInt_t pat = 0;
     101
     102        if (fEvtHeader->GetTriggerID()&0x4)
     103            pat |= MTriggerPattern::kTriggerLvl1;
     104
     105        if (fEvtHeader->GetTriggerID()&0x400)
     106            pat |= MTriggerPattern::kPedestal;
     107
     108        if (fEvtHeader->GetTriggerID()&0x100)
     109            pat |= MTriggerPattern::kCalibration;
     110
     111        if (fEvtHeader->GetTriggerID()&0x8000)
     112            pat |= MTriggerPattern::kSumTrigger;
     113
     114        fPattern->fPrescaled   = pat;
     115        fPattern->fUnprescaled = pat;
     116
     117        return kTRUE;
     118    }
     119
    98120    if (fRunHeader->GetFormatVersion()<5)
    99121    {
Note: See TracChangeset for help on using the changeset viewer.