1 #include "StMuMtdHeader.h"
2 #include "StEvent/StEvent.h"
3 #include "StEvent/StMtdHeader.h"
8 mTriggerTime1(0), mTriggerTime2(0), mShouldHaveRejectEvent(-1), mTpcSectorMask(0)
16 for(
int i=0; i<header->MAXFIBER; i++){
18 mFiberHeader1 = header->fiberHeader(i);
19 mFiberTriggerWord1 = header->fiberTriggerWord(i);
20 mTriggerTime1 = header->triggerTime(i);
23 mFiberHeader2 = header->fiberHeader(i);
24 mFiberTriggerWord2 = header->fiberTriggerWord(i);
25 mTriggerTime2 = header->triggerTime(i);
28 mShouldHaveRejectEvent = header->shouldHaveRejectEvent();
29 mTpcSectorMask = header->tpcSectorMask();
33 short StMuMtdHeader::fiberHeader(
int fiberId)
const {
34 if (fiberId==1)
return mFiberHeader1;
35 else if (fiberId==2)
return mFiberHeader2;
39 unsigned int StMuMtdHeader::fiberTriggerWord(
int fiberId)
const {
40 if (fiberId==1)
return mFiberTriggerWord1;
41 else if (fiberId==2)
return mFiberTriggerWord2;
45 unsigned int StMuMtdHeader::triggerTime(
int fiberId)
const {
46 if (fiberId==1)
return mTriggerTime1;
47 else if (fiberId==2)
return mTriggerTime2;
51 int StMuMtdHeader::shouldHaveRejectEvent()
const {
52 return mShouldHaveRejectEvent;
55 unsigned int StMuMtdHeader::tpcSectorMask()
const {
56 return mTpcSectorMask;