Changeset 10593 for trunk/FACT++/src
- Timestamp:
- 05/05/11 21:37:48 (14 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersFTM.cc
r10572 r10593 11 11 void FTM::Header::print(std::ostream &out) const 12 12 { 13 out << "State=" << fState;13 out << "State=" << std::dec << fState; 14 14 out << " Type=" << fType; 15 15 out << " (len=" << fDataSize << ")"; … … 30 30 void FTM::FtuList::print(std::ostream &out) const 31 31 { 32 out << "Number of boards responded: " << fNumBoards << " (";32 out << "Number of boards responded: " << std::dec << fNumBoards << " ("; 33 33 out << fNumBoardsCrate[0] << ", "; 34 34 out << fNumBoardsCrate[1] << ", "; … … 62 62 void FTM::DynamicData::print(std::ostream &out) const 63 63 { 64 out << "OnTime=" << fOnTimeCounter << " ";64 out << "OnTime=" << std::dec << fOnTimeCounter << " "; 65 65 out << "Temp=("; 66 66 out << fTempSensor[0] << ","; … … 112 112 out << "Dead time: " << fDeadTime*4+8 << "ns" << endl; 113 113 out << "Clock conditioner:"; 114 out << std::hex ;114 out << std::hex << setfill('0'); 115 115 for (int i=0; i<8; i++) 116 out << " " << fClockConditioner[i];116 out << " " << setw(8) << fClockConditioner[i]; 117 117 out << endl; 118 118 out << "Active FTUs: "; … … 137 137 out << " Delimiter = " << (fDelimiter=='@'?"ok":"wrong") << endl; 138 138 out << " Path = "; 139 out << (fSrcAddress &0x3) << ":" << (fSrcAddress >>2) << " --> "; 140 out << (fDestAddress&0x3) << ":" << (fDestAddress>>2) << endl; 139 if (fSrcAddress==0xc0) 140 out << "FTM(192)"; 141 else 142 out << "FTU(" << (fSrcAddress &0x3) << ":" << (fSrcAddress >>2) << ")"; 143 out << " --> "; 144 if (fDestAddress==0xc0) 145 out << "FTM(192)"; 146 else 147 out << "FTU(" << (fDestAddress&0x3) << ":" << (fDestAddress>>2) << ")"; 148 out << endl; 141 149 out << " FirmwareId = " << hex << fFirmwareId << endl; 142 150 out << " Command = " << hex << fCommand << endl; 143 151 out << " CRC counter = " << dec << fCrcErrorCounter << endl; 144 152 out << " CRC = " << hex << fCrcCheckSum << endl; 145 out << " Data: " << Converter::GetHex<unsigned int>(fData, 21, 0, false) << endl;153 out << " Data: " << Converter::GetHex<unsigned short>(fData, 0, false) << endl; 146 154 } -
trunk/FACT++/src/HeadersFTM.h
r10574 r10593 306 306 uint16_t fDelayTimeMarker; 307 307 uint16_t fDeadTime; 308 uint 16_t fClockConditioner[8]; // R0, R1, R8, R9, R11, R13, R14, R15308 uint32_t fClockConditioner[8]; // R0, R1, R8, R9, R11, R13, R14, R15 309 309 uint16_t fWindowPhysics; 310 310 uint16_t fWindowCalib; … … 319 319 std::vector<uint16_t> HtoN() const 320 320 { 321 return htoncpy(*this); 321 StaticData d(*this); 322 for (int i=0; i<8; i++) 323 Reverse(d.fClockConditioner+i); 324 325 return htoncpy(d); 322 326 } 323 327 … … 325 329 { 326 330 ntohcpy(vec, *this); 331 332 for (int i=0; i<8; i++) 333 Reverse(fClockConditioner+i); 327 334 } 328 335 … … 398 405 (uint64_t(d.fActiveFTU[2])<<20) | 399 406 (uint64_t(d.fActiveFTU[3])<<30)), 400 fTriggerInterval(d.fTriggerInterval *4+8),407 fTriggerInterval(d.fTriggerInterval), 401 408 fTriggerSeqLPint((d.fTriggerSequence)&0x1f), 402 409 fTriggerSeqLPext((d.fTriggerSequence>>5)&0x1f),
Note:
See TracChangeset
for help on using the changeset viewer.