42 #include "StMwcTriggerDetector.h"
43 #include "tables/St_dst_TrgDet_Table.h"
45 static const char rcsid[] =
"$Id: StMwcTriggerDetector.cxx,v 2.8 2018/03/15 22:00:50 smirnovd Exp $";
51 memset(mBeg,0,mEnd-mBeg);
54 StMwcTriggerDetector::StMwcTriggerDetector(
const dst_TrgDet_st& t)
56 memset(mBeg,0,mEnd-mBeg);
58 for(i=0; i<mMaxSectors; i++)
59 for(j=0; j<mMaxSubSectors; j++)
60 for(k=0; k<mMaxEventSamples; k++)
61 mMips[i][j][k] = t.nMwc[i][j][k];
63 for(i=0; i<mMaxAux; i++)
64 for(j=0; j<mMaxEventSamples; j++)
65 mAux[i][j] = t.mwcaux[i][j];
67 mNumberOfPreSamples = t.npre;
68 mNumberOfPostSamples = t.npost;
71 StMwcTriggerDetector::~StMwcTriggerDetector() {}
74 StMwcTriggerDetector::numberOfSectors()
const {
return mMaxSectors;}
77 StMwcTriggerDetector::numberOfSubSectors()
const {
return mMaxSubSectors;}
80 StMwcTriggerDetector::numberOfPreSamples()
const {
return mNumberOfPreSamples;}
83 StMwcTriggerDetector::numberOfPostSamples()
const {
return mNumberOfPostSamples;}
86 StMwcTriggerDetector::numberOfAuxWords()
const {
return mMaxAux;}
89 StMwcTriggerDetector::mips(
unsigned int i,
unsigned int j,
unsigned int k)
const
91 return mMips[i][j][k];
95 StMwcTriggerDetector::aux(
unsigned int i,
unsigned int j)
const
101 StMwcTriggerDetector::setMips(
unsigned int i,
unsigned int j,
unsigned int k,
float val)
103 mMips[i][j][k] = val;
107 StMwcTriggerDetector::setAux(
unsigned int i,
unsigned int j,
float val)
113 StMwcTriggerDetector::setNumberOfPreSamples(
unsigned int val)
115 mNumberOfPreSamples = val;
119 StMwcTriggerDetector::setNumberOfPostSamples(
unsigned int val)
121 mNumberOfPostSamples = val;