StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEqaSorterC.h
1 // \class EEqaSorterC
2 // \author Jan Balewski, Hal Spinka
3 // $Id: EEqaSorterC.h,v 1.4 2009/02/24 04:07:46 ogrebeny Exp $
4 
5 #ifndef EEqaSorterC_h
6 #define EEqaSorterC_h
7 
8 #include "TObject.h"
9 #include "StEEmcUtil/EEfeeRaw/EEdims.h"
10 
11 class TObjArray;
12 
13 class TH1F;
14 class TH2F;
15 class EztEmcRawData;
16 class StEEmcDb;
17 
18 class EEqaSorterC :public TObject{
19 
20 private:
21  enum {mxh=4};
22  TH2F *h2D[mxh];
23  TH1F *hMult[mxh];
24  TH2F *hMAPMT;
25  TH1F *hSmd[MaxSectors][MaxSmdPlains]; // SMD hits by plane
26  TH1F *hnHSmd[MaxSectors][MaxSmdPlains]; // frequency distr. of smd hits
27 
28  int adcThrTw,adcThrPrs,adcThrPost,adcThrSmd; // tresholds for frequency plots
29 
30  StEEmcDb *eeDb;
31 
32 public:
33  EEqaSorterC(StEEmcDb*dbx);
34  virtual ~EEqaSorterC();
35 
36  void initHisto(TObjArray *HList);
37  void initRun();
38  void sort(const EztEmcRawData *t, const EztEmcRawData *s, int ver);
39 
40  void sortTower(const EztEmcRawData *t);
41  void sortMapmt(const EztEmcRawData *s, int ver);
42 
43  void saveHisto(TFile *f) const;
44  void resetHisto();
45 
46  ClassDef(EEqaSorterC,1)
47 };
48 
49 #endif
50 
51 // $Log: EEqaSorterC.h,v $
52 // Revision 1.4 2009/02/24 04:07:46 ogrebeny
53 // Fixed part of the trigger histograms
54 //
55 // Revision 1.3 2009/02/04 20:33:27 ogrebeny
56 // Moved the EEMC database functionality from StEEmcDbMaker to StEEmcUtil/database. See ticket http://www.star.bnl.gov/rt2/Ticket/Display.html?id=1388
57 //
58 // Revision 1.2 2009/01/23 00:14:50 ogrebeny
59 // Inherited EEmcDb from StEEmcDbMaker to fix run-time bug http://www.star.bnl.gov/rt2/Ticket/Display.html?id=1378
60 //
61 // Revision 1.1 2005/04/28 20:54:46 balewski
62 // start
63 //
64 // Revision 1.5 2004/02/17 03:09:18 balewski
65 // *** empty log message ***
66 //
67 // Revision 1.4 2004/01/29 17:23:14 balewski
68 // fix for BTOW
69 //
70 // Revision 1.3 2004/01/27 16:29:39 balewski
71 // reset added
72 //
73 // Revision 1.7 2004/01/21 18:53:33 spinka
74 // Various problems fixed for towers. More remain.
75 //