StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RawPixels.h
1 // \class RawPixels
2 // \author Jan Balewski
3 // $Id: RawPixels.h,v 1.2 2009/02/04 20:33:27 ogrebeny Exp $
4 
5 #ifndef RawPixels_h
6 #define RawPixels_h
7 
8 #include "TObject.h"
9 
10 class TObjArray;
11 class TH1F;
12 class TH2F;
13 class TFile;
14 class EztEmcRawData;
15 class StEEmcDb;
16 
17 
18 class RawPixels :public TObject{
19  public: // type of data conversion
20  enum convMode{kRawAdc=0, kPedSub, kPedAndGain};
21  private:
22  TH1F *hInfo;
23  TH1F **hPix;// ped subt spectra , for each tower/pre/post/smd
24  TH2F **hSmd; // strip vs. ADC
25  StEEmcDb *eeDb;
26  int c_x1,c_x2; // histo range
27  convMode c_convMode;
28 
29  public:
30  RawPixels(TObjArray*L,StEEmcDb*dbx);
31  void setLimits(int x1, int x2){c_x1=x1;c_x2=x2;}
32  void doRawAdc(){ c_convMode=kRawAdc;}
33  void doPedSub(){ c_convMode=kPedSub;}
34  void doPedAndGain(){ c_convMode=kPedAndGain;}
35  void initHisto();
36 
37  void sort(EztEmcRawData *eRaw);
38  TObjArray *HList;
39 
40  ClassDef(RawPixels,1)
41 };
42 
43 #endif
44 
45 // $Log: RawPixels.h,v $
46 // Revision 1.2 2009/02/04 20:33:27 ogrebeny
47 // Moved the EEMC database functionality from StEEmcDbMaker to StEEmcUtil/database. See ticket http://www.star.bnl.gov/rt2/Ticket/Display.html?id=1388
48 //
49 // Revision 1.1 2005/04/28 20:54:46 balewski
50 // start
51 //
52 // Revision 1.5 2004/04/16 17:25:22 balewski
53 // smarter peds
54 //
55 // Revision 1.4 2004/01/12 03:06:31 balewski
56 // *** empty log message ***
57 //
58 // Revision 1.3 2003/12/01 05:01:31 balewski
59 // *** empty log message ***
60 //
61 // Revision 1.2 2003/11/27 06:30:53 balewski
62 // *** empty log message ***
63 //
64 // Revision 1.1 2003/11/24 16:02:34 balewski
65 // start
66 //
67 
68