34 #ifndef StFmsTriggerDetector_hh
35 #define StFmsTriggerDetector_hh
50 unsigned int nHit()
const;
51 unsigned int hit(
int line)
const;
52 unsigned short adc(
int crate,
int addr,
int dcard,
int dch);
53 unsigned short tdc(
int crate,
int addr,
int dcard,
int dch);
55 unsigned char DSM(
int ch)
const {
return mDSM[ch];}
56 unsigned char DSM01(
int ch)
const {
return mDSM01[ch];}
57 unsigned char DSM02(
int ch)
const {
return mDSM02[ch];}
58 unsigned short DSM1(
int ch)
const {
return mDSM1[ch];}
59 unsigned short DSM2(
int ch)
const {
return mDSM2[ch];}
65 unsigned short getNHT(
int)
const;
66 unsigned short getADR(
int)
const;
67 unsigned short getCRT(
int)
const;
68 unsigned short getADC(
int)
const;
69 unsigned short getTDC(
int)
const;
70 unsigned short getQT8(
int)
const;
71 unsigned short getCHA(
int)
const;
91 UInt_t mQTdata[mMaxLine];
93 Char_t mDSM01[mMaxDSM01];
94 Char_t mDSM02[mMaxDSM02];
95 UShort_t mDSM1[mMaxDSM1];
96 UShort_t mDSM2[mMaxDSM2];
99 unsigned short mADC[mMaxCrate][mMaxAddr][mMaxDCard][mMaxChan];
100 unsigned short mTDC[mMaxCrate][mMaxAddr][mMaxDCard][mMaxChan];
106 inline unsigned int StFmsTriggerDetector::nHit()
const {
return mNumQTdata;}
107 inline unsigned short StFmsTriggerDetector::getNHT(
int v)
const {
return (
unsigned short) (v & 0x000000FF); }
108 inline unsigned short StFmsTriggerDetector::getADR(
int v)
const {
return (
unsigned short) ((v & 0x001F0000) >> 16);}
109 inline unsigned short StFmsTriggerDetector::getCRT(
int v)
const {
return (
unsigned short) ((v & 0xFF000000) >> 24);}
110 inline unsigned short StFmsTriggerDetector::getADC(
int v)
const {
return (
unsigned short) (v & 0x00000FFF);}
111 inline unsigned short StFmsTriggerDetector::getTDC(
int v)
const {
return (
unsigned short) ((v & 0x001F0000) >> 16);}
112 inline unsigned short StFmsTriggerDetector::getQT8(
int v)
const {
return (
unsigned short) ((v & 0x18000000) >> 27);}
113 inline unsigned short StFmsTriggerDetector::getCHA(
int v)
const {
return (
unsigned short) ((v & 0xE0000000) >> 29);}