StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMwcTriggerDetector.h
1 
5 /***************************************************************************
6  *
7  * $Id: StMwcTriggerDetector.h,v 2.5 2007/07/11 23:06:45 perev Exp $
8  *
9  * Author: Thomas Ullrich, Sep 1999
10  ***************************************************************************
11  *
12  * Description:
13  *
14  ***************************************************************************
15  *
16  * $Log: StMwcTriggerDetector.h,v $
17  * Revision 2.5 2007/07/11 23:06:45 perev
18  * Cleanup+fix StXXXTriggerDetector
19  *
20  * Revision 2.4 2002/02/22 22:56:49 jeromel
21  * Doxygen basic documentation in all header files. None of this is required
22  * for QM production.
23  *
24  * Revision 2.3 2001/04/05 04:00:39 ullrich
25  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
26  *
27  * Revision 2.2 2000/05/09 10:22:28 ullrich
28  * Updated to cope with modified dst_TrgDet.idl
29  *
30  * Revision 2.1 1999/10/13 19:43:29 ullrich
31  * Initial Revision
32  *
33  **************************************************************************/
34 #ifndef StMwcTriggerDetector_hh
35 #define StMwcTriggerDetector_hh
36 #include "StObject.h"
37 
38 class dst_TrgDet_st;
39 
41 public:
43  StMwcTriggerDetector(const dst_TrgDet_st&);
44  // StMwcTriggerDetector(const StMwcTriggerDetector&); use default
45  // StMwcTriggerDetector& operator=(const StMwcTriggerDetector&); use default
46  virtual ~StMwcTriggerDetector();
47 
48  unsigned int numberOfSectors() const;
49  unsigned int numberOfSubSectors() const;
50  unsigned int numberOfPreSamples() const;
51  unsigned int numberOfPostSamples() const;
52  unsigned int numberOfAuxWords() const;
53 
54  float mips(unsigned int sec, unsigned int subsec, unsigned int evt = 0) const;
55  float aux(unsigned int, unsigned int evt = 0) const;
56 
57  void setMips(unsigned int, unsigned int, unsigned int, float);
58  void setAux(unsigned int, unsigned int, float);
59  void setNumberOfPreSamples(unsigned int);
60  void setNumberOfPostSamples(unsigned int);
61 
62 protected:
63  enum {mMaxSectors = 24,
64  mMaxSubSectors = 4,
65  mMaxEventSamples = 11,
66  mMaxAux = 32};
67  char mBeg[1];
68  Float_t mMips[mMaxSectors][mMaxSubSectors][mMaxEventSamples];
69  Float_t mAux[mMaxAux][mMaxEventSamples];
70  Int_t mNumberOfPreSamples;
71  Int_t mNumberOfPostSamples;
72  char mEnd[1];
73 
74  ClassDef(StMwcTriggerDetector,2)
75 };
76 #endif