| 32 |
|
|
| 33 |
|
|
| 34 |
static const int fPSCUbuffer = 8; |
static const int fPSCUbuffer = 8; |
| 35 |
static const int fTRIGGERbuffer = 153; //(bytes) |
static const int fTRIGGERbuffer = 152; //(bytes) |
| 36 |
static const int fTOFbuffer = 276; //(bytes) |
static const int fTOFbuffer = 276; //(bytes) |
| 37 |
|
static const int fRunHeaderbuffer = 27; // ?? |
| 38 |
|
static const int fRunTrailerbuffer = 17; |
| 39 |
static const int fACbuffer = 128; |
static const int fACbuffer = 128; |
| 40 |
static const int fNDbuffer = 6; |
static const int fNDbuffer = 6; |
| 41 |
static const int fS4buffer = 3; |
static const int fS4buffer = 3; |
| 71 |
|
|
| 72 |
UShort_t fDataPSCU[fPSCUbuffer]; |
UShort_t fDataPSCU[fPSCUbuffer]; |
| 73 |
UInt_t fCounter; |
UInt_t fCounter; |
| 74 |
|
UInt_t fCounterPhys; |
| 75 |
UInt_t fOBT; |
UInt_t fOBT; |
| 76 |
|
|
| 77 |
UShort_t fDataPadding[fPADbuffer]; |
UShort_t fDataPadding[fPADbuffer]; |
| 78 |
UInt_t fPadding; |
UInt_t fPadding; |
| 79 |
|
|
| 80 |
UChar_t fDataTrigger[fTRIGGERbuffer]; |
UShort_t fDataRunHeader[fRunHeaderbuffer]; |
| 81 |
|
UShort_t fDataRunTrailer[fRunTrailerbuffer]; |
| 82 |
|
|
| 83 |
|
UChar_t fDataTrigger[fTRIGGERbuffer]; |
| 84 |
UChar_t fDataTof[fTOFbuffer]; |
UChar_t fDataTof[fTOFbuffer]; |
| 85 |
|
|
| 86 |
UShort_t fDataAC[fACbuffer]; |
UShort_t fDataAC[fACbuffer]; |
| 380 |
|
|
| 381 |
|
|
| 382 |
|
|
| 383 |
void DigitizePSCU(UInt_t, UChar_t); // digitizes the CPU header |
// void DigitizePSCU(UInt_t, UChar_t); // digitizes the CPU header |
| 384 |
|
void DigitizePSCU(UInt_t, UChar_t, UShort_t*); // digitizes the CPU header |
| 385 |
void AddPadding(); |
void AddPadding(); |
| 386 |
void DigitizeTRIGGER(); // digitizes the trigger |
void DigitizeRunHeader(); |
| 387 |
|
void DigitizeRunTrailer(); |
| 388 |
|
// void DigitizeTRIGGER(); // SO nov'07: included in DigitizeTOF |
| 389 |
Int_t DigitizeTOF(); // digitizes the tof |
Int_t DigitizeTOF(); // digitizes the tof |
| 390 |
void DigitizeAC(); // digitizes the anti-counter |
void DigitizeAC(); // digitizes the anti-counter |
| 391 |
void DigitizeND(); // digitizes the ND |
void DigitizeND(); // digitizes the ND |
| 410 |
UChar_t Bin2GrayTof(UChar_t, UChar_t); |
UChar_t Bin2GrayTof(UChar_t, UChar_t); |
| 411 |
void Crc8Tof(UChar_t*, UChar_t*); |
void Crc8Tof(UChar_t*, UChar_t*); |
| 412 |
|
|
| 413 |
|
UChar_t EvaluateCrcTrigger(UChar_t*, Int_t); |
| 414 |
|
|
| 415 |
UShort_t* GetDataAC(){return(fDataAC);}; // retrieve AC data (not used right now) |
UShort_t* GetDataAC(){return(fDataAC);}; // retrieve AC data (not used right now) |
| 416 |
|
|
| 417 |
UShort_t* GetDataCALO(){return(fDataCALO);}; // retrieve AC data (not used right now) |
UShort_t* GetDataCALO(){return(fDataCALO);}; // retrieve AC data (not used right now) |
| 427 |
Float_t SaturationTrack(Float_t ADC); // Saturation simulation |
Float_t SaturationTrack(Float_t ADC); // Saturation simulation |
| 428 |
// end methods for Tracker |
// end methods for Tracker |
| 429 |
|
|
| 430 |
|
void WriteRunHeader(); |
| 431 |
|
void WriteRunTrailer(); |
| 432 |
void WriteData(); // writes data to file |
void WriteData(); // writes data to file |
| 433 |
void ReadData(); |
void ReadData(); |
| 434 |
|
|