StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
l3TrgReaderV21.cxx
1 #include "l3TrgReader.h"
2 #include "trgStructures.h"
3 
4 #include "l3Swap.h"
5 
6 #include <string.h>
7 
8 int l3TrgReader::readV21(void *buffer)
9 {
10  TrgDataType *trg = (TrgDataType *)buffer;
11 
12  bunchXing_hi = swap32(trg->EvtDesc.bunchXing_hi);
13  bunchXing_lo = swap32(trg->EvtDesc.bunchXing_lo);
14 
15  token = swap16(trg->EvtDesc.TrgToken);
16  triggerWord = swap16(trg->EvtDesc.TriggerWord);
17  physicsWord = swap16(trg->EvtDesc.physicsWord);
18 
19  memcpy(ZDC, trg->rawTriggerDet[0].ZDC, 16);
20  memcpy(CTB, trg->rawTriggerDet[0].CTB, 256);
21 
22  l2Result = swap32(trg->TrgSum.L2Sum[0]);
23 
24  return 0;
25 }