StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSvtHybridStat2.hh
1 /***************************************************************************
2  *
3  * $Id: StSvtHybridStat2.hh,v 1.2 2000/07/03 02:07:54 perev Exp $
4  *
5  * Author: Marcelo Munhoz
6  ***************************************************************************
7  *
8  * Description: SVT Hybrid Pixel Statistic class used to calculate 2nd order pedestal correction
9  *
10  ***************************************************************************
11  *
12  * $Log: StSvtHybridStat2.hh,v $
13  * Revision 1.2 2000/07/03 02:07:54 perev
14  * StEvent: vector<TObject*>
15  *
16  * Revision 1.1.1.1 2000/03/10 14:26:21 munhoz
17  * SVT Class Library
18  *
19  **************************************************************************/
20 
21 #ifndef STSVTHYBRIDSTAT2_HH
22 #define STSVTHYBRIDSTAT2_HH
23 
24 #include "StSvtHybridObject.hh"
25 
26 class StSvtHybridPixels;
27 class StObjArray;
28 
30 {
31 public:
32  StSvtHybridStat2(int barrel, int ladder, int wafer, int hybrid);
33  virtual ~StSvtHybridStat2();
34 
35  StSvtHybridStat2& operator = (const StSvtHybridStat2&);
36 
37  StSvtHybridPixels* get0thMom(int time2) {return (StSvtHybridPixels*)m0->at(time2);}
38  StSvtHybridPixels* get1stMom(int time2) {return (StSvtHybridPixels*)m1->at(time2);}
39  StSvtHybridPixels* get2ndMom(int time2) {return (StSvtHybridPixels*)m2->at(time2);}
40 
41  float getMean(int anode, int time, int time2);
42  float getRMS(int anode, int time, int time2);
43 
44  void fillMom(int x, int anode, int time, int time2);
45 
46  void reset();
47 
48 protected:
49 
50  int mNumberOfCapacitors; // Number of Capacitors in the SCA (same as time bins)
51 
52  StObjArray* m0; // array of zeroth order statistical momentum
53  StObjArray* m1; // array of first order statistical momentum
54  StObjArray* m2; // array of second order statistical momentum
55 
56  ClassDef(StSvtHybridStat2,1)
57 };
58 
59 #endif