Changeset 11708 for trunk


Ignore:
Timestamp:
07/29/11 18:08:10 (13 years ago)
Author:
tbretz
Message:
Added light-pulser settings to the DimStaticData structure.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/HeadersFTM.h

    r11665 r11708  
    371371        uint16_t fTriggerSeqLPext;         // only 5bits used
    372372        uint16_t fTriggerSeqPed;           // only 5bits used
    373         //28
     373        // 28
     374        uint8_t  fEnableLPint;             /// Enable for LED group 1/2 (LightPulserEnable)
     375        uint8_t  fEnableLPext;             /// Enable for LED group 1/2 (LightPulserEnable)
     376        uint8_t  fIntensityLPint;          /// Intensity of LEDs (0-127)
     377        uint8_t  fIntensityLPext;          /// Intensity of LEDs (0-127)
     378        //32
    374379        uint16_t fMultiplicityPhysics;      // 0-40
    375380        uint16_t fMultiplicityCalib;        // 0-40
    376         //32
     381        //36
    377382        uint16_t fWindowPhysics;
    378383        uint16_t fWindowCalib;
    379         //36
     384        //40
    380385        uint16_t fDelayTrigger;
    381386        uint16_t fDelayTimeMarker;
    382387        uint32_t fDeadTime;
    383         //44
     388        //48
    384389        uint32_t fClockConditioner[8];
    385         //60
     390        //64
    386391        uint16_t fEnable[90];  // 160*9bit = 180byte
    387392        uint16_t fThreshold[160];
    388393        uint16_t fMultiplicity[40];     // N out of 4
    389394        uint16_t fPrescaling[40];
    390         // 640+60 = 700
     395        // 640+64 = 704
    391396
    392397        bool HasTrigger() const     { return fGeneralSettings & StaticData::kTrigger; }
     
    398403        bool HasVeto() const        { return fGeneralSettings & StaticData::kVeto; }
    399404        bool HasClockConditioner() const { return fGeneralSettings & StaticData::kClockConditioner; }
     405
     406        bool HasLPextG1() const { return fEnableLPext&StaticData::kGroup1; }
     407        bool HasLPextG2() const { return fEnableLPext&StaticData::kGroup2; }
     408        bool HasLPintG1() const { return fEnableLPint&StaticData::kGroup1; }
     409        bool HasLPintG2() const { return fEnableLPint&StaticData::kGroup2; }
    400410
    401411        bool IsActive(int i) const { return fActiveFTU&(uint64_t(1)<<i); }
     
    416426            fTriggerSeqLPext((d.fTriggerSequence)&0x1f),
    417427            fTriggerSeqPed((d.fTriggerSequence>>10)&0x1f),
     428            fEnableLPint(d.fEnableLPint),
     429            fEnableLPext(d.fEnableLPext),
     430            fIntensityLPint(d.fIntensityLPext),
     431            fIntensityLPext(d.fIntensityLPext),
    418432            fMultiplicityPhysics(d.fMultiplicityPhysics),
    419433            fMultiplicityCalib(d.fMultiplicityCalib),
Note: See TracChangeset for help on using the changeset viewer.