20 #include "StMtdHeader.h"
25 for(
int i=0; i<MAXFIBER; i++) {
27 mFiberTriggerWord[i] = 0;
30 mShouldHaveRejectEvent = -1;
34 StMtdHeader::~StMtdHeader() {
38 short StMtdHeader::fiberHeader(
int fiberId)
const {
39 return mFiberHeader[fiberId];
42 unsigned int StMtdHeader::fiberTriggerWord(
int fiberId)
const {
43 return mFiberTriggerWord[fiberId];
47 unsigned int StMtdHeader::triggerTime(
int fiberId)
const {
48 return mTriggerTime[fiberId];
51 int StMtdHeader::shouldHaveRejectEvent()
const {
52 return mShouldHaveRejectEvent;
55 unsigned int StMtdHeader::tpcSectorMask()
const {
56 return mTpcSectorMask;
59 void StMtdHeader::setFiberHeader(
int fiberId,
short val) {
60 mFiberHeader[fiberId] = val;
63 void StMtdHeader::setFiberTriggerWord(
int fiberId,
unsigned int val) {
64 mFiberTriggerWord[fiberId] = val;
67 void StMtdHeader::setTriggerTime(
unsigned int tdc,
int fiberId) {
68 mTriggerTime[fiberId] = tdc;
71 void StMtdHeader::setShouldHaveRejectEvent(
int reject) {
72 mShouldHaveRejectEvent = reject;
75 void StMtdHeader::setTpcSectorMask(
unsigned int mask) {
76 mTpcSectorMask = mask;