StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMtdTriggerDetector.h
1 /***************************************************************************
2  *
3  * $Id: StMtdTriggerDetector.h,v 2.1 2007/07/02 20:21:55 ullrich Exp $
4  *
5  * Author: Akio Agawa, July 2007
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StMtdTriggerDetector.h,v $
13  * Revision 2.1 2007/07/02 20:21:55 ullrich
14  * Initial Revision.
15  *
16  **************************************************************************/
17 #ifndef StMtdTriggerDetector_hh
18 #define StMtdTriggerDetector_hh
19 #include "StObject.h"
20 #include "StEnumerations.h"
21 
22 class StTriggerData;
23 
25 public:
28  virtual ~StMtdTriggerDetector();
29 
30  unsigned int numberOfMtdCounters() const;
31  unsigned short adc(StBeamDirection eastwest, unsigned int pmt) const;
32  unsigned short tdc(StBeamDirection eastwest, unsigned int pmt) const;
33 
34  void setAdc(StBeamDirection eastwest, unsigned int pmt, unsigned short v);
35  void setTdc(StBeamDirection eastwest, unsigned int pmt, unsigned short v);
36 
37 protected:
38  enum {mMaxMtdCounter=8};
39  unsigned short mADC[2][mMaxMtdCounter];
40  unsigned short mTDC[2][mMaxMtdCounter];
41 
42  ClassDef(StMtdTriggerDetector,1)
43 };
44 #endif