StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEmcRawMaker.h
1 // $Id: StEmcRawMaker.h,v 1.10 2014/08/06 11:43:07 jeromel Exp $
2 
43 #ifndef STAR_StEmcRawMaker
44 #define STAR_StEmcRawMaker
45 
46 #include "StMaker.h"
47 #include "StRTSBaseMaker.h"
48 #include "TH1.h"
49 #include "TH2.h"
50 #include "tables/St_controlADCtoE_Table.h"
51 #include "StBemcRaw.h"
52 #include "defines.h"
53 
54 class StEmcCollection;
55 class StEmcDecoder;
56 class StEmcGeom;
57 class StEmcRawData;
58 class StEvent;
59 
60 class StEEmcDb;
61 class StEemcRaw;
62 
64 {
65 protected:
66  StEvent* mEvent;
67  StBemcRaw* mBemcRaw;
68  StEemcRaw* mEemcRaw;
70 
71  void fillHistograms();
72  Bool_t prepareEnvironment();
73  Bool_t makeBemc();
74  Bool_t makeEemc();
75 
76 public:
77  StEmcRawMaker(const char *name="EmcRaw");
78  virtual ~StEmcRawMaker();
79  virtual Int_t Init();
80  virtual Int_t InitRun(Int_t runumber);
81  virtual Int_t Make();
82  virtual Int_t Finish();
83 
84  StRtsTable* Dta()
85  {
86  return DaqDta();
87  }
88 
89  StRtsTable* GetDaqElement(const char *elementPath)
90  {
91  return GetNextDaqElement(elementPath);
92  }
93 
94 
96  {
97  return mBemcRaw;
98  }
99  void setPrint(Bool_t a);
100 
101  virtual const char * GetCVS() const
102  {
103  static const char cvs[]="Tag $Name: $ $Id: StEmcRawMaker.h,v 1.10 2014/08/06 11:43:07 jeromel Exp $ built " __DATE__ " " __TIME__ ;
104  return cvs;
105  }
106 
107  ClassDef(StEmcRawMaker, 1)
108 };
109 
110 #endif
111 
112 // $Log: StEmcRawMaker.h,v $
113 // Revision 1.10 2014/08/06 11:43:07 jeromel
114 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
115 //
116 // Revision 1.9 2009/02/04 21:05:42 kocolosk
117 // Refactor StEEmcDb(Maker), new location for StEmcDecoder. Fixes RT #1388.
118 //
119 // Revision 1.8 2009/01/27 19:58:36 mattheww
120 // Updates to StEmcRawMaker to be compatible with 2009 DAQ Format
121 //
122 // Revision 1.7 2008/03/27 19:54:16 genevb
123 // Utilize new BFC option for GoptEMC for controlADCtoE table
124 //
125 // Revision 1.6 2007/01/22 19:13:37 kocolosk
126 // use STAR logger for all output
127 //
128 // Revision 1.5 2006/01/16 11:12:00 suaide
129 // tower map bug fixed and astyle run
130 //
131 // Revision 1.4 2004/10/21 00:01:50 suaide
132 // small changes in histogramming and messages for BEMC
133 // Complete version for EEMC done by Jan Balewski
134 //
135 // Revision 1.3 2004/10/19 23:48:49 suaide
136 // Initial implementation of the endcap detector done by Jan Balewski
137 //
138 // Revision 1.2 2004/10/19 17:53:00 suaide
139 // code clean up
140 //
141 // Revision 1.1 2004/10/18 18:20:07 suaide
142 // New Maker. Will replace StEmcADCtoEMaker in production.
143 // It reads only DAQ structures. Output is StEvent.
144 //
145 //
virtual ~StEmcRawMaker()
StEmcRawMaker destructor.
void fillHistograms()
Fill QA histograms.
StRtsTable * GetNextDaqElement(const char *elementPath)
Query the STAR production chain for the DAQ data.
Class StRTSBaseMaker - is an abstract StMaker to define the interface to access the DAQ data from the...
virtual Int_t Init()
Init function. This method initializes the histograms.
void setPrint(Bool_t a)
Obsolete function; users can control messages with logger config file.
StEmcRawMaker(const char *name="EmcRaw")
StEmcRawMaker constructor.
StEEmcDb * eeStDb
to assess EEMC DB
Definition: StEmcRawMaker.h:69
virtual Int_t Finish()
Finish function.
StBemcRaw * getBemcRaw()
Return the StBemcRaw pointer.
Definition: StEmcRawMaker.h:95
Bool_t makeBemc()
Make the Barrel-EMC detector.
virtual Int_t Make()
Process each event.
StRtsTable * DaqDta()
Return the current DAQ data block. This member function is provided for convenience.
Bool_t prepareEnvironment()
Prepare the StEvent environment to fill the EMC data.
virtual Int_t InitRun(Int_t runumber)
InitRun function.
Bool_t makeEemc()
Make the Endcap-EMC detector.