Changeset 17734


Ignore:
Timestamp:
04/29/14 19:45:34 (11 years ago)
Author:
tbretz
Message:
Fixed the trigger pattern to be consistent with the FACT data.
Location:
trunk/Mars/msimcamera
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msimcamera/MSimCalibrationSignal.cc

    r9578 r17734  
    246246
    247247    // Set trigger pattern according to the trigger type
    248     const UInt_t p = fRunHeader->IsCalibrationRun() ? MTriggerPattern::kCalibration : MTriggerPattern::kPedestal;
     248    const UInt_t p = fRunHeader->IsCalibrationRun() ? 0x100 : 0x400;
     249    //const UInt_t p = fRunHeader->IsCalibrationRun() ? MTriggerPattern::kCalibration : MTriggerPattern::kPedestal;
    249250    fEvtHeader->SetTriggerPattern(~(p | (p<<8)));
    250251    fEvtHeader->SetCalibrationPattern(0/*BIT(16)<<16*/); // CT1 Pulser, see MCalibrationPatternDecode
  • trunk/Mars/msimcamera/MSimTrigger.cc

    r17682 r17734  
    477477    fTrigger->SetReadyToSave();
    478478
    479     // Trigger pattern to be set
    480     // FIXME: Make flexible
    481     const UInt_t pat = (UInt_t)~(MTriggerPattern::kTriggerLvl1 | (MTriggerPattern::kTriggerLvl1<<8));
    482 
    483479    // Flag this event as triggered by the lvl1 trigger (FIXME?)
    484     fEvtHeader->SetTriggerPattern(pos<0 ? 0 : pat);
     480    fEvtHeader->SetTriggerPattern(pos<0 ? 0 : 4);
    485481    fEvtHeader->SetNumTrigLvl1((UInt_t)idx);
    486482    fEvtHeader->SetReadyToSave();
Note: See TracChangeset for help on using the changeset viewer.