17 #include "StDaqLib/GENERIC/EventReader.hh"
18 #include "StDaqLib/GENERIC/RecHeaderFormats.hh"
19 #include "StDaqLib/GENERIC/swaps.hh"
26 INT32 bunchCrossingNumber1;
27 INT32 bunchCrossingNumber2;
33 INT16 dsmRawDataAddress;
34 unsigned char busyBits;
35 unsigned char trgFlags;
41 INT16 lengthTriggerSummary;
42 INT16 trgSummaryFormat;
43 unsigned char trgL0[2];
46 unsigned char trgL1[2];
49 unsigned char trgL2[2];
54 INT16 lengthTriggerRaw;
56 unsigned char trgCTB[2];
58 unsigned char trgMWZ[2];
60 unsigned char trgEMC[2];
70 int swapHerb2bytes(
unsigned short *
data,
int number);
71 int swapHerb4bytes(
unsigned int *data,
int number);
72 int swapHerb4bytes(
unsigned long *data,
int number);
74 int swapHerb2bytes(
short *data,
int number)
75 {
return swapHerb2bytes((
unsigned short*)data,number);}
76 int swapHerb4bytes(
int *data,
int number)
77 {
return swapHerb4bytes((
unsigned int *)data,number);}
78 int swapHerb4bytes(
long *data,
int number)
79 {
return swapHerb4bytes((
unsigned long *)data,number);}
82 int HerbSwap2003(
char*);
83 int HerbSwap2004(
char*);
84 int HerbSwap2005(
char*);
95 if (pBankUnp)
delete[] pBankUnp;
101 int GetErr(){
return mErr;}
112 void dumpWordsToScreenInHexAndExit(
int);
113 void SanityCheck(
int);
114 void SanityCheck2000(
int);
115 void SanityCheck2003(
char*,
int);
116 void SanityCheck2004(
char*,
int);
117 void SanityCheck2005(
char*,
int);
118 void SanityCheck2007(
char*,
int);
119 void SanityCheck2008(
char*,
int);
121 int Swap2007_DescSum(
char*);
122 int Swap2007_Raw(
char*);
124 int Swap2008_TrgTowerTrnfer(
char*);
125 int Swap2008_DescSum(
char*);
126 int Swap2008_Raw(
char*);
Bank_TRGD * pTRGD
Size of unpacked bank space.
unsigned int sizeUnp
Pointer to keep workspace for unpacked trigger struct.
char * PrintHelp(char *, int)
for 2007 and later see TRG_Reader::UnpackTrg below
int YearOfData(char *)
This routine also exists in St_trg_Maker.