StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMtdHeader.cxx
1 /***************************************************************************
2  *
3  * $Id: StMtdHeader.cxx,v 2.2 2015/04/24 17:51:00 ullrich Exp $
4  *
5  * Author: Frank Geurts, April 25, 2011
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StMtdHeader.cxx,v $
13  * Revision 2.2 2015/04/24 17:51:00 ullrich
14  * Added data member mTpcSectorMask and mShouldHaveRejectEvent incl. access fcts.
15  *
16  * Revision 2.1 2011/04/25 21:24:02 ullrich
17  * Initial Revision.
18  *
19  **************************************************************************/
20 #include "StMtdHeader.h"
21 
22 ClassImp(StMtdHeader)
23 
25  for(int i=0; i<MAXFIBER; i++) {
26  mFiberHeader[i] = -1;
27  mFiberTriggerWord[i] = 0;
28  mTriggerTime[i] = 0;
29  }
30  mShouldHaveRejectEvent = -1;
31  mTpcSectorMask = 0;
32 }
33 
34 StMtdHeader::~StMtdHeader() {
35  /* no op */
36 }
37 
38 short StMtdHeader::fiberHeader(int fiberId) const {
39  return mFiberHeader[fiberId];
40 }
41 
42 unsigned int StMtdHeader::fiberTriggerWord(int fiberId) const {
43  return mFiberTriggerWord[fiberId];
44 }
45 
46 
47 unsigned int StMtdHeader::triggerTime(int fiberId) const {
48  return mTriggerTime[fiberId];
49 }
50 
51 int StMtdHeader::shouldHaveRejectEvent() const {
52  return mShouldHaveRejectEvent;
53 }
54 
55 unsigned int StMtdHeader::tpcSectorMask() const {
56  return mTpcSectorMask;
57 }
58 
59 void StMtdHeader::setFiberHeader(int fiberId, short val) {
60  mFiberHeader[fiberId] = val;
61 }
62 
63 void StMtdHeader::setFiberTriggerWord(int fiberId, unsigned int val) {
64  mFiberTriggerWord[fiberId] = val;
65 }
66 
67 void StMtdHeader::setTriggerTime(unsigned int tdc, int fiberId) {
68  mTriggerTime[fiberId] = tdc;
69 }
70 
71 void StMtdHeader::setShouldHaveRejectEvent(int reject) {
72  mShouldHaveRejectEvent = reject;
73 }
74 
75 void StMtdHeader::setTpcSectorMask(unsigned int mask) {
76  mTpcSectorMask = mask;
77 }