Changeset 10726 for trunk/FACT++
- Timestamp:
- 05/17/11 16:03:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersFTM.h
r10719 r10726 165 165 kTrigger = 0x80, ///< Physics trigger decision (PhysicTrigger) 166 166 kPedestal = 0x40, ///< Pedestal trigger (artifical) 167 kLP ext = 0x20, ///< Enable trigger decision after light pulse (CalibrationTrigger, LP1)168 kLP int = 0x10, ///< Enable artificial trigger after light pulse (LP2)167 kLPint = 0x20, ///< Enable artificial trigger after light pulse (LP2) 168 kLPext = 0x10, ///< Enable trigger decision after light pulse (CalibrationTrigger, LP1) 169 169 kExt2 = 0x08, ///< External trigger signal 2 170 170 kExt1 = 0x04, ///< External trigger signal 1 … … 227 227 228 228 void Enable(GeneralSettings type, bool enable) { 229 if (enable) fGeneralSettings |= uint16_t(type); else fGeneralSettings &= ~uint16_t(type); } 229 if (enable) 230 fGeneralSettings |= uint16_t(type); 231 else 232 fGeneralSettings &= ~uint16_t(type); } 230 233 231 234 bool IsEnabled(GeneralSettings type) { return fGeneralSettings&uint16_t(type); } 232 235 233 236 uint8_t GetSequencePed() const { return (fTriggerSequence>>10)&0x1f; } 234 uint8_t GetSequenceLP ext() const { return (fTriggerSequence>> 5)&0x1f; }235 uint8_t GetSequenceLP int() const { return (fTriggerSequence) &0x1f; }237 uint8_t GetSequenceLPint() const { return (fTriggerSequence>> 5)&0x1f; } 238 uint8_t GetSequenceLPext() const { return (fTriggerSequence) &0x1f; } 236 239 237 240 } __attribute__((__packed__)); … … 264 267 uint16_t fClockConditioner[8]; 265 268 //60 266 uint16_t fEnable[ 80]; // 160*9bit = 180byte269 uint16_t fEnable[90]; // 160*9bit = 180byte 267 270 uint16_t fThreshold[160]; 268 271 uint16_t fMultiplicity[40]; // N out of 4 … … 293 296 (uint64_t(d.fActiveFTU[3])<<30)), 294 297 fTriggerInterval(d.fTriggerInterval), 295 fTriggerSeqLPint((d.fTriggerSequence )&0x1f),296 fTriggerSeqLPext((d.fTriggerSequence >>5)&0x1f),298 fTriggerSeqLPint((d.fTriggerSequence>>5)&0x1f), 299 fTriggerSeqLPext((d.fTriggerSequence)&0x1f), 297 300 fTriggerSeqPed((d.fTriggerSequence>>10)&0x1f), 298 301 fMultiplicityPhysics(d.fMultiplicityPhysics), … … 316 319 317 320 fMultiplicity[i] = d[i].fDAC[4]; 318 fPrescaling[i] = d[i].fPrescaling ;321 fPrescaling[i] = d[i].fPrescaling+1; 319 322 } 320 bitcpy(fEnable, 80, src, 160, 9);323 bitcpy(fEnable, 90, src, 160, 9); 321 324 } 322 325
Note:
See TracChangeset
for help on using the changeset viewer.