Ignore:
Timestamp:
06/20/09 10:14:33 (15 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtrigger
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtrigger/MTriggerPattern.h

    r9326 r9462  
    1212public:
    1313    enum Pattern_t {
    14         kTriggerLvl1 = BIT(0), //  1:
    15         kCalibration = BIT(1), //  2: Pulse Trigger
    16         kTriggerLvl2 = BIT(2), //  4: LUT Pseudo Size selection
    17         kPedestal    = BIT(3), //  8:
    18         kPinDiode    = BIT(4), // 16:
    19         kSumTrigger  = BIT(5)  // 32: Flag for an event taken with sum trigger
    20         //kUnused      = BIT(6)
    21         //kUnused      = BIT(7)
     14//        kUndefined1  = BIT(0), //  1   1: Level 1 from L2 board
     15        kTriggerLvl1 = BIT(0), //  1   1: Level 1 from L2 board
     16        kCalibration = BIT(1), //  2   2: Pulse Trigger
     17        kTriggerLvl2 = BIT(2), //  4   4: LUT Pseudo Size selection
     18        kPedestal    = BIT(3), //  8   8: Artificial pedestal event
     19        kPinDiode    = BIT(4), // 10  16:
     20        kSumTrigger  = BIT(5), // 20  32: Flag for an event taken with sum trigger
     21//        kTriggerLvl1 = BIT(6), // 40  64: Trigger lvl1 directly from L1 without going through L2
     22        kUndefined1  = BIT(6), // 40  64: Trigger lvl1 directly from L1 without going through L2
     23        kUndefined2  = BIT(7)  // 80 128: Undefined?
    2224    };
    2325
  • trunk/MagicSoft/Mars/mtrigger/MTriggerPatternDecode.cc

    r7170 r9462  
    106106        return kTRUE;
    107107
    108     UInt_t pattern = ~fEvtHeader->GetTriggerID();
     108    const UInt_t pattern = ~fEvtHeader->GetTriggerID();
    109109
    110110    // The the trigger pattern is currently written with inverted bits,
     
    133133    fPattern->fUnprescaled = (pattern>>8) & 0xff;
    134134
     135    // This is a workaround for the new scheme in which L1TPU (the signal
     136    // comming directly from the L1 is connected, but the L1 (routed
     137    // over L2 is disconnected)
     138    if (!fRunHeader->IsMonteCarloRun() && fRunHeader->GetTelescopeNumber()==1 &&
     139        fRunHeader->GetRunNumber()>1006246)
     140    {
     141        fPattern->fPrescaled   |= (pattern>> 6)&1;
     142        fPattern->fUnprescaled |= (pattern>>14)&1;
     143    }
     144
    135145    return kTRUE;
    136146}
Note: See TracChangeset for help on using the changeset viewer.