StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMtdHeader.h
1 
4 /***************************************************************************
5  *
6  * $Id: StMtdHeader.h,v 2.3 2015/04/24 17:51:00 ullrich Exp $
7  *
8  * Author: Frank Geurts, April 25, 2011
9  ***************************************************************************
10  *
11  * Description:
12  * Barrel MTD header data, contains the MTD data header
13  *
14  ***************************************************************************
15  *
16  * $Log: StMtdHeader.h,v $
17  * Revision 2.3 2015/04/24 17:51:00 ullrich
18  * Added data member mTpcSectorMask and mShouldHaveRejectEvent incl. access fcts.
19  *
20  * Revision 2.2 2013/04/06 12:18:35 ullrich
21  * Increase MAXFIBER from 1 to 2.
22  *
23  * Revision 2.1 2011/04/25 21:24:02 ullrich
24  * Initial Revision.
25  *
26  **************************************************************************/
27 #ifndef StMtdHeader_hh
28 #define StMtdHeader_hh
29 
30 #include <Stiostream.h>
31 #include "StObject.h"
32 #include "StEnumerations.h"
33 
34 class StMtdHeader : public StObject {
35 public:
36  enum {MAXFIBER=2};
37 
38  StMtdHeader();
39  ~StMtdHeader();
40 
41  short fiberHeader(int fiberId) const;
42  unsigned int fiberTriggerWord(int fiberId) const;
43  unsigned int triggerTime(int fiberId) const;
44  int shouldHaveRejectEvent() const;
45  unsigned int tpcSectorMask() const;
46 
47  void setFiberHeader(int fiberId, short val);
48  void setFiberTriggerWord(int fiberId, unsigned int val);
49  void setTriggerTime(unsigned int tdc, int fiberId);
50  void setShouldHaveRejectEvent(int reject);
51  void setTpcSectorMask(unsigned int mask);
52 
53 protected:
54  Short_t mFiberHeader[MAXFIBER];
55  UInt_t mFiberTriggerWord[MAXFIBER];
56  UInt_t mTriggerTime[MAXFIBER];
57  Int_t mShouldHaveRejectEvent; // indication of event status in filtering
58  // 0 - events not triggered di-muon
59  // 1 - events should have been rejected
60  // if only triggered by di-muon
61  // 2 - events pass filtering cuts
62  UInt_t mTpcSectorMask; // Mask of TPC sectors for tracking in the first iteration
63 
64  ClassDef(StMtdHeader,2)
65 };
66 
67 #endif