52 #ifndef StL0Trigger_hh
53 #define StL0Trigger_hh
54 #include "StTrigger.h"
56 class dst_L0_Trigger_st;
63 void set(
const dst_L0_Trigger_st*);
64 void set(
const dst_TrgDet_st *);
70 unsigned int coarsePixelArraySize();
71 int coarsePixelArray(
unsigned int);
72 int mwcCtbMultiplicity()
const;
73 int mwcCtbDipole()
const;
74 int mwcCtbTopology()
const;
75 int mwcCtbMoment()
const;
76 unsigned short dsmInput()
const;
77 unsigned char detectorBusy()
const;
78 unsigned short triggerToken()
const;
79 unsigned short dsmAddress()
const;
80 unsigned char addBits()
const;
81 unsigned int lastDsmArraySize()
const;
82 unsigned short lastDsmArray(
unsigned int);
83 unsigned int bcDataArraySize()
const;
84 unsigned short bcDataArray(
unsigned int);
86 unsigned int bunchCrossingId7bit(
int)
const;
87 unsigned int bunchCrossingId()
const;
89 int spinBits(
int)
const;
90 int spinBitYellowUp(
int)
const;
91 int spinBitYellowDown(
int)
const;
92 int spinBitBlueUp(
int)
const;
93 int spinBitBlueDown(
int)
const;
95 void setMwcCtbMultiplicity(
int);
96 void setMwcCtbDipole(
int);
97 void setMwcCtbTopology(
int);
98 void setMwcCtbMoment(
int);
99 void setCoarsePixelArray(
unsigned int,
int);
100 void setDsmInput(
unsigned short);
101 void setDetectorBusy(
unsigned char);
102 void setTriggerToken(
unsigned short);
103 void setDsmAddress(
unsigned short);
104 void setAddBits(
unsigned char);
105 void setLastDsmArray(
unsigned int,
unsigned short);
106 void setBcDataArray(
unsigned int,
unsigned short);
109 enum {mMaxPixels = 32, mMaxLastDsm = 8, mMaxBcData = 16};
112 Int_t mCoarsePixelArray[mMaxPixels];
113 Int_t mMwcCtbMultiplicity;
115 Int_t mMwcCtbTopology;
118 UChar_t mDetectorBusy;
119 UShort_t mTriggerToken;
120 UShort_t mDsmAddress;
122 UShort_t mLastDsmArray[mMaxLastDsm];
123 UShort_t mBcDataArray[mMaxBcData];