StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_emc_Maker.h
1 // $Id: St_emc_Maker.h,v 1.11 2014/08/06 11:43:54 jeromel Exp $
2 // $Log: St_emc_Maker.h,v $
3 // Revision 1.11 2014/08/06 11:43:54 jeromel
4 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
5 //
6 // Revision 1.10 2003/09/10 19:47:46 perev
7 // ansi corrs
8 //
9 // Revision 1.9 2001/04/17 23:25:53 akio
10 // cvs test
11 //
12 // Revision 1.8 1999/09/24 01:23:39 fisyak
13 // Reduced Include Path
14 //
15 // Revision 1.7 1999/07/15 13:58:02 perev
16 // cleanup
17 //
18 // Revision 1.6 1999/07/02 03:01:56 pavlinov
19 // Little corrections for Linux
20 //
21 // Revision 1.4 1999/02/12 19:19:17 akio
22 // *** empty log message ***
23 //
24 // Revision 1.3 1998/12/21 19:45:40 fisyak
25 // Move ROOT includes to non system
26 //
27 // Revision 1.2 1998/12/15 22:39:52 akio
28 // Add emc_hit object and adc_to_energy in here.
29 //
30 #ifndef STAR_St_emc_Maker
31 #define STAR_St_emc_Maker
32 
34 // //
35 // St_emc_Maker class for <FONT COLOR="RED">EMc Calibration</FONT> dataset //
36 //
37 // //
39 #ifndef StMaker_H
40 #include "StMaker.h"
41 #endif
42 #include "TH2.h"
43 #include "tables/St_ems_hits_Table.h"
44 #include "tables/St_emc_pedestal_Table.h"
45 #include "tables/St_emc_adcslope_Table.h"
46 #include "tables/St_emc_calib_header_Table.h"
47 #include "tables/St_emc_hits_Table.h"
48 #include "StEmcHitCollection.h"
49 #include "emc_def.h"
50 
51 // test
52 
53 class St_emc_Maker : public StMaker {
54 private:
55  Bool_t drawinit;
56  Int_t m_mode; // mode=0/1 No/Create copy in emc_hits Table;
57  St_DataSet *mEmcCalib;
58  void MakeHistograms(); // Filling QA Histograms
59 protected:
60  TH2F *m_nhit;
61  TH2F *m_etot;
62  TH2F *m_hits[MAXDET];
63  TH2F *m_energy[MAXDET];
64 public:
65  St_emc_Maker(const char *name="emc_hit", const char *title="event/data/emc/hits");
66  virtual ~St_emc_Maker();
67  virtual Int_t Init();
68  virtual Int_t Make();
69  virtual void Set_mode (Int_t m = 0){m_mode = m;}; // *MENU*
70  St_DataSet *getEmcCalib() {return mEmcCalib;};
71  virtual const char *GetCVS() const
72  {static const char cvs[]="Tag $Name: $ $Id: St_emc_Maker.h,v 1.11 2014/08/06 11:43:54 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
73 
74  ClassDef(St_emc_Maker,0) //Macro
75 };
76 
77 #endif
virtual Int_t Make()