StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRpsRomanPot.h
1 /***************************************************************************
2  *
3  * $Id: StRpsRomanPot.h,v 2.1 2009/11/23 22:18:25 ullrich Exp $
4  *
5  * Author: Thomas Ullrich, Nov 2009
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StRpsRomanPot.h,v $
13  * Revision 2.1 2009/11/23 22:18:25 ullrich
14  * Initial Revision
15  *
16  **************************************************************************/
17 #ifndef StRpsRomanPot_hh
18 #define StRpsRomanPot_hh
19 
20 #include "StObject.h"
21 #include "StContainers.h"
22 #include "StRpsPlane.h"
23 
24 class StRpsCollection;
25 
26 class StRpsRomanPot : public StObject {
27 public:
28  StRpsRomanPot();
29  ~StRpsRomanPot();
30 
31  unsigned int romanPotId() const;
32  unsigned int numberOfPlanes() const;
33  unsigned int numberOfPlanesWithClusters() const;
34  unsigned int adc(unsigned int) const;
35  unsigned int tac(unsigned int) const;
36  unsigned char status() const;
37 
38  const StRpsPlane* plane(unsigned int) const;
39  StRpsPlane* plane(unsigned int);
40 
41  void setStatus(unsigned char);
42  void setAdc(unsigned int, unsigned int);
43  void setTac(unsigned int, unsigned int);
44 
45 protected:
46  void setRomanPotId(unsigned char);
47  friend class StRpsCollection;
48 
49 protected:
50  enum {mNumberOfPlanes = 4};
51  StRpsPlane mPlanes[mNumberOfPlanes];
52  UChar_t mRomanPotId; // 0-7
53  UChar_t mStatus;
54  UInt_t mAdc[2];
55  UInt_t mTac[2];
56 
57  ClassDef(StRpsRomanPot,1)
58 };
59 
60 #endif