StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSvtHybridPixelsC.hh
1 /***************************************************************************
2  *
3  * $Id: StSvtHybridPixelsC.hh,v 1.1 2001/08/16 21:02:04 munhoz Exp $
4  *
5  * Author: Marcelo Munhoz
6  ***************************************************************************
7  *
8  * Description: SVT Hybrid Array of Pixels
9  *
10  ***************************************************************************
11  *
12  * $Log: StSvtHybridPixelsC.hh,v $
13  * Revision 1.1 2001/08/16 21:02:04 munhoz
14  * changing StObjArray to StStrArray. StSvtConfig reestructured. New classes for geometry DB
15  *
16  * Revision 1.3 2000/11/30 20:39:12 caines
17  * Changed to allow us of database
18  *
19  * Revision 1.1.1.1 2000/03/10 14:26:21 munhoz
20  * SVT Class Library
21  *
22  **************************************************************************/
23 
24 #ifndef STSVTHYBRIDPIXELSC_HH
25 #define STSVTHYBRIDPIXELSC_HH
26 
27 #include "TArrayC.h"
28 #include "StSvtHybridObject.hh"
29 
30 class StSvtHybridPixelsC: public StSvtHybridObject, public TArrayC
31 {
32 public:
34  StSvtHybridPixelsC(int barrel, int ladder, int wafer, int hybrid, int size = 0, unsigned char* x = 0);
35  virtual ~StSvtHybridPixelsC();
36 
39 
40  unsigned char getPixelContent(int anode, int time);
41  void addToPixel(int anode, int time, unsigned char x);
42  void addToPixel(int index, unsigned char x);
43  void addToPixel(int anode, int time, int x);
44  void addToPixel(int index, int x);
45  void addToPixel(int anode, int time, double x);
46  void addToPixel(int index, double x);
47 
48  int getNumberOfAnodes() {return mNumberOfAnodes;}
49  int getNumberOfTimeBins() {return mNumberOfTimeBins;}
50  int getTotalNumberOfPixels() {return mTotalNumberOfPixels;}
51  int getPixelIndex(int anode, int time);
52 
53  void setPedOffset(int offset){mPedOffset = offset;}
54  int getPedOffset(){return mPedOffset;}
55 
56  void reset();
57 
58 protected:
59 
60  int mNumberOfAnodes; // Number of Anodes in one hybrid (= 240)
61  int mNumberOfTimeBins; // Number of Time Bins in one hybrid (= 128)
62 
63  int mTotalNumberOfPixels; // Total Number of Pixels (= 240*128)
64 
65  int mPedOffset;
66 
67  ClassDef(StSvtHybridPixelsC,1)
68 };
69 
70 #endif