StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEpcMaker.h
1 //
2 // $Id: StEpcMaker.h,v 1.13 2014/08/06 11:43:08 jeromel Exp $
3 //
4 // $Log: StEpcMaker.h,v $
5 // Revision 1.13 2014/08/06 11:43:08 jeromel
6 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
7 //
8 // Revision 1.12 2007/01/22 19:13:50 kocolosk
9 // use STAR logger for all output
10 //
11 // Revision 1.11 2005/05/23 12:35:14 suaide
12 // New Point maker code
13 //
14 // Revision 1.10 2004/09/13 13:59:56 suaide
15 // small change
16 //
17 // Revision 1.9 2004/09/03 03:09:45 suaide
18 // changes in the histograms
19 //
20 // Revision 1.8 2003/09/10 19:47:13 perev
21 // ansi corrs
22 //
23 // Revision 1.7 2003/05/26 13:44:34 suaide
24 // added setPrint() method
25 //
26 // Revision 1.6 2001/12/01 02:44:50 pavlinov
27 // Cleanp for events with zero number of tracks
28 //
29 // Revision 1.5 2001/11/06 23:35:27 suaide
30 // fixed bug in the way we get magnetic field
31 //
32 // Revision 1.4 2001/10/15 01:41:41 pavlinov
33 // Added Clear method
34 //
35 // Revision 1.3 2001/04/24 22:50:37 subhasis
36 // clusters attached to Points, QA hists are made for all category separately
37 //
38 // Revision 1.2 2000/08/29 20:12:44 subhasis
39 // Modified to accept StEvent input and writing out StEvent output for Emc
40 //
41 // Revision 1.1 2000/05/15 21:18:32 subhasis
42 // initial version
43 //
44 // tower-smd-psd-track matching Maker for EMC
45 //
46 //
47 // Authors: Subhasis Chattopadhyay.
48 //
49 #ifndef STAR_StEpcMaker
50 #define STAR_StEpcMaker
51 #include "StMaker.h"
52 #include "StMessMgr.h"
53 #include <TH2.h>
54 
55 class StEvent;
56 class StEmcCollection;
57 class StPointCollection;
58 
59 class StEpcMaker : public StMaker
60 {
61 private:
62  StEvent* mEvent;
63  StEmcCollection* mTheEmcCollection;
64  StPointCollection* mPoint;
65  void MakeHistograms(); // Filling QA Histograms
66 
67 protected:
68  TH1F *m_point_flag;
70  TH1F *m_point_energy[4];
71  TH1F *m_point_eta[4];
72  TH1F *m_point_phi[4];
73  // the following histograms will be created and filled only if the
74  // mFilHisto is set to kTRUE
75  TH1F *m_point_sigeta[4];
76  TH1F *m_point_sigphi[4];
77  TH1F *m_point_trmom[4];
78  TH1F *m_emc_points[4];
79 
80  Bool_t mFillHisto;
81 
82 public:
83  StEpcMaker(const char *name="epc");
84  virtual ~StEpcMaker();
85  virtual Int_t Init();
86  virtual Int_t Make();
87  virtual Int_t Finish();
88  virtual Int_t fillStEvent();
89  void setPrint(Bool_t a)
90  {
91  LOG_INFO << "::setPrint() is obsolete. Use logger config file to set verbosity instead." << endm;
92  }
93  void setFillHisto(Bool_t a)
94  {
95  mFillHisto = a;
96  }
97  virtual void Browse(TBrowser* b); // StEvent staf will be visible in browser
98 
99  virtual const char *GetCVS() const
100  {
101  static const char cvs[]=
102  "Tag $Name: $ $Id: StEpcMaker.h,v 1.13 2014/08/06 11:43:08 jeromel Exp $ built " __DATE__ " " __TIME__ ;
103  return cvs;
104  }
105 
106  ClassDef(StEpcMaker,0)// EMC-Track match maker
107 };
108 
109 #endif
110 
111 
112 
113 
114 
115 
116 
117 
TH1F * m_point_sigphi[4]
//Point SigmaEta spectra
Definition: StEpcMaker.h:76
Bool_t mFillHisto
//Emc Point multiplicity
Definition: StEpcMaker.h:80
virtual Int_t Make()
Definition: StEpcMaker.cxx:175
TH1F * m_point_quality
//Point Flag spectra
Definition: StEpcMaker.h:69
void setFillHisto(Bool_t a)
Turns on/off histogram filling.
Definition: StEpcMaker.h:93
TH1F * m_point_sigeta[4]
//Point Phi spectra
Definition: StEpcMaker.h:75
StEpcMaker(const char *name="epc")
Definition: StEpcMaker.cxx:110
TH1F * m_emc_points[4]
//Point TrMom spectra
Definition: StEpcMaker.h:78
TH1F * m_point_eta[4]
//Point Energy spectra
Definition: StEpcMaker.h:71
TH1F * m_point_energy[4]
//Point quality spectra
Definition: StEpcMaker.h:70
TH1F * m_point_trmom[4]
//Point SigmaPhi spectra
Definition: StEpcMaker.h:77
TH1F * m_point_phi[4]
//Point Eta spectra
Definition: StEpcMaker.h:72
void setPrint(Bool_t a)
Obsolete function; users can control messages with logger config file.
Definition: StEpcMaker.h:89
virtual void Browse(TBrowser *b)
Browse this dataset (called by TBrowser).
Definition: StEpcMaker.cxx:310
virtual Int_t Finish()
Definition: StEpcMaker.cxx:305