Changeset 10745
- Timestamp:
- 05/19/11 08:52:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersFTM.h
r10734 r10745 157 157 kMaxSequence = 0x1f, 158 158 kMaxDAC = 0xfff, 159 kMaxAddr = 0xfff, 159 160 kMaxPixelIdx = 1439, 160 161 kMaskSettings = 0xf, … … 171 172 kExt1 = 0x04, ///< External trigger signal 1 172 173 kVeto = 0x02, ///< Veto trigger decision / artifical triggers 173 // -===> ClockCond 174 kTimeMarker = 0x01, ///< Select clock conditioner frequency (1) / time marker (0) as output 174 kClockConditioner = 0x01, ///< Select clock conditioner frequency (1) / time marker (0) as output 175 175 }; 176 176 … … 238 238 void EnablePixel(int idx, bool enable) 239 239 { 240 const int board = idx%40;241 const int patch = (idx/ 40)/9;242 const int pixel = (idx/40)%9;240 const int pixel = idx%9; 241 const int patch = (idx/9)%4; 242 const int board = (idx/9)/4; 243 243 244 244 uint16_t &pix = fBoard[board/10][board%10].fEnable[patch]; … … 248 248 else 249 249 pix &= ~(1<<pixel); 250 } 251 252 bool Enabled(uint16_t idx) 253 { 254 const int pixel = idx%9; 255 const int patch = (idx/9)%4; 256 const int board = (idx/9)/4; 257 258 return (fBoard[board/10][board%10].fEnable[patch]>>pixel)&1; 250 259 } 251 260 … … 296 305 bool HasExt1() const { return fGeneralSettings & StaticData::kExt1; } 297 306 bool HasVeto() const { return fGeneralSettings & StaticData::kVeto; } 298 bool Has TimeMarker() const { return fGeneralSettings & StaticData::kTimeMarker; }307 bool HasClockConditioner() const { return fGeneralSettings & StaticData::kClockConditioner; } 299 308 300 309 bool IsActive(int i) const { return fActiveFTU&(uint64_t(1)<<i); }
Note:
See TracChangeset
for help on using the changeset viewer.