Changeset 11348
- Timestamp:
- 07/11/11 16:16:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersFTM.h
r11300 r11348 274 274 } 275 275 276 void EnableAllPixel() 277 { 278 for (int c=0; c<4; c++) 279 for (int b=0; b<10; b++) 280 for (int p=0; p<4; p++) 281 fBoard[c][b].fEnable[p] = 0x1f; 282 } 283 276 284 bool Enabled(uint16_t idx) const 277 285 { … … 286 294 uint8_t GetSequenceLPint() const { return (fTriggerSequence>> 5)&0x1f; } 287 295 uint8_t GetSequenceLPext() const { return (fTriggerSequence) &0x1f; } 296 297 void SetSequence(uint8_t ped, uint8_t lpint, uint8_t lpext) 298 { 299 fTriggerSequence = ((ped&0x1f)<<10)|((lpint&0x1f)<<5)|(lpext&0x1f); 300 301 Enable(kPedestal, ped >0); 302 Enable(kLPext, lpext>0); 303 Enable(kLPint, lpint>0); 304 } 305 306 void SetClockRegister(const uint64_t reg[]) 307 { 308 for (int i=0; i<8; i++) 309 fClockConditioner[i] = reg[i]; 310 } 311 312 void SetPrescaling(uint16_t val) 313 { 314 for (int c=0; c<4; c++) 315 for (int b=0; b<10; b++) 316 fBoard[c][b].fPrescaling = val; 317 } 288 318 289 319 } __attribute__((__packed__));
Note:
See TracChangeset
for help on using the changeset viewer.