StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEemcRaw.h
1 
12 #ifndef STAR_StEemcRaw
13 #define STAR_StEemcRaw
14 
15 #include "TObject.h"
16 
17 class StEEmcDb;
18 class StEEMCReader ;
19 class TH1F;
20 class StEvent;
21 class StEmcRawMaker;
22 
23 class StEemcRaw : public TObject
24 {
25 private:
26 
27  StEEmcDb *mDb;
28  TH1F *hs[8];
29  Bool_t copyRawData(StEEMCReader *eeReader, StEmcRawData *raw);
30  Bool_t copyRawData(StEmcRawMaker* maker, StEmcRawData *raw);
31  Bool_t headersAreSick(StEmcRawMaker* maker, StEmcRawData *raw, int token, int runId, int time);
32  Bool_t headersAreSick(StEEMCReader *eeReader, StEmcRawData *raw, int token, int runId, int time);
33  Bool_t towerDataAreSick(StEmcRawData* raw);
34  void raw2pixels(StEvent* mEvent);
35 
36 protected:
37 public:
38  StEemcRaw();
39  ~StEemcRaw();
40  Bool_t make(StEEMCReader *eeReader,StEvent* mEvent);
41  Bool_t make(StEmcRawMaker* maker, StEvent* mEvent);
42  void initHisto();
43 
44  void setDb(StEEmcDb *aa)
45  {
46  mDb=aa;
47  }
48 
49  ClassDef(StEemcRaw,0)
50 };
51 
52 #endif
53 
54 // $Id: StEemcRaw.h,v 1.8 2011/01/04 19:04:08 stevens4 Exp $
55 
56 /*
57  * $Log: StEemcRaw.h,v $
58  * Revision 1.8 2011/01/04 19:04:08 stevens4
59  * added event time to EEMC header check
60  *
61  * Revision 1.7 2009/02/04 21:05:42 kocolosk
62  * Refactor StEEmcDb(Maker), new location for StEmcDecoder. Fixes RT #1388.
63  *
64  * Revision 1.6 2009/01/27 19:58:36 mattheww
65  * Updates to StEmcRawMaker to be compatible with 2009 DAQ Format
66  *
67  * Revision 1.5 2008/01/10 20:49:59 balewski
68  * now more warnings if ESMD is not in the run, thanks Pibero
69  *
70  * Revision 1.4 2006/01/16 11:12:00 suaide
71  * tower map bug fixed and astyle run
72  *
73  * Revision 1.3 2005/02/03 02:35:11 balewski
74  * accomodate MAPMT firmware change in 2005
75  *
76  * Revision 1.2 2004/10/21 00:01:50 suaide
77  * small changes in histogramming and messages for BEMC
78  * Complete version for EEMC done by Jan Balewski
79  *
80  * Revision 1.1 2004/10/19 23:48:49 suaide
81  * Initial implementation of the endcap detector done by Jan Balewski
82  *
83  *
84  */
85 
void setDb(StEEmcDb *aa)
DB-reader must exist.
Definition: StEemcRaw.h:44